Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.2
-
Fix Version/s: 2.1
-
Labels:None
-
Environment:HideMac OSX 10.4.10
Maven version: 2.0.7
Java version: 1.6.0-dp
OS name: "mac os x" version: "10.4.10" arch: "i386"
java version "1.6.0-dp"
Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34)
Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)ShowMac OSX 10.4.10 Maven version: 2.0.7 Java version: 1.6.0-dp OS name: "mac os x" version: "10.4.10" arch: "i386" java version "1.6.0-dp" Java(TM) SE Runtime Environment (build 1.6.0-dp-b88-34) Java HotSpot(TM) Client VM (build 1.6.0-b88-17-release, mixed mode, sharing)
-
Number of attachments :
Description
The attached project fails due to an inability to parse the following warning messages from the Java compiler (Java 6)
[INFO] Compilation failure
could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
/Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
entity.deprecateMe();
^
could not parse error message: /Users/tmeighen/compiler-warning/entity/target/classes/test/MyEntity.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Table': class file for javax.persistence.Table not found
/Users/tmeighen/compiler-warning/logic/src/main/java/test/Logic.java:7: warning: [deprecation] deprecateMe() in test.MyEntity has been deprecated
entity.deprecateMe();
^
Issue Links
- depends upon
-
PLXCOMP-87
The Javac Compiler Wrapper breaks the Build on Warnings in Java 6.
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Attachment | warning.tar.gz [ 31534 ] |
| Link |
This issue depends upon |
| Assignee | John Casey [ jdcasey ] | |
| Resolution | Fixed [ 1 ] | |
| Fix Version/s | 2.1 [ 12304 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Resolution | Fixed [ 1 ] |
| Status | Reopened [ 4 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
The project in the second attachment fails in similar fashion when built using Java 6 on Linux.
The problem is rooted in the compiler-plugin's dependency on plexus-compiler-javac which, in its current version 1.5.3, is not capable of parsing Java 6 warning and/or error messages properly.
see also here: http://jira.codehaus.org/browse/PLXCOMP-87