Maven发布源代码到私服
作者:
爱蛇 | 来源:发表于
2018-08-23 18:08 被阅读0次
- 配置发布目标远程仓库
<distributionManagement>
<repository>
<id>nexus-release</id>
<url>http://xxxxxx/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshot</id>
<url>http://xxxx/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
- 配置发布源代码插件
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
- 执行发布命令
mvn clean deploy
本文标题:Maven发布源代码到私服
本文链接:https://www.haomeiwen.com/subject/nrvmiftx.html
网友评论