Skip to content

Commit dabae1c

Browse files
committed
Remove release profile
The release profile is not needed given this is a simple, single module project and can compile fine on any supported operating system (Windows, OS X, Linux). Removing the release profile causes the JavaDoc plugin to execute in a more common build lifecycle, leading to earlier identification of JavaDoc errors.
1 parent c1e232c commit dabae1c

2 files changed

Lines changed: 27 additions & 63 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ targeting server-class JVMs, and it will be easy to support Java 9 when released
6868
Any tagged commit will cause Travis CI to build a release and deploy it to the
6969
BinTray Maven repository. BinTray will GPG sign the release.
7070

71-
Project maintainers can run `mvn -Prelease release:clean release:prepare` to
72-
update the POMs to a formal release version number, Git tag, and increment the
73-
version number for ongoing development. Travis will perform the actual release.
71+
Project maintainers can run `mvn release:clean release:prepare` to update the
72+
POMs to a formal release version number, Git tag, and increment the version
73+
number for ongoing development. Travis will perform the actual release.
7474

7575
### License
7676

pom.xml

Lines changed: 24 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,6 @@
164164
<version>2.5.3</version>
165165
<configuration>
166166
<autoVersionSubmodules>true</autoVersionSubmodules>
167-
<useReleaseProfile>false</useReleaseProfile>
168-
<releaseProfiles>release</releaseProfiles>
169-
<goals>deploy site-deploy</goals>
170167
</configuration>
171168
</plugin>
172169
<plugin>
@@ -208,63 +205,30 @@
208205
</execution>
209206
</executions>
210207
</plugin>
208+
<plugin>
209+
<artifactId>maven-source-plugin</artifactId>
210+
<version>3.0.1</version>
211+
<executions>
212+
<execution>
213+
<id>attach-sources</id>
214+
<goals>
215+
<goal>jar-no-fork</goal>
216+
</goals>
217+
</execution>
218+
</executions>
219+
</plugin>
220+
<plugin>
221+
<artifactId>maven-javadoc-plugin</artifactId>
222+
<version>2.10.4</version>
223+
<executions>
224+
<execution>
225+
<id>attach-javadocs</id>
226+
<goals>
227+
<goal>jar</goal>
228+
</goals>
229+
</execution>
230+
</executions>
231+
</plugin>
211232
</plugins>
212233
</build>
213-
<profiles>
214-
<profile>
215-
<id>release</id>
216-
<build>
217-
<plugins>
218-
<plugin>
219-
<groupId>org.sonatype.plugins</groupId>
220-
<artifactId>nexus-staging-maven-plugin</artifactId>
221-
<version>1.6.7</version>
222-
<extensions>true</extensions>
223-
<configuration>
224-
<serverId>ossrh</serverId>
225-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
226-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
227-
</configuration>
228-
</plugin>
229-
<plugin>
230-
<artifactId>maven-source-plugin</artifactId>
231-
<version>3.0.1</version>
232-
<executions>
233-
<execution>
234-
<id>attach-sources</id>
235-
<goals>
236-
<goal>jar-no-fork</goal>
237-
</goals>
238-
</execution>
239-
</executions>
240-
</plugin>
241-
<plugin>
242-
<artifactId>maven-javadoc-plugin</artifactId>
243-
<version>2.10.4</version>
244-
<executions>
245-
<execution>
246-
<id>attach-javadocs</id>
247-
<goals>
248-
<goal>jar</goal>
249-
</goals>
250-
</execution>
251-
</executions>
252-
</plugin>
253-
<plugin>
254-
<artifactId>maven-gpg-plugin</artifactId>
255-
<version>1.6</version>
256-
<executions>
257-
<execution>
258-
<id>sign-artifacts</id>
259-
<phase>verify</phase>
260-
<goals>
261-
<goal>sign</goal>
262-
</goals>
263-
</execution>
264-
</executions>
265-
</plugin>
266-
</plugins>
267-
</build>
268-
</profile>
269-
</profiles>
270234
</project>

0 commit comments

Comments
 (0)