MavenSettings

    This page describes some JBoss specific information that can/should be put into the maven settings file.  This file is located in ~/.m2/settings.xml for user specific settings, and in $MAVEN_HOME/conf/settings.xml for settings specific to that maven installation.

     

    To deploy to the snapshots server, you will need to add your credentials for uploading via webdav.

     

        <server>
          <id>snapshots.jboss.org</id>
          <username>jboss.org username</username>
          <password>password</password>
        </server>
    

     

    To use the jboss repositories, you will have to define a profile that contains the repository configuration.  This repository configuration profile can be turned off by setting the property "-Djboss.repository.off" when running maven.

     

        <profile>
          <id>jboss.repository</id>
          <activation>
            <property>
              <name>!jboss.repository.off</name>
            </property>
          </activation>
          <repositories>
            <repository>
              <id>snapshots.jboss.org</id>
              <url>http://snapshots.jboss.org/maven2</url>
              <snapshots>
                <enabled>true</enabled>
              </snapshots>
            </repository>
            <repository>
              <id>repository.jboss.org</id>
              <url>http://repository.jboss.org/maven2</url>
              <snapshots>
                <enabled>false</enabled>
              </snapshots>
            </repository>
          </repositories>
          <pluginRepositories>
            <pluginRepository>
              <id>repository.jboss.org</id>
              <url>http://repository.jboss.org/maven2</url>
              <snapshots>
                <enabled>false</enabled>
              </snapshots>
            </pluginRepository>
            <pluginRepository>
              <id>snapshots.jboss.org</id>
              <url>http://snapshots.jboss.org/maven2</url>
              <snapshots>
                <enabled>true</enabled>
              </snapshots>
            </pluginRepository>
          </pluginRepositories>
        </profile>
    
    

     

    You may also need to set some properties to be shared by projects.

     

        <profile>
          <id>local-properties</id>
          <activation>
            <activeByDefault>true</activeByDefault>
          </activation>
          <properties>
            <maven.repository.root>${user.home}/repositories/repository.jboss.org/maven2</maven.repository.root>
            <maven-jdk14.repository.root>${user.home}/repositories/repository.jboss.org/maven2-jdk14</maven-jdk14.repository.root>
            <jboss.repository.root>${user.home}/repositories/repository.jboss.org</jboss.repository.root>
            <ydoc.home>${user.home}/ydoc</ydoc.home>
            <java14_home>/usr/java/j2sdk1.4.2_13</java14_home>
            <jbossretro.site.root>${user.home}/projects/jbossretro-site/freezone</jbossretro.site.root>   
            <maven-jdocbook-plugin.site.root>${user.home}/projects/maven-jdocbook-plugin-site/freezone</maven-jdocbook-plugin.site.root>
          </properties>
        </profile>
    

     

     

    Referenced by: