Version 5

    Some of the information on this page is out of date.  Please refer to one of the following pages for current information.

     

    Maven Repository

     

    Maven Getting Started - Users

     

    Maven Getting Started - Developers

     


     

    This page describe the configuration necessary to use the JBoss.org Maven Repository.

     

    The repository is located at - https://repository.jboss.org

     

    There is a repository for releases and one for snapshots.  The distribution management URLs are

    releases: https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/

    snapshots: https://repository.jboss.org/nexus/content/repositories/snapshots/

     

    Your jboss.org username and password can be used to deploy to the repository.

    A separate settings.xml file can be created so that the test environment settings do not interfere with your regular Maven settings.

    For example, create a file called settings-nexus.xml in "~/.m2".  This file should contain the server configuration.

     

    <?xml version="1.0" encoding="UTF-8"?>
    
    <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">
    
      <!--
    
    
       ***   Change your user home here  ***
    
    
       -->
      <localRepository>/home/me/.m2/jboss-repository</localRepository>
    
      <servers>
        <server>
          <id>jboss-repo</id>
          <username>JBoss.org username</username>
          <password>password</password>
        </server>
      </servers>
    
      <mirrors>
        <mirror>
          <id>jboss-developer-group</id>
          <mirrorOf>*</mirrorOf>
          <name>JBoss.org Developer Repository Group</name>
          <url>https://repository.jboss.org/nexus/content/groups/developer/</url>
        </mirror>
      </mirrors>
    
    </settings>
    

     

    When running a build this settings file can be used via the "-s" command line option.

     

    mvn clean install -s ~/.m2/settings-nexus.xml
    

     

    When deploying to the snapshot repository, you should use the "altDeploymentRepository" option of the deploy plugin.

     

    mvn deploy -s ~/.m2/settings-nexus.xml -DaltDeploymentRepository=jboss-repo::default::https://repository.jboss.org/nexus/content/repositories/snapshots/

     

    When deploying to the staging repository, you should use the "altDeploymentRepository" option of the deploy plugin.

     

    mvn deploy -s ~/.m2/settings-nexus.xml -DaltDeploymentRepository=jboss-repo::default::https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/