<distributionManagement> <repository> <id>releases</id> <name>releases repo</name> <url>http://192.168.253.128:8081/nexus/content/repositories/releases/</url> </repository> <snapshotRepository> <id>snapshots</id> <name>snapshots repo</name> <url>http://192.168.253.128:8081/nexus/content/repositories/snapshots/</url> </snapshotRepository></distributionManagement>然后,在%maven_home%/conf/settings.xml中配置仓库授权信息<servers> <server> <id>releases</id> <username>admin</username> <passWord>admin123</password> </server> <server> <id>snapshots</id> <username>admin</username> <password>admin123</password> </server></servers>最后,在项目根目录运行deploy命令mvn deploy -Dmaven.test.skip=true
新闻热点
疑难解答