maven 添加jar到中央/远程仓库

commond:

mvn deploy:deploy-file -DgroupId=com.tima.javax.jta -DartifactId=jta -Dversion=1.0.0 -Dpackaging=jar -Dfile=jta.jar -Durl=http://192.168.131.8:8081/nexus/content/repositories/thirdparty/ -DrepositoryId=thirdparty

 

local installmvn install:install-file -Dfile=D:mvnspring-context-support-3.1.0.RELEASE.jar -DgroupId=org.springframework -DartifactId=spring-context-support -Dversion=3.1.0.RELEASE -Dpackaging=jar

猜你喜欢

转载自jaesonchen.iteye.com/blog/2352637