maven私服配置


定义私服 profile

在setting.xml 的profiles节点中加入如下配置:

<profile>

<repositories>

<repository>

<snapshots>

<enabled>false</enabled>

</snapshots><id>central</id><name>libs-release</name>

<url>http://maven.javamall.com.cn:8081/repository/maven-public/</url>

</repository><repository>

<snapshots />

<id>snapshots</id>

<name>libs-snapshot</name>

<url>http://maven.javamall.com.cn:8081/repository/maven-public/</url>

</repository></repositories><pluginRepositories><pluginRepository>

<snapshots>

<enabled>false</enabled>

</snapshots>

<id>central</id>

<name>plugins-release</name>

<url>http://maven.javamall.com.cn:8081/repository/plugin/</url>

</pluginRepository>

<pluginRepository>

<snapshots />

<id>snapshots</id>

<name>plugins-snapshot</name>

<url>http://maven.javamall.com.cn:8081/repository/plugin/</url>

</pluginRepository>

</pluginRepositories>

<id>javashop-artifactory</id>

</profile>

激活配置


  <activeProfiles>
    <activeProfile>javashop-artifactory</activeProfile>
  </activeProfiles>

results matching ""

    No results matching ""