Page History
...
Code Block |
---|
mvn install -Dmirage2.on=true -P dspace-lni |
Updating your local maven cache will help to ensure that the release process goes more smoothly, and should help you to avoid any errors having to do with Maven being unable to locate any particular dependencies. That being said, this step actually may not be necessary, if our release process is working correctly.
...
Code Block |
---|
mvn release:prepare -DdryRun=true -Dmirage2.on=true -P dspace-lni |
You will have to enter in your GPG passphrase (which you established when you created your Code Signing Key).
Info | ||||
---|---|---|---|---|
| ||||
If you notice an issue or an error occurs, you can re-run the Dry Run using the following command:
You can also clean up any of the release files that the Dry Run created, and just re-run it.
|
Tag and Increment Version
...
Code Block |
---|
mvn release:prepare -Dresume=false -Dmirage2.on=true -P dspace-lni |
(Optionally, you may also include the parameters -Dusername=YourGitHubUsername -Dpassword=YourGitHubPassword
at the end of the above command, though I've not found these to be necessary)
...
Note | ||
---|---|---|
| ||
The
|
Note | ||
---|---|---|
| ||
If backing out of this step is needed for any reason, the following will restore the github repository and your working copy to the state it was previously in:
|
...
Code Block |
---|
mvn release:perform -Dmirage2.on=true -P dspace-lni |
You should be prompted by Maven to specify your GPG passphrase (which you established when you created your Code Signing Key). If you run into any issues, it's possible to specify your GPG key and passphrase as arguments to the above command (e.g. -Darguments="-Dgpg.keyname=YourKeyId -Dgpg.passphrase=YourKeyPassword"
)
Info | ||
---|---|---|
| ||
If any errors or problems occur during the deploy, you can re-run |
...
- Login to http://oss.sonatype.org/
- Click "Staging Repositories" in the left column, then select the checkbox next to the staged repository on the right. The contents of it will open up at the bottom of the page.
- With the staged repository still selected, click the "Close" button at the top.
Download and test that the artifacts in staging are exactly as they should be once deployed to central.
Info title If You Need to Revert Back before Releasing If anything is incorrect, select the staged repository and select "Drop". After the problem is resolved, you can re-deploy the artifacts to staging and verify them again. To re-deploy an already-tagged release:
mvn release:perform -Dmirage2.on=true -P dspace-lni -Dtag=dspace-x.y -DconnectionUrl=scm:git:git@github.com:DSpace/DSpace.git -Darguments="-Dgpg.keyname=YourKeyId -Dgpg.passphrase=YourKeyPassword"
If everything looks good, select the repository and select "Release". The artifacts should be synced to Maven central (http://repo2.maven.org/maven2/org/dspace/) within 2 hours.
Warning title Once Released, There is No "Undo" Option Once you select "Release", there is no way to "undo" the release. If any major issues are found, you'll have to increment the version number and perform a new bug-fix release.
...
Code Block |
---|
localhost$ cd target/checkout/dspace/
localhost$ mvn package -Pdistributions -Dmirage2.on=true -P dspace-lni
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------------------------------------------------------------
[INFO] Building DSpace Assembly and Configuration 3.0
[INFO] ----------------------------------------------------------------------------
....
[INFO] --- maven-assembly-plugin:2.2.1:single (default) @ dspace ---
[INFO] Reading assembly descriptor: src/main/assembly/release.xml
[INFO] Reading assembly descriptor: src/main/assembly/src-release.xml
[INFO] Building zip: [full-path-to-dspace-src]/dspace/target/dspace-3.0-release.zip
[INFO] Building tar: [full-path-to-dspace-src]/dspace/target/dspace-3.0-release.tar.gz
[INFO] Building tar: [full-path-to-dspace-src]/dspace/target/dspace-3.0-release.tar.bz2
[INFO] Building zip: [full-path-to-dspace-src]/dspace/target/dspace-3.0-src-release.zip
[INFO] Building tar: [full-path-to-dspace-src]/dspace/target/dspace-3.0-src-release.tar.gz
[INFO] Building tar: [full-path-to-dspace-src]/dspace/target/dspace-3.0-src-release.tar.bz2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
|
...