I have a flat project structure with several projects. I use Nexus for the internal repository and SVN for source control. I can deploy the SNAPSHOT assembly of my project.
In my parent POM, I added the Maven Release plugin:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.1</version> </plugin>
and distribution information:
<distributionManagement> <repository> <id>releases</id> <url>http://localhost:8081/nexus/content/repositories/releases</url> </repository> <snapshotRepository> <id>snapshots</id> <name>Internal Snapshots</name> <url>http://localhost:8081/nexus/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement>
When I do mvn release:prepare , artifacts with release versions are not deployed to the repo. Therefore, if I have a project A with a dependency on project B. Project A cannot get artifact B using the production version.
source share