I have a very simple project which I want to be packaged as a .rar. Now, I'm using the maven-rar-plugin, and that works perfectly locally. When I package, I get my .rar and it's what I want. However, I have a <distributionManagement>
section like this:
<distributionManagement>
<repository>
<id>deployment</id>
<name>Release Repo</name>
<url>http:// mynexus.com: 8081/nexus/content/repo/release</url>
</repository>
</distributionManagement>
Then when I run deploy -DperformRelease='true'
, I get a .jar published to my nexus. Then when I include this project as a dependency in another project:
<dependency>
<groupId>MyProject</groupId>
<artifactId>myProject</artifactId>
<version>v1</version>
<type>rar</type>
</dependency>
It goes to mynexus and tries to download it but can't find it. When I browse nexus, the project is there in the releases dir, but it's a .jar in there and maven dependency fails saying the .rar isn't there