`

Maven的Setting.xml配置默认JDK,本地仓库,repositories

 
阅读更多

个人博客:http://demi-panda.com

 

在settings标签里面添加

<localRepository>D:\Java\m2\repository</localRepository>

此为设置本地仓库


< profiles >
     < profile >   
         < id >jdk-1.6</ id >   
         < activation >   
             < activeByDefault >true</ activeByDefault >   
             < jdk >1.6</ jdk >   
         </ activation >   
         < properties >   
             < maven.compiler.source >1.6</ maven.compiler.source >   
             < maven.compiler.target >1.6</ maven.compiler.target >   
             < maven.compiler.compilerVersion >1.6</ maven.compiler.compilerVersion >   
         </ properties >   
     </ profile >
     < profile
         < id >dev</ id
         < repositories
             < repository
                 < id >local-nexus</ id
                 < url >http://192.168.1.100:8081/nexus/content/groups/public/ </ url
                 < releases
                     < enabled >true</ enabled
                 </ releases
                 < snapshots
                     < enabled >true</ enabled
                 </ snapshots
             </ repository
         </ repositories
     </ profile >
</ profiles >
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics