maven配置settings.xml

$MAVEN_HOME\conf\settings.xml

<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

	
	<localRepository>E:\maven\repositorylocalRepository>

	
	<mirrors>
		 <mirror>
		    <id>alimavenid>
		    <name>aliyun maven repositoryname>
		    <url>http://maven.aliyun.com/nexus/content/groups/public/url>
		    <mirrorOf>centralmirrorOf>
		  mirror>
		
		  <mirror> 
		    <id>ukid>  
		    <name>uk maven repositoryname>  
		    <url>http://uk.maven.org/maven2/url> 
			<mirrorOf>centralmirrorOf>  
		  mirror>
		  
		  <mirror>
		    <id>nexusid>
		    <name>Maven central repositoryname>
		    <url>http://repo.maven.apache.org/maven2url>
		    <mirrorOf>centralmirrorOf>
		  mirror>
	mirrors>
 
	<profiles>
		
		<profile>
			<id>downloadSourcesid>    
			<properties>    
				<downloadSources>truedownloadSources>    
				<downloadJavadocs>truedownloadJavadocs>               
			properties>    
		profile>
	profiles>
	
	
	<activeProfiles>    
		<activeProfile>downloadSourcesactiveProfile>    
	activeProfiles>  
	
settings>

你可能感兴趣的:(小技巧)