Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 23 additions & 38 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<organization>
<name>LYRASIS</name>
<url>http://www.dspace.org</url>
<url>https://www.dspace.org</url>
</organization>

<properties>
Expand Down Expand Up @@ -162,9 +162,9 @@
</plugin>
<!-- Used to generate a new release via Sonatype (see release profile). -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.8.0</version>
</plugin>
<!-- Used to generate JavaDocs for new releases (see release profile). -->
<plugin>
Expand Down Expand Up @@ -235,7 +235,7 @@
<profiles>
<!--
The 'release' profile is used by the 'maven-release-plugin' (see above)
to actually perform an dspace-replicate release to Maven central.
to actually perform an dspace-replicate release to Maven Central.
This profile contains settings which are ONLY enabled when performing
a DSpace module release. See also https://wiki.lyrasis.org/display/DSPACE/Release+Procedure
NOTE: You MUST trigger this profile by running "-Drelease"
Expand All @@ -252,26 +252,24 @@
</activation>
<build>
<plugins>
<!-- Configure Nexus plugin for new releases via Sonatype.
See: http://central.sonatype.org/pages/apache-maven.html -->
<!--
Configure Central Publishing Plugin for new releases via Sonatype.
See: https://central.sonatype.org/publish/publish-portal-maven/
A few notes on how this plugin works:
1. In your settings.xml, your user/password tokens MUST be specified for a <server> tag
with <id>central</id>. Otherwise, you will see a 401 Unauthorized error.
2. The <distributionManagement> POM section is no longer needed. This plugin defaults to
uploading releases to Central Portal (https://central.sonatype.com/publishing)
and -SNAPSHOT releases to https://central.sonatype.com/repository/maven-snapshots/
3. Sonatype has publishing *requirements* which must be met. Our POM is already configured to
meet those requirements: https://central.sonatype.org/publish/requirements/
-->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<!-- In your settings.xml, your username/password
MUST be specified for server 'ossrh' -->
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<!-- Disable autoclose of repository after upload, as this sometimes times out -->
<skipStagingRepositoryClose>true</skipStagingRepositoryClose>
<!-- Require manual verification / release to Maven Central -->
<autoReleaseAfterClose>false</autoReleaseAfterClose>
<!-- Increase Staging timeout to 10mins -->
<stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes>
</configuration>
</plugin>
<!-- For new releases, generate Source JAR files -->
<!-- Per Sonatype publishing requirements, generate Source JAR files -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand All @@ -284,7 +282,7 @@
</execution>
</executions>
</plugin>
<!-- For new releases, generate JavaDocs -->
<!-- Per Sonatype publishing requirements, generate JavaDocs -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
Expand All @@ -297,7 +295,7 @@
</execution>
</executions>
</plugin>
<!-- Sign any new releases via GPG.
<!-- Per Sonatype publishing requirements, sign any new releases via GPG.
NOTE: you may optionally specify the "gpg.passphrase" in your settings.xml -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -457,23 +455,10 @@
<scm>
<connection>scm:git:[email protected]:DSpace/dspace-replicate.git</connection>
<developerConnection>scm:git:[email protected]:DSpace/dspace-replicate.git</developerConnection>
<url>git@github.com:DSpace/dspace-replicate.git</url>
<url>https://github.com/DSpace/dspace-replicate</url>
<tag>HEAD</tag>
</scm>

<!-- Configure our release repositories to use Sonatype.
See: http://central.sonatype.org/pages/apache-maven.html -->
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<developers>
<developer>
<name>DSpace Committers</name>
Expand Down