赞
踩
<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>
<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>
<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>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。