Skip to content

Commit 4adb477

Browse files
committed
Move release specific plugins to a new profile
1 parent 52a9962 commit 4adb477

File tree

1 file changed

+74
-33
lines changed

1 file changed

+74
-33
lines changed

pom.xml

Lines changed: 74 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45
<groupId>com.beowulfe.hap</groupId>
56
<artifactId>hap</artifactId>
@@ -21,8 +22,8 @@
2122
<connection>scm:git:git@github.com:beowulfe/HAP-Java.git</connection>
2223
<developerConnection>scm:git:git@github.com:beowulfe/HAP-Java.git</developerConnection>
2324
<url>https://github.com/beowulfe/HAP-Java.git</url>
24-
<tag>HEAD</tag>
25-
</scm>
25+
<tag>HEAD</tag>
26+
</scm>
2627

2728
<developers>
2829
<developer>
@@ -168,36 +169,6 @@
168169
</execution>
169170
</executions>
170171
</plugin>
171-
<plugin>
172-
<groupId>org.apache.maven.plugins</groupId>
173-
<artifactId>maven-gpg-plugin</artifactId>
174-
<version>1.5</version>
175-
<executions>
176-
<execution>
177-
<id>sign-artifacts</id>
178-
<phase>verify</phase>
179-
<goals>
180-
<goal>sign</goal>
181-
</goals>
182-
</execution>
183-
</executions>
184-
</plugin>
185-
<plugin>
186-
<groupId>org.sonatype.plugins</groupId>
187-
<artifactId>nexus-staging-maven-plugin</artifactId>
188-
<version>1.6.3</version>
189-
<extensions>true</extensions>
190-
<configuration>
191-
<serverId>ossrh</serverId>
192-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
193-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
194-
</configuration>
195-
</plugin>
196-
<plugin>
197-
<groupId>org.apache.maven.plugins</groupId>
198-
<artifactId>maven-release-plugin</artifactId>
199-
<version>2.5.3</version>
200-
</plugin>
201172
</plugins>
202173
</build>
203174

@@ -216,4 +187,74 @@
216187
</snapshotRepository>
217188
</distributionManagement>
218189

190+
<reporting>
191+
<plugins>
192+
<plugin>
193+
<groupId>org.apache.maven.plugins</groupId>
194+
<artifactId>maven-pmd-plugin</artifactId>
195+
<version>3.6</version>
196+
</plugin>
197+
<plugin>
198+
<groupId>org.apache.maven.plugins</groupId>
199+
<artifactId>maven-javadoc-plugin</artifactId>
200+
<version>2.10.3</version>
201+
<configuration>
202+
<excludePackageNames>com.beowulfe.hap.impl</excludePackageNames>
203+
</configuration>
204+
<reportSets>
205+
<reportSet>
206+
<reports>
207+
<report>javadoc</report>
208+
</reports>
209+
</reportSet>
210+
</reportSets>
211+
</plugin>
212+
<plugin>
213+
<groupId>org.codehaus.mojo</groupId>
214+
<artifactId>findbugs-maven-plugin</artifactId>
215+
<version>3.0.3</version>
216+
</plugin>
217+
</plugins>
218+
</reporting>
219+
220+
<profiles>
221+
<profile>
222+
<id>doRelease</id>
223+
<build>
224+
<plugins>
225+
<plugin>
226+
<groupId>org.apache.maven.plugins</groupId>
227+
<artifactId>maven-gpg-plugin</artifactId>
228+
<version>1.5</version>
229+
<executions>
230+
<execution>
231+
<id>sign-artifacts</id>
232+
<phase>verify</phase>
233+
<goals>
234+
<goal>sign</goal>
235+
</goals>
236+
</execution>
237+
</executions>
238+
</plugin>
239+
<plugin>
240+
<groupId>org.sonatype.plugins</groupId>
241+
<artifactId>nexus-staging-maven-plugin</artifactId>
242+
<version>1.6.3</version>
243+
<extensions>true</extensions>
244+
<configuration>
245+
<serverId>ossrh</serverId>
246+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
247+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
248+
</configuration>
249+
</plugin>
250+
<plugin>
251+
<groupId>org.apache.maven.plugins</groupId>
252+
<artifactId>maven-release-plugin</artifactId>
253+
<version>2.5.3</version>
254+
</plugin>
255+
</plugins>
256+
</build>
257+
</profile>
258+
</profiles>
259+
219260
</project>

0 commit comments

Comments
 (0)