Skip to content

Commit 8809248

Browse files
committed
Some more pom tweaks
1 parent 269585d commit 8809248

File tree

8 files changed

+124
-2
lines changed

8 files changed

+124
-2
lines changed

feature-pack/pom.xml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,21 @@
3737

3838
<build>
3939
<finalName>${server.name}</finalName>
40-
<plugins>
40+
<plugins>
41+
<plugin>
42+
<!-- Feature pack generation is vulnerable to leftover files in the target
43+
folder from previous builds, so always clean even if the clean lifecycle is not invoked -->
44+
<artifactId>maven-clean-plugin</artifactId>
45+
<executions>
46+
<execution>
47+
<id>auto-clean</id>
48+
<phase>initialize</phase>
49+
<goals>
50+
<goal>clean</goal>
51+
</goals>
52+
</execution>
53+
</executions>
54+
</plugin>
4155
<plugin>
4256
<groupId>org.apache.maven.plugins</groupId>
4357
<artifactId>maven-resources-plugin</artifactId>
@@ -69,7 +83,7 @@
6983
<goals>
7084
<goal>build-feature-pack</goal>
7185
</goals>
72-
<phase>compile</phase>
86+
<phase>prepare-package</phase>
7387
<configuration>
7488
<fork-embedded>${galleon.fork.embedded}</fork-embedded>
7589
</configuration>

quickstart-client/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,20 @@
201201
</configuration>
202202
</plugin>
203203

204+
<plugin>
205+
<groupId>org.sonatype.plugins</groupId>
206+
<artifactId>nxrm3-maven-plugin</artifactId>
207+
<executions>
208+
<execution>
209+
<id>nexus-deploy</id>
210+
<phase>none</phase>
211+
</execution>
212+
<execution>
213+
<id>nexus-staging.deploy</id>
214+
<phase>none</phase>
215+
</execution>
216+
</executions>
217+
</plugin>
204218
<plugin>
205219
<artifactId>maven-compiler-plugin</artifactId>
206220
<version>${compiler-plugin.version}</version>

quickstart/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,20 @@
252252
</systemPropertyVariables>
253253
</configuration>
254254
</plugin>
255+
<plugin>
256+
<groupId>org.sonatype.plugins</groupId>
257+
<artifactId>nxrm3-maven-plugin</artifactId>
258+
<executions>
259+
<execution>
260+
<id>nexus-deploy</id>
261+
<phase>none</phase>
262+
</execution>
263+
<execution>
264+
<id>nexus-staging.deploy</id>
265+
<phase>none</phase>
266+
</execution>
267+
</executions>
268+
</plugin>
255269
</plugins>
256270
</build>
257271

testsuite/client-vertx/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,20 @@
237237
</compilerArgs>
238238
</configuration>
239239
</plugin>
240+
<plugin>
241+
<groupId>org.sonatype.plugins</groupId>
242+
<artifactId>nxrm3-maven-plugin</artifactId>
243+
<executions>
244+
<execution>
245+
<id>nexus-deploy</id>
246+
<phase>none</phase>
247+
</execution>
248+
<execution>
249+
<id>nexus-staging.deploy</id>
250+
<phase>none</phase>
251+
</execution>
252+
</executions>
253+
</plugin>
240254
</plugins>
241255
</build>
242256

testsuite/integration/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,20 @@
287287
</execution>
288288
</executions>
289289
</plugin>
290+
<plugin>
291+
<groupId>org.sonatype.plugins</groupId>
292+
<artifactId>nxrm3-maven-plugin</artifactId>
293+
<executions>
294+
<execution>
295+
<id>nexus-deploy</id>
296+
<phase>none</phase>
297+
</execution>
298+
<execution>
299+
<id>nexus-staging.deploy</id>
300+
<phase>none</phase>
301+
</execution>
302+
</executions>
303+
</plugin>
290304

291305
<plugin>
292306
<groupId>org.apache.maven.plugins</groupId>

testsuite/layer-metadata-tests/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@
7070
</execution>
7171
</executions>
7272
</plugin>
73+
<plugin>
74+
<groupId>org.sonatype.plugins</groupId>
75+
<artifactId>nxrm3-maven-plugin</artifactId>
76+
<executions>
77+
<execution>
78+
<id>nexus-deploy</id>
79+
<phase>none</phase>
80+
</execution>
81+
<execution>
82+
<id>nexus-staging.deploy</id>
83+
<phase>none</phase>
84+
</execution>
85+
</executions>
86+
</plugin>
7387
</plugins>
7488
<testResources>
7589
<testResource>

testsuite/pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,30 @@
172172
<artifactId>maven-install-plugin</artifactId>
173173
<executions><execution><id>default-install</id><phase>none</phase></execution></executions>
174174
</plugin>
175+
176+
<plugin>
177+
<groupId>org.sonatype.plugins</groupId>
178+
<artifactId>nxrm3-maven-plugin</artifactId>
179+
<executions>
180+
<execution>
181+
<id>nexus-deploy</id>
182+
<phase>none</phase>
183+
</execution>
184+
<execution>
185+
<id>nexus-staging.deploy</id>
186+
<phase>none</phase>
187+
</execution>
188+
</executions>
189+
</plugin>
190+
191+
<plugin>
192+
<groupId>org.apache.maven.plugins</groupId>
193+
<artifactId>maven-gpg-plugin</artifactId>
194+
<configuration>
195+
<skip>true</skip>
196+
</configuration>
197+
</plugin>
198+
175199
</plugins>
176200
</pluginManagement>
177201

testsuite/server-tck/pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,20 @@
111111
</execution>
112112
</executions>
113113
</plugin>
114+
<plugin>
115+
<groupId>org.sonatype.plugins</groupId>
116+
<artifactId>nxrm3-maven-plugin</artifactId>
117+
<executions>
118+
<execution>
119+
<id>nexus-deploy</id>
120+
<phase>none</phase>
121+
</execution>
122+
<execution>
123+
<id>nexus-staging.deploy</id>
124+
<phase>none</phase>
125+
</execution>
126+
</executions>
127+
</plugin>
114128
<plugin>
115129
<groupId>org.jboss.galleon</groupId>
116130
<artifactId>galleon-maven-plugin</artifactId>

0 commit comments

Comments
 (0)