1. 程式人生 > >大資料平臺搭建之deploy components to nexus

大資料平臺搭建之deploy components to nexus

Add following configuration in mvn setting.xml:
<server>
<id>bigDataInfraDeploymentRepo</id>
<username>admin</username>
<password>admin123</password>
</server>
<profile>
<id>bigdatainfra-default-profile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<bigdatainfra.opensource.maven.release.repo>
http://hostname:8081/nexus/content/repositories/BigDataInfra_Testing/
</bigdatainfra.opensource.maven.release.repo>
</properties>

</profile>

Update following configuration in each project pom.xml:
<distributionManagement>
<repository>
<id>bigDataInfraDeploymentRepo</id>
<name>BigDataInfra_Testing</name>
<url>$

{bigdatainfra.opensource.maven.release.repo}

</url>
</repository>
</distributionManagement>