maven常用配置


<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

		  
<localRepository>C:\Users\zheng\.m2\repository</localRepository>
<offline>false</offline>
  
  <pluginGroups>
  </pluginGroups>

  
  <proxies>
  </proxies>

  
  <servers>
	<server>
      <id>nexus</id>
      <username>admin</username>
      <password>admin123</password>
    </server>
  </servers>

 
	<mirrors>
		<mirror>  
			<id>nexus-aliyun</id>  
			<mirrorOf>*</mirrorOf>  
			<name>Nexus aliyun</name>  
			<url>http://maven.aliyun.com/nexus/content/groups/public</url>  
		</mirror>
	</mirrors>

	<profiles>
  
	<profile>  
		<id>jdk18</id>  
		<activation>  
			<activeByDefault>true</activeByDefault>  
			<jdk>1.8</jdk>  
		</activation>  
		<properties>  
			<maven.compiler.source>1.8</maven.compiler.source>  
			<maven.compiler.target>1.8</maven.compiler.target>  
			<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>  
		</properties>   
	</profile>
		
	</profiles>
  
  <activeProfiles>
	<activeProfile>jdk18</activeProfile>
  </activeProfiles>
  
  
</settings>

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页