当前位置:   article > 正文

pom文件中个别标签的意思_pom文件repository标签

pom文件repository标签

<distributionManagement>标签:分发配置,用于配置当前maven项目要部署的远程仓
例:

<distributionManagement>
    <repository>
        <id>ht-releases</id>
        <name>releases</name>
        <url>http://192.168.1.201:8011/repository/ht-releases</url>
    </repository>
    <snapshotRepository>
        <id>ht-snapshots</id>
        <name>snapshots</name>
        <url>http://192.168.1.201:8011/repository/ht-snapshots/</url>
    </snapshotRepository>
</distributionManagement>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

<repositories>标签:远程仓库,用于配置当前项目下载依赖的maven仓库地址
例:

<repositories>
        <repository>
            <id>ht-releases</id>
            <name>releases</name>
            <url>http://192.168.1.201:8011/repository/ht-releases</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>ht-snapshots</id>
            <name>snapshots</name>
            <url>http://192.168.1.201:8011/repository/ht-snapshots/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>nexus2</id>
            <name>nexus2</name>
            <url>https://repo1.maven.org/maven2/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35

<pluginRepositories>标签:插件仓库,用于配置当前项目所用的插件的下载仓库
例:

<pluginRepositories>
    <pluginRepository>
        <id>nexus2</id>
        <name>nexus2</name>
       <url>https://repo1.maven.org/maven2/</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </pluginRepository>
</pluginRepositories>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/87969
推荐阅读
相关标签
  

闽ICP备14008679号