まず、私の git リポジトリとセットアップの背景を説明させてください...
たとえば... https://github.com/gitRepo/sqeTemp
.
そのレポ内には、互いに関係のない 5 つの mavenized プロジェクトがあります。
gitRepo/sqeTemp
> Project 1
> Project 2
> Project 3
> Project 4
> Project 5
Projects 1 (これはpom.xml
私がリリースしようとしているプロジェクトです。次のものがあります。
<scm>
<connection>scm:git:git@github.com:gitRepo/sqeTemp.git</connection>
<developerConnection>scm:git:git@github.com:gitRepo/sqeTemp.git</developerConnection>
<url>http://github.com/gitRepo/sqeTemp</url>
</scm>
<distributionManagement>
<repository>
<id>releases</id>
<url>
http://ec2.compute.amazonaws.com:8081/nexus/content/repositories/releases
</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>
http://ec2.compute.amazonaws.com:8081/nexus/content/repositories/snapshots
</url>
</snapshotRepository>
</distributionManagement>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<autoVersionSubmodules>false</autoVersionSubmodules>
</configuration>
</plugin>
コマンドを実行すると、mvn release:prepare
プロジェクト 2 とプロジェクト 3 にローカルで変更が加えられているという不平が表示されますが、これはプロジェクト 1 とはまったく関係がないため問題ありません。
ここで問題は、リリース プラグインと Git にプロジェクト 1 だけに集中し、プロジェクト 2 と 3 を気にしないようにするにはどうすればよいかということ
です。 SVNの問題。