Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added information on gpg-agent and ssh-agent

...

While it may look surprisingly that you have to add the same credentials three times, DSpace < 6 will be looking for these server IDs and the upload to sonatype will fail as unauthorized if they are missing.

Using SSH and GPG agents

During a release you have to type the passwords of your GPG and SSH keys real often. Every DSpace module produces several files, all have to be signed and transfered to Sonatype. GPG and SSH agents help you to avoid typing passwords again and again. To use an ssh-agent just start it, export the required environment variables and add your ssh-key. To use a gpg agent start it, export the required environment variables and add the following to your ~/.m2/settings.xml:

Code Block
  <profile>
    <id>gpg-profile</id>
    <properties>
      <gpg.useagent>true</gpg.useagent>
    </properties>
  </profile>

Obviously that should be outside of the <servers> tags but included within the <settings> tags. On each maven run it may ask you once about your password which is a big relieve.

Java Version

For DSpace 4.x or 5.x, you should be using Java 7. See

Jira
serverDuraSpace JIRA
serverIdc815ca92-fd23-34c2-8fe3-956808caf8c5
keyDS-3154

...