Skip to content

Commit ddb47ac

Browse files
committed
Add release plugin
1 parent 57cd127 commit ddb47ac

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

devdoc/deploy.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,23 @@ Make sure that JAVA_HOME points to Java 8 (the javadoc task fails with Java 11).
55

66
To deploy to Maven use
77

8+
```
9+
mvn release:clean release:prepare
10+
```
11+
12+
followed by
13+
14+
```
15+
mvn release:perform
16+
```
17+
18+
Or make the changes manually and use
19+
820
```
921
mvn clean deploy -P release
1022
```
1123

12-
For snapshots we can forego signing and generating javadoc + sources using:
24+
For snapshots we can skip signing and generating javadoc + sources using:
1325

1426
```
1527
mvn clean deploy

pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,17 @@
122122
<autoReleaseAfterClose>true</autoReleaseAfterClose>
123123
</configuration>
124124
</plugin>
125+
<plugin>
126+
<groupId>org.apache.maven.plugins</groupId>
127+
<artifactId>maven-release-plugin</artifactId>
128+
<version>2.5.3</version>
129+
<configuration>
130+
<autoVersionSubmodules>true</autoVersionSubmodules>
131+
<useReleaseProfile>false</useReleaseProfile>
132+
<releaseProfiles>release</releaseProfiles>
133+
<goals>deploy</goals>
134+
</configuration>
135+
</plugin>
125136
</plugins>
126137
</build>
127138

0 commit comments

Comments
 (0)