Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Howto configure maven release settings

...

To be able to build and deploy any new Castor release you first have to configure maven settings. To do so you have to create settings.xml file under .m2 subdirectory of your home directory.

Code Block
xml
xml
titlesettings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <servers>
    <\!-- Codehaus -->
    <server>
      <id>codehaus-nexus-snapshots</id>
      <username>username</username>
      <password>password</password>
    </server>
    <server>
      <id>codehaus-nexus-staging</id>
      <username>username</username>
      <password>password</password>
    </server>
  </servers>
</settings>

Links:
http://docs.codehaus.org/display/HAUSMATES/Codehaus+Maven+Repository+Usage+Guide
https://docs.sonatype.org/display/Repository/Client+System+Prerequisites
http://mojo.codehaus.org/development/performing-a-release.html
https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven

You have to replace username and password with your account data.