複数のプロジェクトを持つフラットなプロジェクト構造があります。内部リポジトリには Nexus を使用し、ソース コード管理には SVN を使用しています。SNAPSHOT
プロジェクトのビルドをデプロイできます。
親の pom に、maven リリース プラグインを追加しました。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.1</version>
</plugin>
および配布情報:
<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>
を行っているときにmvn release:prepare
、リリース バージョンのアーティファクトがリポジトリにデプロイされません。したがって、プロジェクト B に依存するプロジェクト A があるとします。プロジェクト A は、リリース バージョンで B のアーティファクトを取得できません。