Commit 254ea0dd6a38a8019629abb9c9f896d90f6ad6e7
1 parent
eb1414bb
Exists in
master
mvn: Move plugins to pluginManagement
Showing
1 changed file
with
39 additions
and
18 deletions
Show diff stats
pom.xml
... | ... | @@ -20,6 +20,7 @@ |
20 | 20 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
21 | 21 | </properties> |
22 | 22 | <build> |
23 | + | |
23 | 24 | <plugins> |
24 | 25 | <plugin> |
25 | 26 | <artifactId>maven-compiler-plugin</artifactId> |
... | ... | @@ -84,24 +85,6 @@ |
84 | 85 | <clearOutputDir>false</clearOutputDir> |
85 | 86 | </configuration> |
86 | 87 | </plugin> |
87 | - <plugin> | |
88 | - <groupId>org.apache.maven.plugins</groupId> | |
89 | - <artifactId>maven-antrun-plugin</artifactId> | |
90 | - <version>1.7</version> | |
91 | - <executions> | |
92 | - <execution> | |
93 | - <phase>process-sources</phase> | |
94 | - <goals> | |
95 | - <goal>run</goal> | |
96 | - </goals> | |
97 | - <configuration> | |
98 | - <target name="Removing src/main/java/META-INF/sun-jaxb.episode"> | |
99 | - <delete file="${basedir}/src/main/java/META-INF/sun-jaxb.episode" /> | |
100 | - </target> | |
101 | - </configuration> | |
102 | - </execution> | |
103 | - </executions> | |
104 | - </plugin> | |
105 | 88 | </plugins> |
106 | 89 | </build> |
107 | 90 | <dependencies> |
... | ... | @@ -140,6 +123,44 @@ |
140 | 123 | </executions> |
141 | 124 | </plugin> |
142 | 125 | </plugins> |
126 | + <pluginManagement> | |
127 | + <plugins> | |
128 | + <plugin> | |
129 | + <groupId>org.apache.maven.plugins</groupId> | |
130 | + <artifactId>maven-antrun-plugin</artifactId> | |
131 | + <version>1.7</version> | |
132 | + <executions> | |
133 | + <execution> | |
134 | + <id>remove-episode</id> | |
135 | + <phase>process-sources</phase> | |
136 | + <goals> | |
137 | + <goal>run</goal> | |
138 | + </goals> | |
139 | + <configuration> | |
140 | + <target name="Removing META-INF/sun-jaxb.episode"> | |
141 | + <delete file="${basedir}/src/main/java/META-INF/sun-jaxb.episode" /> | |
142 | + </target> | |
143 | + </configuration> | |
144 | + </execution> | |
145 | + <execution> | |
146 | + <id>suppress-warning-generated</id> | |
147 | + <phase>process-sources</phase> | |
148 | + <goals> | |
149 | + <goal>run</goal> | |
150 | + </goals> | |
151 | + <configuration> | |
152 | + <target name="Adding @SuppressWarnings on generated *.java"> | |
153 | + <replace | |
154 | + dir="${basedir}/src/main/java/eu/omp/irap/vespa/epntapclient/votable/model/" | |
155 | + summary="true" includes="*.java" token="public class" | |
156 | + value='@SuppressWarnings("all") public class' /> | |
157 | + </target> | |
158 | + </configuration> | |
159 | + </execution> | |
160 | + </executions> | |
161 | + </plugin> | |
162 | + </plugins> | |
163 | + </pluginManagement> | |
143 | 164 | </build> |
144 | 165 | </profile> |
145 | 166 | </profiles> | ... | ... |