部署本地包
CMD 运行:
mvn install:install-file -DgroupId=apache -DartifactId=commons-vfs -Dversion=1.0 -Dpackaging=jar -Dfile=E:\Download\apache-commons-vfs.jar\apache-commons-vfs.jar相当与在pom.xml中添加了apache commons-vfs 1.0
部署远程包
nexus-snapshots http://192.168.1.232:8080/content/repositories/releases 并执行命令: mvn clean deploy nexus-releases http://192.168.1.232:8080/content/repositories/snapshots