Skip to content

Commit 86b99d7

Browse files
committed
added automatic javadoc and source creation, removed staging plugin since its not needed
1 parent 21dbaec commit 86b99d7

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

pom.xml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,25 +78,6 @@
7878
<id>release</id>
7979
<build>
8080
<plugins>
81-
<plugin>
82-
<groupId>org.sonatype.plugins</groupId>
83-
<artifactId>nexus-staging-maven-plugin</artifactId>
84-
<version>1.6.5</version>
85-
<executions>
86-
<execution>
87-
<id>default-deploy</id>
88-
<phase>deploy</phase>
89-
<goals>
90-
<goal>deploy</goal>
91-
</goals>
92-
</execution>
93-
</executions>
94-
<configuration>
95-
<serverId>nexus-releases</serverId>
96-
<nexusUrl>http://localhost:8081/nexus/</nexusUrl>
97-
<skipStaging>true</skipStaging>
98-
</configuration>
99-
</plugin>
10081
<plugin>
10182
<groupId>org.apache.maven.plugins</groupId>
10283
<artifactId>maven-javadoc-plugin</artifactId>
@@ -105,11 +86,27 @@
10586
<show>private</show>
10687
<nohelp>true</nohelp>
10788
</configuration>
89+
<executions>
90+
<execution>
91+
<id>attach-javadocs</id>
92+
<goals>
93+
<goal>jar</goal>
94+
</goals>
95+
</execution>
96+
</executions>
10897
</plugin>
10998
<plugin>
11099
<groupId>org.apache.maven.plugins</groupId>
111100
<artifactId>maven-source-plugin</artifactId>
112101
<version>2.4</version>
102+
<executions>
103+
<execution>
104+
<id>attach-sources</id>
105+
<goals>
106+
<goal>jar-no-fork</goal>
107+
</goals>
108+
</execution>
109+
</executions>
113110
</plugin>
114111
<plugin>
115112
<groupId>org.apache.maven.plugins</groupId>
@@ -118,8 +115,9 @@
118115
<configuration>
119116
<tagNameFormat>v@{project.version}</tagNameFormat>
120117
<autoVersionSubmodules>true</autoVersionSubmodules>
118+
<releaseProfiles>release</releaseProfiles>
121119
</configuration>
122-
</plugin>
120+
</plugin>
123121
</plugins>
124122
</build>
125123
</profile>

0 commit comments

Comments
 (0)