maven的setting.xml文件中只配置本地仓库路径的方法

maven的setting.xml文件中只配置本地仓库路径的方法

即:settings标签下只有一个 localRepository标签,其他全部注释掉即可

 

<?xml version="1.0" encoding="UTF-8"?>
<settings> 
<localRepository>G:/repository/repositoryTaotao</localRepository><!--ѨҪلԉؔܺքmavenքѾ֘Ӗַࠢ֘-->
<!--    <mirrors>
        <mirror>
            <id>alimaven</id>
            <name>aliyun maven</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
    </mirrors>
  <profiles>
    <profile>
       <id>nexus</id> 
        <repositories>
            <repository>
                <id>nexus</id>
                <name>local private nexus</name>
                <url>http://maven.oschina.net/content/groups/public/</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </repository>
        </repositories>
        
        <pluginRepositories>
            <pluginRepository>
            <id>nexus</id>
            <name>local private nexus</name>
            <url>http://maven.oschina.net/content/groups/public/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            </pluginRepository>
        </pluginRepositories>
    </profile></profiles>
-->
</settings>
 

 

posted @ 2018-10-09 16:33  戈博折刀  阅读(9110)  评论(0编辑  收藏  举报