Page History
...
- Download Handle software distribution package: http://handle.net/download_hnr.html
- Unzip the distribution package.
- The main "handle-[version].jar" can be found in the "/lib" folder
- The "handle-[version]-sources.jar" can be created from the embedded "handle-[version]-src.zip". Just extract that, and rename it to "handle-[version]-sources.jar"
- The "handle-[version]-javadoc.jar" can be created from the "/doc/apidoc" folder. Just extract that, zip it up and rename it to "handle-[version]-javadoc.jar"
Create a valid POM for this release. Here's the one created for v9.2.0 (with help from CNRI staff). NOTE: We've renamed this release to "9.2.0.v20190809v20190814" based on the date it was released to Maven Central.
Code Block <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>org.dspace</groupId> <artifactId>handle</artifactId> <version>9.2.0.v20190809<v20190814</version> <name>CNRI Handle.net software</name> <description> CNRI Handle.net Software (Permission granted for redistribution by Giridhar Manepalli at CNRI) </description> <url>http://handle.net/</url> <dependencies> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.8.5</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.dspace</groupId> <artifactId>cnriutil</artifactId> <version>2.0.v20190416</version> <scope>compile</scope> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.11</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.python</groupId> <artifactId>jython</artifactId> <version>2.2.1</version> <scope>compile</scope> <optional>true</optional> </dependency> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk15on</artifactId> <version>1.59</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcpkix-jdk15on</artifactId> <version>1.59</version> <scope>compile</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.0.1</version> <scope>compile</scope> <optional>true</optional> </dependency> <dependency> <groupId>org.eclipse.jetty.aggregate</groupId> <artifactId>jetty-all</artifactId> <version>8.1.22.v20160922</version> <scope>compile</scope> <exclusions> <exclusion> <artifactId>javax.servlet</artifactId> <groupId>org.eclipse.jetty.orbit</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.sleepycat</groupId> <artifactId>je</artifactId> <version>7.5.11</version> <scope>compile</scope> <optional>true</optional> </dependency> <dependency> <groupId>com.github.oshi</groupId> <artifactId>oshi-core</artifactId> <version>3.13.3</version> <scope>compile</scope> <optional>true</optional> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>org.hamcrest</groupId> <artifactId>hamcrest-core</artifactId> <version>1.3</version> <scope>test</scope> </dependency> <dependency> <groupId>net.minidev</groupId> <artifactId>json-smart</artifactId> <version>2.3</version> <scope>test</scope> </dependency> <dependency> <groupId>com.googlecode.json-simple</groupId> <artifactId>json-simple</artifactId> <version>1.1.1</version> <scope>test</scope> </dependency> <dependency> <groupId>com.nimbusds</groupId> <artifactId>nimbus-jose-jwt</artifactId> <version>2.26.1</version> <scope>test</scope> </dependency> </dependencies> <licenses> <license> <name>Handle.Net Public License Agreement (ver.2)</name> <url>http://hdl.handle.net/20.1000/112</url> <distribution>manual</distribution> </license> </licenses> <developers> <developer> <name>CNRI</name> <email>hdladmin@cnri.reston.va.us</email> <url>http://handle.net/hnr_support.html</url> </developer> </developers> <scm> <url>http://handle.net/download_hnr.html</url> </scm> </project>
...
- Signed each artifact
- gpg2 -ab handle-9.2.0.v20190809v20190814.pom
- gpg2 -ab handle-9.2.0.v20190809v20190814.jar
- gpg2 -ab handle-9.2.0.v20190809v20190814-sources.jar
- gpg2 -ab handle-9.2.0.v20190809v20190814-javadoc.jar
- Now, a total of 8 files exist. Each of the above, and a corresponding "*.asc" signature.
Bundle them into a single JAR (bundle.jar):
Code Block jar -cvf handle-bundle.jar handle-9.2.0.v20190809v20190814.pom handle-9.2.0.v20190809v20190814.pom.asc handle-9.2.0.v20190809v20190814.jar handle-9.2.0.v20190809v20190814.jar.asc handle-9.2.0.v20190809v20190814-sources.jar handle-9.2.0.v20190809v20190814-sources.jar.asc handle-9.2.0.v20190809v20190814-javadoc.jar handle-9.2.0.v20190809v20190814-javadoc.jar.asc
- Login to https://oss.sonatype.org/ and upload the bundle.jar on the "Staging Upload" page
- Select "Artifact Bundle" upload mode
- Upload the "handle-bundle.jar" you created
- Check the "Staging Repositories" to see if all validation succeeded. If not, correct any errors and try again.
- Otherwise, check if everything looks correct. Click Release! Now, wait for it to appear in Maven Central
...
Overview
Content Tools