Skip to content

Commit fe8e0bb

Browse files
committed
Update release instructions.
1 parent ca30d27 commit fe8e0bb

File tree

2 files changed

+51
-15
lines changed

2 files changed

+51
-15
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,15 @@ have your local Maven setup correctly along with valid and public GPG key and
117117
adequate authorization on the Sonatype OSS Repository to submit new artifacts,
118118
be they _staging_ or _release_ ones.
119119

120-
You should read the [Sonatype OSS Maven Repository Usage
121-
Guide](http://goo.gl/Sp9No5) before performing any of the following:
120+
You should read the [Sonatype OSS Aoache Maven
121+
Guide](http://central.sonatype.org/pages/apache-maven.html) before performing any of the following:
122122

123123
#### Staging
124-
$ mvn clean deploy -DperformRelease=true
124+
$ mvn clean deploy -Prelease
125125

126126
#### Release
127-
$ mvn release:clean -DperformRelease=true
128-
$ mvn release:prepare -DperformRelease=true
129-
$ mvn release:perform -DperformRelease=true
127+
$ mvn release:clean release:prepare -Prelease
128+
$ mvn release:perform -Prelease
130129

131130
#### Documentation
132131
Documentation can also be released to the public via the Github Pages subproduct

pom.xml

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,29 @@
6666
<mockito.version>1.9.5</mockito.version>
6767
</properties>
6868

69+
<distributionManagement>
70+
<snapshotRepository>
71+
<id>ossrh</id>
72+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
73+
</snapshotRepository>
74+
<repository>
75+
<id>ossrh</id>
76+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
77+
</repository>
78+
</distributionManagement>
79+
6980
<build>
7081
<plugins>
7182
<plugin>
7283
<artifactId>maven-release-plugin</artifactId>
7384
<groupId>org.apache.maven.plugins</groupId>
74-
<version>2.4.1</version>
85+
<version>2.5</version>
86+
<configuration>
87+
<autoVersionSubmodules>true</autoVersionSubmodules>
88+
<useReleaseProfile>false</useReleaseProfile>
89+
<releaseProfiles>release</releaseProfiles>
90+
<goals>deploy</goals>
91+
</configuration>
7592
</plugin>
7693
<plugin>
7794
<artifactId>maven-deploy-plugin</artifactId>
@@ -94,19 +111,13 @@
94111

95112
<profiles>
96113
<profile>
97-
<id>release-sign-artifacts</id>
98-
<activation>
99-
<property>
100-
<name>performRelease</name>
101-
<value>true</value>
102-
</property>
103-
</activation>
114+
<id>release</id>
104115
<build>
105116
<plugins>
106117
<plugin>
107118
<groupId>org.apache.maven.plugins</groupId>
108119
<artifactId>maven-gpg-plugin</artifactId>
109-
<version>1.4</version>
120+
<version>1.5</version>
110121
<executions>
111122
<execution>
112123
<id>sign-artifacts</id>
@@ -117,6 +128,32 @@
117128
</execution>
118129
</executions>
119130
</plugin>
131+
<plugin>
132+
<groupId>org.apache.maven.plugins</groupId>
133+
<artifactId>maven-source-plugin</artifactId>
134+
<version>2.2.1</version>
135+
<executions>
136+
<execution>
137+
<id>attach-sources</id>
138+
<goals>
139+
<goal>jar-no-fork</goal>
140+
</goals>
141+
</execution>
142+
</executions>
143+
</plugin>
144+
<plugin>
145+
<groupId>org.apache.maven.plugins</groupId>
146+
<artifactId>maven-javadoc-plugin</artifactId>
147+
<version>2.9.1</version>
148+
<executions>
149+
<execution>
150+
<id>attach-javadocs</id>
151+
<goals>
152+
<goal>jar</goal>
153+
</goals>
154+
</execution>
155+
</executions>
156+
</plugin>
120157
</plugins>
121158
</build>
122159
</profile>

0 commit comments

Comments
 (0)