maven之私服配置deploy及上传命令

maven deploy
http://www.blogjava.net/libin2722/articles/332876.html

maven setting.xml文件
http://www.360doc.com/content/12/0403/14/834950_200481342.shtml

【第一种】pom.xml配置
pom.xml的配置,部署的路径


nexus
releases
http://nexus.mgt.pangu365.com/content/repositories/releases


nexus
releases
http://nexus.mgt.pangu365.com/content/repositories/snapshots
false




Nexus
Nexus Public Repository
http://nexus.mgt.pangu365.com/content/groups/public/



【第二种】{m2_home}/conf/setting.xml配置
setting.xml









【deploy命令】
mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/application/search/tools-1.4.2.jar -Durl=http://nexus.mgt.pangu365.com/content/repositories/thirdparty -DrepositoryId=nexus -X

其中-DrepositoryId=nexus就是服务器中 ${M2_HOME}/conf/setting.xml中,配置用户名密码的id

你可能感兴趣的:(开源框架)