Maven: Settings.xml File

    Note: this Maven configuration provides access to Jive binaries and sources via the maven-secure.jivesoftware.com server; it requires login access.  See the bottom of the document where to put your login information.

     

    Please request maven access by creating a Supportal case.  If you do not have a company group, you may email your maven request to accountsupport@jivesoftware.com

     

    Where to Put This

    VERY IMPORTANT: you need to put this in ~/.m2/ if you are on Unix/Mac or in your user home/.m2 directory ("C:\Documents and Settings\your username\.m2") on Windows.  See How-To: Install Maven for more information if this doesn't make sense.

     

    If you don't put settings.xml in the right location, Maven won't find your dependencies.   This is the #1 reason people experience Maven issues.

     

    Alternatively, you can run Maven with a command line switch pointing to settings.xml in a different location, like this:

     

    mvn -s C:\Jive\maven\settings.xml

     

    The File

     

    <?xml version="1.0"?>  
    <settings>  
        <profiles>  
            <profile>  
                <id>jive</id>  
                <!--Enable snapshots for the built in central repo to direct -->  
                <!--all requests to nexus via the mirror -->  
                <properties>  
                    <tomcat6.home><![CDATA[/usr/local/apache-tomcat-6.0.37]]></tomcat6.home>  
             <tomcat7.home><![CDATA[/usr/local/apache-tomcat-7.0.47]]></tomcat7.home>
                    <jive.setup>true</jive.setup>  
                    <jive.devMode>false</jive.devMode>  
                </properties>  
                <repositories>  
                    <repository>
                        <id>jive.internal</id>
                        <name>Jive's Repository</name>
                        <url>
                            https://maven-secure.jivesoftware.com/archiva/repository/jive.internal
                        </url>
                        <snapshots>  
                            <enabled>false</enabled>  
                        </snapshots>  
                        <releases>  
                            <enabled>true</enabled>  
                        </releases>  
                    </repository>
                    <repository>
                        <id>jive.snapshots</id>
                        <name>Jive's Repository</name>
                        <url>
                            https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots
                        </url>
                        <snapshots>  
                            <enabled>true</enabled>  
                        </snapshots>  
                        <releases>  
                            <enabled>false</enabled>  
                        </releases>  
                    </repository>
                </repositories>  
                <pluginRepositories>  
                    <pluginRepository>
                        <id>jive.internal</id>
                        <name>Jive's Repository</name>
                        <url>
                            https://maven-secure.jivesoftware.com/archiva/repository/jive.internal
                        </url>
                        <snapshots>  
                            <enabled>false</enabled>  
                        </snapshots>  
                        <releases>  
                            <enabled>true</enabled>  
                        </releases>  
                    </pluginRepository>
                    <pluginRepository>
                        <id>jive.snapshots</id>
                        <name>Jive's Repository</name>
                        <url>
                            https://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots
                        </url>
                        <snapshots>  
                            <enabled>true</enabled>  
                        </snapshots>  
                        <releases>  
                            <enabled>false</enabled>  
                        </releases>  
                    </pluginRepository>
                </pluginRepositories>  
            </profile>  
        </profiles>  
        <activeProfiles>  
            <activeProfile>jive</activeProfile>  
        </activeProfiles>  
        <pluginGroups>
            <pluginGroup>com.jivesoftware.maven.plugins</pluginGroup>
        </pluginGroups>
        <servers>  
            <server>  
                <id>jive.internal</id>  
                <username></username>  
                <password></password>  
            </server> 
            <server>  
                <id>jive.snapshots</id>  
                <username></username>  
                <password></password>  
            </server> 
        </servers>
    </settings>