.rar としてパッケージ化したい非常に単純なプロジェクトがあります。今、私は maven-rar-plugin を使用していますが、これはローカルで完全に機能します。パッケージ化すると、自分の .rar が得られます。これが欲しいものです。ただし、次の<distributionManagement>
ようなセクションがあります。
<distributionManagement>
<repository>
<id>deployment</id>
<name>Release Repo</name>
<url>http:// mynexus.com: 8081/nexus/content/repo/release</url>
</repository>
</distributionManagement>
次に を実行するdeploy -DperformRelease='true'
と、.jar が nexus に公開されます。次に、このプロジェクトを依存関係として別のプロジェクトに含めると、次のようになります。
<dependency>
<groupId>MyProject</groupId>
<artifactId>myProject</artifactId>
<version>v1</version>
<type>rar</type>
</dependency>
mynexus にアクセスしてダウンロードしようとしますが、見つかりません。nexus を参照すると、プロジェクトはリリース ディレクトリにありますが、そこには .jar があり、.rar がないと言って maven の依存関係が失敗します