Skip to content

Commit b131230

Browse files
committed
prepare maven release (Issue #15)
1 parent 4461c13 commit b131230

1 file changed

Lines changed: 47 additions & 31 deletions

File tree

pom.xml

Lines changed: 47 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<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">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
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">
24
<modelVersion>4.0.0</modelVersion>
35

46
<groupId>org.imixs.workflow</groupId>
@@ -47,7 +49,7 @@
4749
<url>https://github.com/imixs/imixs-office-archetype/</url>
4850
<tag>HEAD</tag>
4951
</scm>
50-
52+
5153

5254
<issueManagement>
5355
<system>GitHub</system>
@@ -68,6 +70,19 @@
6870
</licenses>
6971

7072

73+
<repositories>
74+
<repository>
75+
<id>central-portal-snapshots</id>
76+
<name>Central Portal Snapshots</name>
77+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
78+
<releases>
79+
<enabled>false</enabled>
80+
</releases>
81+
<snapshots>
82+
<enabled>true</enabled>
83+
</snapshots>
84+
</repository>
85+
</repositories>
7186
<build>
7287
<extensions>
7388
<extension>
@@ -87,14 +102,14 @@
87102
</pluginManagement>
88103

89104
<plugins>
90-
<!-- use JDK 1.8 settings for compiling -->
105+
106+
<!-- use JDK settings for compiling -->
91107
<plugin>
92-
<groupId>org.apache.maven.plugins</groupId>
93108
<artifactId>maven-compiler-plugin</artifactId>
94109
<version>3.8.1</version>
95110
<configuration>
96-
<source>11</source>
97-
<target>11</target>
111+
<source>${java.source}</source>
112+
<target>${java.target}</target>
98113
</configuration>
99114
</plugin>
100115

@@ -109,26 +124,12 @@
109124
<releaseProfiles>release</releaseProfiles>
110125
<goals>deploy</goals>
111126
</configuration>
112-
</plugin>
113-
<!-- release to Maven central -->
114-
<plugin>
115-
<groupId>org.sonatype.plugins</groupId>
116-
<artifactId>nexus-staging-maven-plugin</artifactId>
117-
<version>1.6.13</version>
118-
<extensions>true</extensions>
119-
<configuration>
120-
<serverId>ossrh</serverId>
121-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
122-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
123-
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
124-
</configuration>
125127
</plugin>
126128

127-
128129
<plugin>
129130
<groupId>org.apache.maven.plugins</groupId>
130131
<artifactId>maven-site-plugin</artifactId>
131-
<version>3.9.0</version>
132+
<version>3.12.1</version>
132133
</plugin>
133134

134135
<plugin>
@@ -145,6 +146,7 @@
145146
<additionalOptions>-Xdoclint:none</additionalOptions>
146147
</configuration>
147148
</plugin>
149+
148150
<plugin>
149151
<groupId>org.apache.maven.plugins</groupId>
150152
<artifactId>maven-jxr-plugin</artifactId>
@@ -175,7 +177,21 @@
175177
<id>release</id>
176178
<build>
177179
<plugins>
178-
<!-- To generate javadoc -->
180+
<!-- for RELEASES: Central Publishing Plugin -->
181+
<plugin>
182+
<groupId>org.sonatype.central</groupId>
183+
<artifactId>central-publishing-maven-plugin</artifactId>
184+
<version>0.8.0</version>
185+
<extensions>true</extensions>
186+
<configuration>
187+
<publishingServerId>central</publishingServerId>
188+
<autoPublish>true</autoPublish>
189+
<waitUntil>published</waitUntil>
190+
</configuration>
191+
</plugin>
192+
193+
194+
<!-- Source Plugin -->
179195
<plugin>
180196
<groupId>org.apache.maven.plugins</groupId>
181197
<artifactId>maven-source-plugin</artifactId>
@@ -189,6 +205,8 @@
189205
</execution>
190206
</executions>
191207
</plugin>
208+
209+
<!-- Javadoc Plugin -->
192210
<plugin>
193211
<groupId>org.apache.maven.plugins</groupId>
194212
<artifactId>maven-javadoc-plugin</artifactId>
@@ -206,11 +224,11 @@
206224
</executions>
207225
</plugin>
208226

209-
<!-- To sign the artifacts -->
227+
<!-- GPG Signing Plugin -->
210228
<plugin>
211229
<groupId>org.apache.maven.plugins</groupId>
212230
<artifactId>maven-gpg-plugin</artifactId>
213-
<version>1.6</version>
231+
<version>3.1.0</version>
214232
<executions>
215233
<execution>
216234
<id>sign-artifacts</id>
@@ -227,18 +245,16 @@
227245
</profiles>
228246

229247

230-
231248
<!-- Distributen Management oss.sonatype.org -->
232249
<distributionManagement>
233250
<snapshotRepository>
234-
<id>ossrh</id>
235-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
251+
<id>central</id>
252+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
236253
</snapshotRepository>
237254
<repository>
238-
<id>ossrh</id>
239-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
255+
<id>central</id>
256+
<url>https://central.sonatype.com</url>
240257
</repository>
241-
</distributionManagement>
242-
258+
</distributionManagement>
243259

244260
</project>

0 commit comments

Comments
 (0)