You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

How to configure our maven repository for use

Maven ~/.m2/settings.xml configuration on mac/linux stations

<settings xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <localRepository/>
    <interactiveMode/>
    <usePluginRegistry/>
    <offline/>
    <pluginGroups/>
    <servers>
    </servers>
    <mirrors>
        <mirror>
            <id>bb-public</id>
            <url>http://nexus.infra.bolbat.net/content/groups/public</url>
            <mirrorOf>*</mirrorOf>
        </mirror>
    </mirrors>
    <proxies/>
    <profiles>
        <profile>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <repositories>                
                <repository>
                    <id>bb-public</id>
                    <url>http://nexus.infra.bolbat.net/content/groups/public</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
        </profile>
    </profiles>
    <activeProfiles/>
</settings>

Notes

  • mirror is optional and can be skipped if you use another mirror of maven central repository or don't want use mirror for maven central repository at all
  • if you already have own configured settings.xml configuration and only want to add our repository - just copy bb-public repository from this configuration to repositories section to you configuration

 

 

 

  • No labels