maven私服setting 和pom的配置信息


<?xml version="1.0" encoding="UTF-8"?>


<!-- -------------------------------------------------在父類POM的配置如下: -->


<!-- 本地快照 和release 發布 的配置 -->
<distributionManagement>
    <repository>
        <!-- ID要和MAVEN中conif/setting.xml 中的server保持一致 -->
        <id>releases</id>
        <name>User Project Release</name>
        <!-- release版本的url地址 -->
        <url>http://localhost:8081/nexus/content/repositories/releases/</url>
    </repository>

    <snapshotRepository>
        <!-- ID要和MAVEN中conif/setting.xml 中的server保持一致 -->
        <id>snapshots</id>
        <name>User Project SNAPSHOTS</name>
        <!-- snapshot版本的url地址 -->
        <url>http://localhost:8081/nexus/content/repositories/snapshots/</url>
    </snapshotRepository>
</distributionManagement>

<repositories>
    <repository>
        <id>central</id>
        <name>central</name>
        <!-- 配置倉庫的地址 -->
        <url>http://localhost:8081/nexus/content/groups/</url>
    </repository>
</repositories>




<!-- maven setting.xml的配置如下 ------------------------------------------------------- -->

<!-- releases倉庫的用戶認證信息 -->
<server>
    <id>releases</id>
    <username>admin</username>
    <password>admin123</password>
</server>

<!-- snapshots 快照認證信息 -->
<server>
    <id>snapshots</id>
    <username>admin</username>
    <password>admin123</password>
</server>


<mirror>
    <id>nexus</id>
    <mirrorOf>*</mirrorOf>
    <url>http://localhost:8081/nexus/content/groups/public/</url>
</mirror>
    
    

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM