大資料平臺搭建之deploy components to nexus
阿新 • • 發佈:2019-01-29
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>
{bigdatainfra.opensource.maven.release.repo}
<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>
</properties>
</profile>
Update following configuration in each project pom.xml:
<distributionManagement>
<repository>
<id>bigDataInfraDeploymentRepo</id>
<name>BigDataInfra_Testing</name>
<url>$
</url>
</repository>
</distributionManagement>