[
https://jira.codehaus.org/browse/MBUILDNUM-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte moved MOJO-1644 to MBUILDNUM-85:
-----------------------------------------------
Complexity: (was: Intermediate)
Affects Version/s: (was: buildnumber-maven-plugin-1.0-beta-4)
buildnumber-maven-plugin-1.0-beta-4
Key: MBUILDNUM-85 (was: MOJO-1644)
Project: Mojo Build Number Maven Plugin (was: Mojo)
> Buildnumber plugin doesn't fail on doCheck if file is modified
> --------------------------------------------------------------
>
> Key: MBUILDNUM-85
> URL: https://jira.codehaus.org/browse/MBUILDNUM-85
> Project: Mojo Build Number Maven Plugin
> Issue Type: Bug
> Affects Versions: buildnumber-maven-plugin-1.0-beta-4
> Environment: Windows XP SP3, Maven 3.0.1, Subversion 1.6.15, JDK
> 1.6_11
> Reporter: Martin Ackermann
> Assignee: Olivier Lamy
>
> I use the following configuration in my pom.xml:
> <build>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>buildnumber-maven-plugin</artifactId>
> <version>1.0-beta-4</version>
> <executions>
> <execution>
> <phase>verify</phase>
> <goals>
> <goal>create</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <doCheck>true</doCheck>
> <doUpdate>false</doUpdate>
> </configuration>
> </plugin>
> </plugins>
> Steps to reproduce:
> 1. Check out the project.
> 2. Modify a .java file that is under version control, e.g. add a method to
> my-package\MyClass.java. The file gets the dirty icon in Eclipse.
> 3. Run "mvn -U buildnumber:create". The build succeeds, but it should fail.
> Interestingly, the log says:
> [DEBUG] M src\main\java\mypackage\MyClass.java
> So, the SVN client correctly identified the modified file, but the
> buildnumber plugin didn't react on this result.
> If I delete my-package\MyClass.java, it works as expected:
> [ERROR] Failed to execute goal
> org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4:create (default-cli) on
> project trial-maven: Cannot create the build number because you have local
> modifications :
> [ERROR] [ src\main\java\my-package\MyClass.java:deleted]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email