|
46 | 46 | </dependency> |
47 | 47 | </dependencies> |
48 | 48 | <build> |
49 | | - <pluginManagement> |
50 | | - <plugins> |
51 | | - <plugin> |
52 | | - <artifactId>maven-antrun-plugin</artifactId> |
53 | | - <executions> |
54 | | - <execution> |
55 | | - <id>generate-resource</id> |
56 | | - <phase>generate-resources</phase> |
57 | | - <goals> |
58 | | - <goal>run</goal> |
59 | | - </goals> |
60 | | - <configuration> |
61 | | - <target> |
62 | | - <copy todir="${basedir}/target/transformed"> |
63 | | - <fileset dir="${basedir}/conf"> |
64 | | - <include name="agent.properties" /> |
65 | | - </fileset> |
66 | | - </copy> |
67 | | - <copy overwrite="true" |
68 | | - todir="${basedir}/target/transformed"> |
69 | | - <fileset dir="${basedir}/conf"> |
70 | | - <include name="*.in" /> |
71 | | - </fileset> |
72 | | - <globmapper from="*.in" to="*" /> |
73 | | - <filterchain> |
74 | | - <filterreader |
75 | | - classname="org.apache.tools.ant.filters.ReplaceTokens"> |
76 | | - <param type="propertiesfile" |
77 | | - value="${cs.replace.properties}" /> |
78 | | - </filterreader> |
79 | | - </filterchain> |
80 | | - </copy> |
81 | | - <copy overwrite="true" |
82 | | - todir="${basedir}/target/transformed"> |
83 | | - <fileset dir="${basedir}/bindir"> |
84 | | - <include name="*.in" /> |
85 | | - </fileset> |
86 | | - <globmapper from="*.in" to="*" /> |
87 | | - <filterchain> |
88 | | - <filterreader |
89 | | - classname="org.apache.tools.ant.filters.ReplaceTokens"> |
90 | | - <param type="propertiesfile" |
91 | | - value="${cs.replace.properties}" /> |
92 | | - </filterreader> |
93 | | - </filterchain> |
94 | | - </copy> |
95 | | - </target> |
96 | | - </configuration> |
97 | | - </execution> |
98 | | - </executions> |
99 | | - </plugin> |
100 | | - <plugin> |
101 | | - <groupId>org.apache.maven.plugins</groupId> |
102 | | - <artifactId>maven-dependency-plugin</artifactId> |
103 | | - <executions> |
104 | | - <execution> |
105 | | - <id>copy-dependencies</id> |
106 | | - <phase>package</phase> |
107 | | - <goals> |
108 | | - <goal>copy-dependencies</goal> |
109 | | - </goals> |
110 | | - <configuration> |
111 | | - <outputDirectory>${project.build.directory}/dependencies</outputDirectory> |
112 | | - <includeScope>runtime</includeScope> |
113 | | - </configuration> |
114 | | - </execution> |
115 | | - </executions> |
116 | | - </plugin> |
117 | | - </plugins> |
118 | | - </pluginManagement> |
| 49 | + <plugins> |
| 50 | + <plugin> |
| 51 | + <artifactId>maven-antrun-plugin</artifactId> |
| 52 | + <executions> |
| 53 | + <execution> |
| 54 | + <id>generate-resource</id> |
| 55 | + <phase>generate-resources</phase> |
| 56 | + <goals> |
| 57 | + <goal>run</goal> |
| 58 | + </goals> |
| 59 | + <configuration> |
| 60 | + <target> |
| 61 | + <copy |
| 62 | + todir="${basedir}/target/transformed"> |
| 63 | + <fileset dir="${basedir}/conf"> |
| 64 | + <include name="agent.properties" /> |
| 65 | + </fileset> |
| 66 | + </copy> |
| 67 | + <copy overwrite="true" |
| 68 | + todir="${basedir}/target/transformed"> |
| 69 | + <fileset dir="${basedir}/conf"> |
| 70 | + <include name="*.in" /> |
| 71 | + </fileset> |
| 72 | + <globmapper from="*.in" to="*" /> |
| 73 | + <filterchain> |
| 74 | + <filterreader |
| 75 | + classname="org.apache.tools.ant.filters.ReplaceTokens"> |
| 76 | + <param type="propertiesfile" |
| 77 | + value="${cs.replace.properties}" /> |
| 78 | + </filterreader> |
| 79 | + </filterchain> |
| 80 | + </copy> |
| 81 | + <copy overwrite="true" |
| 82 | + todir="${basedir}/target/transformed"> |
| 83 | + <fileset dir="${basedir}/bindir"> |
| 84 | + <include name="*.in" /> |
| 85 | + </fileset> |
| 86 | + <globmapper from="*.in" to="*" /> |
| 87 | + <filterchain> |
| 88 | + <filterreader |
| 89 | + classname="org.apache.tools.ant.filters.ReplaceTokens"> |
| 90 | + <param type="propertiesfile" |
| 91 | + value="${cs.replace.properties}" /> |
| 92 | + </filterreader> |
| 93 | + </filterchain> |
| 94 | + </copy> |
| 95 | + </target> |
| 96 | + </configuration> |
| 97 | + </execution> |
| 98 | + </executions> |
| 99 | + </plugin> |
| 100 | + <plugin> |
| 101 | + <groupId>org.apache.maven.plugins</groupId> |
| 102 | + <artifactId>maven-dependency-plugin</artifactId> |
| 103 | + <executions> |
| 104 | + <execution> |
| 105 | + <id>copy-dependencies</id> |
| 106 | + <phase>package</phase> |
| 107 | + <goals> |
| 108 | + <goal>copy-dependencies</goal> |
| 109 | + </goals> |
| 110 | + <configuration> |
| 111 | + <outputDirectory>${project.build.directory}/dependencies</outputDirectory> |
| 112 | + <includeScope>runtime</includeScope> |
| 113 | + </configuration> |
| 114 | + </execution> |
| 115 | + </executions> |
| 116 | + </plugin> |
| 117 | + </plugins> |
119 | 118 | </build> |
120 | 119 | </project> |
0 commit comments