1
| mvn deploy:deploy-file -DgroupId=com.skytech.ark.auth -DartifactId=com.skytech.ark.auth.stateless -Dversion=1.0.1-SNAPSHOT -Dfile=F:\Downloads\1\1.0.1-SNAPSHOT\com.skytech.ark.auth.stateless-1.0.1-SNAPSHOT.jar -DrepositoryId=nexus-snapshot -Durl=http://nexus.skytech.io/repository/maven-skytech-snapshot/
|
setting.xml
配置
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository>D:\repository</localRepository> <servers> <!-- Used for deploy war to tomcat from tomcat6/7-maven-plugin--> <server> <id>nexus-release</id> <username>deployer</username> <password>xxx</password> </server> <server> <id>nexus-snapshot</id> <username>deployer</username> <password>xxx</password> </server> </servers>
<mirrors> <mirror> <id>nexus-release</id> <mirrorOf>*</mirrorOf> <url>http://nexus.skytech.io/repository/maven-skytech/</url> </mirror> <mirror> <id>nexus-snapshot</id> <mirrorOf>*</mirrorOf> <url>http://nexus.skytech.io/repository/maven-skytech-snapshot/</url> </mirror> <mirror> <id>maven-59-release</id> <mirrorOf>*</mirrorOf> <url>http://32.1.0.59:8081/repository/maven-public/</url> </mirror> </mirrors> </settings>
|
本文地址: https://github.com/maxzhao-it/blog/post/450e8a25/