Monday, April 21, 2014

Maven - Configuration setting.xml

@ For maven3
<!-- For maven 3 -->
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<id>server01</id>
<username>admin</username>
<password>password</password>
</server>
</servers>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>central</id>
<name>libs-releases</name>
<url>http://xxx.xxx.xxx.xx:8081/artifactory/libs-releases</url>
</repository>
<repository>
<id>snapshots</id>
<name>libs-snapshots</name>
<url>http://xxx.xxx.xxx.xx:8081/artifactory/libs-snapshots</url>
</repository>
<repository>
<id>maven3-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/3/</url>
<layout>default</layout>
</repository>
</repositories>
<id>artifactory</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
view raw setting.xml hosted with ❤ by GitHub

No comments:

Post a Comment