Maven Repository Setup and Publishing
CloudRepo hosts Maven repositories for Maven and the build tools that read them. You pick the repository kind when you create it:
| Kind | What it does |
|---|---|
| Hosted (Nexus hosted, Artifactory local) | Stores the artifacts you publish. |
| Proxy (Nexus proxy, Artifactory remote) | Fetches from a public Maven repository you pick from a list, such as Maven Central, and keeps a copy. |
| Group (Nexus group, Artifactory virtual) | One URL in front of several Maven repositories. Read only. |
Connect Maven
Section titled “Connect Maven”- Publish Maven artifacts with
mvn deploy. - Pull Maven artifacts in your builds.
- Proxy repositories: pull Maven Central and other public repositories through CloudRepo.
- Gradle: publish and pull. Android: Use CloudRepo with an Android project.
Maven Repository Settings
Section titled “Maven Repository Settings”Besides the standard settings of every repository, a Maven repository has Maven Snapshot Cleanup and Overwrite Protection.
Maven Overwrite Protection
Section titled “Maven Overwrite Protection”Overwrite Protection is on by default. A second publish of a release version is refused with
409 Conflict: publish a new version. Snapshots and releases
says what it covers and how to turn it off.
Maven group repositories (Nexus maven-public, Artifactory virtual)
Section titled “Maven group repositories (Nexus maven-public, Artifactory virtual)”A group gives your builds one URL for several Maven repositories, such as your Hosted repositories and a Proxy of Maven Central. Pull through a group shows how to create one, point Maven at it and make a token that reads it.