Skip to content

Commit 4c4598f

Browse files
committed
updated pom to match DSpace with new maven-javadoc-plugin configuration
1 parent 1fa03c0 commit 4c4598f

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

pom.xml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<version>${java.version}</version>
5151
</requireJavaVersion>
5252
<requireMavenVersion>
53-
<version>[3.0.5,)</version>
53+
<version>[3.8,)</version>
5454
</requireMavenVersion>
5555
</rules>
5656
</configuration>
@@ -110,7 +110,7 @@
110110
<plugin>
111111
<groupId>org.apache.maven.plugins</groupId>
112112
<artifactId>maven-assembly-plugin</artifactId>
113-
<version>3.7.1</version>
113+
<version>3.8.1</version>
114114
</plugin>
115115
<plugin>
116116
<groupId>org.apache.maven.plugins</groupId>
@@ -171,6 +171,14 @@
171171
<groupId>org.apache.maven.plugins</groupId>
172172
<artifactId>maven-javadoc-plugin</artifactId>
173173
<version>3.11.2</version>
174+
<executions>
175+
<execution>
176+
<id>attach-javadocs</id>
177+
<goals>
178+
<goal>jar</goal>
179+
</goals>
180+
</execution>
181+
</executions>
174182
<configuration>
175183
<!-- Never fail a build based on Javadoc errors -->
176184
<failOnError>false</failOnError>
@@ -197,13 +205,15 @@
197205
<version>3.1.1</version>
198206
<configuration>
199207
<!-- During release:perform, enable the "release" profile (see below) -->
200-
<releaseProfiles>release</releaseProfiles>
208+
<releaseProfiles>-Drelease</releaseProfiles>
201209
<goals>deploy</goals>
210+
<!-- Suggest tagging the release in SCM as "dspace-[version]" -->
211+
<tagNameFormat>dspace-replicate-@{project.version}</tagNameFormat>
202212
<!-- Auto-Version all modules the same as the parent module -->
203213
<autoVersionSubmodules>true</autoVersionSubmodules>
204214
</configuration>
205215
</plugin>
206-
<!-- Copy necessary Runtime Depenencies to /target/lib/
216+
<!-- Copy necessary Runtime Dependencies to /target/lib/
207217
during build process. (We are only including Runtime
208218
dependencies which are not a part of DSpace by default)-->
209219
<plugin>
@@ -253,8 +263,12 @@
253263
MUST be specified for server 'ossrh' -->
254264
<serverId>ossrh</serverId>
255265
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
266+
<!-- Disable autoclose of repository after upload, as this sometimes times out -->
267+
<skipStagingRepositoryClose>true</skipStagingRepositoryClose>
256268
<!-- Require manual verification / release to Maven Central -->
257269
<autoReleaseAfterClose>false</autoReleaseAfterClose>
270+
<!-- Increase Staging timeout to 10mins -->
271+
<stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes>
258272
</configuration>
259273
</plugin>
260274
<!-- For new releases, generate Source JAR files -->

0 commit comments

Comments
 (0)