Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.0
-
None
-
build.log attached
Description
I did a checkout (using TortoiseSVN) from https://svn.apache.org/repos/asf/maven/components/branches/maven-2.1.x/, on my system which doesn't have the command line svn client installed, causing the build to fail as in the attached build.log.
This is caused by this issue: MOJO-936 in buildnumber-maven-plugin. The remedy is to modify maven-core/pom.xml and any other POMs where the plugin is used by upgrading the version of that plugin and adding the <revisionOnScmFailure/> element like so:
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId> <version>1.0-beta-3</version> <executions> <execution> <phase>generate-resources</phase> <goals> <goal>create</goal> </goals> </execution> </executions> <configuration> <doCheck>false</doCheck> <doUpdate>false</doUpdate> <revisionOnScmFailure>0</revisionOnScmFailure> <format>NON-CANONICAL_{0,date,yyyy-MM-dd_HH-mm}_{1}</format> <items> <item>timestamp</item> <item>${user.name}</item> </items> </configuration> </plugin>