Tested: add the following to your build/plugins section:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>default</id>
<goals>
<goal>perform</goal>
</goals>
<configuration>
<pomFileName>subdir/pom.xml</pomFileName>
</configuration>
</execution>
</executions>
</plugin>
Where "subdir" is the relative path to the directory where the pom.xml resides.
This works, at least with Maven 3.0.3. May work with different release plugin versions, but this is untested.
This works with Maven 3.0.4 and maven-release-plugin 2.5 and git 1.8.x.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…