Created
August 26, 2018 10:48
-
-
Save ques0942/e387fa9181e26f56c842174b744cafcd to your computer and use it in GitHub Desktop.
mavenレポジトリをnexusに移設するメモ(nexusのレポジトリ構成) ref: https://qiita.com/ques0942/items/f60701e02210a32dbf1c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn deploy:deploy-file -Dfile=<アップロードするjarのパス> -Durl=<アップロード先mavenレポジトリのURL> -DrepositoryId=<アップロード先レポジトリのID> -DpomFile=<アップロードするjarに対応するpomのパス> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn deploy:deploy-file -Dfile=<アップロードするpomのパス> -Durl=<アップロード先mavenレポジトリのURL> -DrepositoryId=<アップロード先レポジトリのID> -DgroupId=<アップロードするpomのgroupId> -DartifactId=<アップロードするpomのartifactId> -Dversion=<アップロードするpomのversion> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings> | |
<servers> | |
<server> | |
<id>${snapshotレポジトリのID}</id> | |
<username>${ログインユーザー}</username> | |
<password>${ログインユーザーのパスワード}</password> | |
</server> | |
<server> | |
<id>${releaseレポジトリのID}</id> | |
<username>${ログインユーザー}</username> | |
<password>${ログインユーザーのパスワード}</password> | |
</server> | |
</servers> | |
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<distributionManagement> | |
<snapshotRepository> | |
<id>${snapshotレポジトリのID}</id> | |
<url>${snapshotレポジトリのURL}</url> | |
</snapshotRepository> | |
<repository> | |
<id>${releaseレポジトリのID}</id> | |
<url>${releaseレポジトリのURL}</url> | |
</repository> | |
</distributionManagement> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool.exe "-J-Djava.net.useSystemProxies=true" -printcert -rfc -sslserver <nexusのホスト名>:443 | Out-File -FilePath cert.pem -Encoding ASCII | |
keytool.exe -importcert -file cert.pem -alias nexus -storepass changeit -keystore '<JAVA_HOME>\jre\lib\security\cacerts' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn dependency:purge-local-repository clean package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment