读书人

平添自己的JAR到远程仓库

发布时间: 2012-12-19 14:13:14 作者: rapoo

添加自己的JAR到远程仓库

POM.xml文件中添加:?

?

?

<distributionManagement>     <repository>       <id>footstee</id>       <name>Internal Releases</name>     <url>http://localhost:8081/nexus/content/repositories/thirdparty</url>     </repository>   </distributionManagement>  

?

?Setting.xml中添加:

?

<server>     <id>footstee</id>     <username>repouser</username>     <password>repopwd</password>   </server>

?关键:id必须一致

?

接下来使用 maven deploy命令,可以将项目打包上传到远程仓库。

eclipse中可以新建maven命令执行deploy

读书人网 >软件架构设计

热点推荐