pom.xml 配置maven私服
1.pom.xml 配置maven私服
<repositories>
<repository>
<id>caf_repositories</id>
<url>http://10.191.9.13:8080/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
<!-- <updatePolicy>interval:5</updatePolicy> -->
</releases>
<snapshots>
<enabled>true</enabled>
<!-- <updatePolicy>always</updatePolicy> -->
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>cpic-nexus</id>
<url>http://10.191.9.13:8080/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<!-- maven 编译 -->
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>dev/*</exclude>
<exclude>dev/conf/*</exclude>
<exclude>ft/*</exclude>
<exclude>ft/conf/*</exclude>
<exclude>sit/*</exclude>
<exclude>sit/conf/*</exclude>
<exclude>performance/*</exclude>
<exclude>performance/conf/*</exclude>
<exclude>uat/*</exclude>
<exclude>uat/conf/*</exclude>
<exclude>online/*</exclude>
<exclude>online/conf/*</exclude>
<exclude>onlineapp/*</exclude>
<exclude>onlineapp/conf/*</exclude>
<exclude>config/*</exclude>
<exclude>config/conf/*</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources/${profiles.active}</directory>
</resource>
</resources>
</build>
<profiles>
<profile>
<id>dev</id>
<properties>
<profiles.active>dev</profiles.active>
</properties>
</profile>
<profile>
<id>config</id>
<properties>
<profiles.active>config</profiles.active>
</properties>
</profile>
<profile>
<id>ft</id>
<properties>
<profiles.active>ft</profiles.active>
</properties>
</profile>
<profile>
<id>sit</id>
<properties>
<profiles.active>sit</profiles.active>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>performance</id>
<properties>
<profiles.active>performance</profiles.active>
</properties>
</profile>
<profile>
<id>uat</id>
<properties>
<profiles.active>uat</profiles.active>
</properties>
</profile>
<profile>
<id>online</id>
<properties>
<profiles.active>online</profiles.active>
</properties>
</profile>
<profile>
<id>onlineapp</id>
<properties>
<profiles.active>onlineapp</profiles.active>
</properties>
</profile>
</profiles>