Skip to content

Commit 693d6e9

Browse files
author
stephen powis
committed
move release goals into release profile
1 parent 12bad28 commit 693d6e9

File tree

1 file changed

+53
-45
lines changed

1 file changed

+53
-45
lines changed

pom.xml

Lines changed: 53 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -218,50 +218,6 @@
218218
</execution>
219219
</executions>
220220
</plugin>
221-
222-
<!-- Build Sources Jar -->
223-
<plugin>
224-
<groupId>org.apache.maven.plugins</groupId>
225-
<artifactId>maven-source-plugin</artifactId>
226-
<executions>
227-
<execution>
228-
<id>attach-sources</id>
229-
<goals>
230-
<goal>jar</goal>
231-
</goals>
232-
</execution>
233-
</executions>
234-
</plugin>
235-
236-
<!-- Build Javadoc Jar -->
237-
<plugin>
238-
<groupId>org.apache.maven.plugins</groupId>
239-
<artifactId>maven-javadoc-plugin</artifactId>
240-
<executions>
241-
<execution>
242-
<id>attach-javadocs</id>
243-
<goals>
244-
<goal>jar</goal>
245-
</goals>
246-
</execution>
247-
</executions>
248-
</plugin>
249-
250-
<!-- GPG Signing of Artifacts -->
251-
<plugin>
252-
<groupId>org.apache.maven.plugins</groupId>
253-
<artifactId>maven-gpg-plugin</artifactId>
254-
<version>1.6</version>
255-
<executions>
256-
<execution>
257-
<id>sign-artifacts</id>
258-
<phase>verify</phase>
259-
<goals>
260-
<goal>sign</goal>
261-
</goals>
262-
</execution>
263-
</executions>
264-
</plugin>
265221
</plugins>
266222

267223
<pluginManagement>
@@ -297,5 +253,57 @@
297253
</plugins>
298254
</reporting>
299255

300-
256+
<!-- release profile for deploying -->
257+
<profiles>
258+
<profile>
259+
<id>release</id>
260+
<build>
261+
<plugins>
262+
<!-- Build Sources Jar -->
263+
<plugin>
264+
<groupId>org.apache.maven.plugins</groupId>
265+
<artifactId>maven-source-plugin</artifactId>
266+
<executions>
267+
<execution>
268+
<id>attach-sources</id>
269+
<goals>
270+
<goal>jar</goal>
271+
</goals>
272+
</execution>
273+
</executions>
274+
</plugin>
275+
276+
<!-- Build Javadoc Jar -->
277+
<plugin>
278+
<groupId>org.apache.maven.plugins</groupId>
279+
<artifactId>maven-javadoc-plugin</artifactId>
280+
<executions>
281+
<execution>
282+
<id>attach-javadocs</id>
283+
<goals>
284+
<goal>jar</goal>
285+
</goals>
286+
</execution>
287+
</executions>
288+
</plugin>
289+
290+
<!-- GPG Signing of Artifacts -->
291+
<plugin>
292+
<groupId>org.apache.maven.plugins</groupId>
293+
<artifactId>maven-gpg-plugin</artifactId>
294+
<version>1.6</version>
295+
<executions>
296+
<execution>
297+
<id>sign-artifacts</id>
298+
<phase>verify</phase>
299+
<goals>
300+
<goal>sign</goal>
301+
</goals>
302+
</execution>
303+
</executions>
304+
</plugin>
305+
</plugins>
306+
</build>
307+
</profile>
308+
</profiles>
301309
</project>

0 commit comments

Comments
 (0)