I happened to have the same problem. However, in my case it was reproducible
both in Eclipse (with m2eclipse) and as command-line build.
The problem was resolved once I configured the maven compiler plugin to not
fork:
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.5.1</version>
        <configuration>
                <fork>*false*</fork>
        ...      

According to  this <http://jira.codehaus.org/browse/MNG-5456>   bug in maven
3.0.x, this problem should not occur with maven 3.1.x. However, this was not
the case for me (using 3.1.1).



--
View this message in context: 
http://maven.40175.n5.nabble.com/compile-failure-warning-and-build-succesfull-tp2838009p5775406.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to