maven密码加密
https://blog.csdn.net/weixin_44953227/article/details/125541955
mvn --encrypt-master-password
当前登录用户名\.m2\settings-security.xml
<settingsSecurity>
<master>{2yB41Sc3/uUHseN39zLQB+14crvBhxsQRaXWgOTjdy8=}</master>
</settingsSecurity>
mvn --encrypt-password
<settings> <localRepository>C:\Users\xxx\.m2\repository</localRepository> <proxies> <proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <host>10.xxx.181</host> <port>1999</port> </proxy> </proxies> <servers> <server> <id>pgcidev</id> <name>gcidev</name> <username></username> <password></password> </server> <server> <id>pdev</id> <name>dev</name> <username></username> <password></password> </server> <server> <id>rgcidev</id> <name>gcidev</name> <username></username> <password></password> </server> <server> <id>rdev</id> <name>dev</name> <username></username> <password></password> </server> </servers> <profiles> <profile> <activation> <activeByDefault>True</activeByDefault> </activation> <pluginRepositories> <pluginRepository> <id>pgcidev</id> <name>pgcidevname</name> <url>https://www.artifactrepository.com.net/artifactory/maven-gci-dev/</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> <pluginRepository> <id>pdev</id> <name>pdevname</name> <url>https://www.artifactrepository.com.net/artifactory/maven-dev/</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> <repositories> <repository> <id>rgcidev</id> <name>rgcidevname</name> <url>https://www.artifactrepository.com.net/artifactory/maven-gci-dev/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>rdev</id> <name>rdevname</name> <url>https://www.artifactrepository.com.net/artifactory/maven-dev/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </profile> </profiles> </settings>
clean install -DskipTests -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true