- 起動/終了
~/usr/local/nexus/bin/nexus start
~/usr/local/nexus/bin/nexus stop
Nexus2 -> http://localhost:8081/nexus/
Nexus3 -> http://localhost:8081/
- ログイン
admin/admin123
deployment/deployment123
pom.xml
<distributionManagement> <repository> <id>my-nexus</id> <name>Internal Releases</name> <url>http://localhost:8081/nexus/content/repositories/releases/</url> </repository> <snapshotRepository> <id>my-nexus-snapshot</id> <url>http://localhost:8081/nexus/content/repositories/snapshots/</url> </snapshotRepository> </distributionManagement>
settings.xml
<servers> <server> <id>my-nexus</id> <username>deployment</username> <password>deployment123</password> </server> <server> <id>my-nexus-snapshot</id> <username>deployment</username> <password>deployment123</password> </server> </servers>
mvn deploy