[ 
http://jira.codehaus.org/browse/MOJO-1644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy closed MOJO-1644.
------------------------------

    Resolution: Not A Bug
      Assignee: Olivier Lamy

The doCheck option to true is configured in your case for a mojo execution bind 
to the verify phase.
You must use mvn verify or move the configuration to the "main" mojo 
configuration section
{code:xml}
<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>buildnumber-maven-plugin</artifactId>
  <version>1.0-beta-4</version>
  <configuration>
    <doCheck>true</doCheck>
    <doUpdate>false</doUpdate>        
  </configuration>
</plugin>
{code}

> Buildnumber plugin doesn't fail on doCheck if file is modified
> --------------------------------------------------------------
>
>                 Key: MOJO-1644
>                 URL: http://jira.codehaus.org/browse/MOJO-1644
>             Project: Mojo
>          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 contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.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


Reply via email to