Version 9

    This page described the appropriate configuration that must be done prior to running the tests.

     

    The repository is located at - https://jbtest.sonatype.org

     

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

    releases: https://jbtest.sonatype.org/service/local/staging/deploy/maven2/

    snapshots: https://jbtest.sonatype.org/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 to all you to keep the test environment settings separate from your regular Maven settings.

    For example, create a file called settings-jbtest.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/jbtest-repository</localRepository>
    
      <servers>
        <server>
          <id>jbtest</id>
          <username>JBoss.org username</username>
          <password>password</password>
        </server>
      </servers>
    
      <mirrors>
        <mirror>
          <id>jbtest-releases</id>
          <mirrorOf>*</mirrorOf>
          <name>JBoss.org Test Repository</name>
          <url>https://jbtest.sonatype.org/content/groups/public</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-jbtest.xml
    

     

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

     

    mvn deploy -s ~/.m2/settings-jbtest.xml -DaltDeploymentRepository=jbtest::default::https://jbtest.sonatype.org/content/repositories/snapshots/
    

     

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

     

    mvn deploy -s ~/.m2/settings-jbtest.xml -DaltDeploymentRepository=jbtest::default::https://jbtest.sonatype.org/service/local/staging/deploy/maven2/