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:\mvn\spring-context-support-3.1.0.RELEASE.jar -DgroupId=org.springframework -DartifactId=spring-context-support -Dversion=3.1.0.RELEASE -Dpackaging=jar

你可能感兴趣的:(java,maven)