cd nexus
docker-compose up -d
Open nexus on browser http://localhost:8081/. For authorization use login admin
and default password (you can be found it in the nexus/nexus-data/admin.password)
Add the configuration below to ~/.m2/setting.xml
<mirrors>
<mirror>
<id>nexus-mirror-central</id>
<name>nexus-mirror-central</name>
<mirrorOf>*</mirrorOf>
<url>http://localhost:8081/repository/maven-central/</url>
</mirror>
</mirrors>
cd mamaven-project
mvn clean install
Open on Browser http://localhost:8081/service/rest/repository/browse/maven-central/
- Go to http://localhost:8081/#admin/repository/repositories
- Click "Create repository"
- Select "maven2(proxy)"
- Fill "Name" as "gradle-plugins"
- Fill "Remote Storage" as "https://plugins.gradle.org/m2/"
- Click "Create repository"
Add the configuration below to ~/.gradle/gradle.properties
nexusUrl = http://localhost:8081/
cd gradle
gradle clean build
Open on Browser http://localhost:8081/service/rest/repository/browse/maven-central/ and http://localhost:8081/service/rest/repository/browse/gradle-plugins/