Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0-rc1
-
Component/s: None
-
Labels:None
-
Environment:Windows 2000
-
Number of attachments :
Description
Compiling project without resources the resulting maven.log file contains a lot of exceptions like this:
2003-09-10 15:36:28,527 WARN org.apache.commons.jelly.expression.jexl.JexlExpression - Caught exception evaluating: org.apache.commons.jexl.ExpressionImpl@19be6ee. Reason: java.lang.NumberFormatException: For input string: "includes"
java.lang.NumberFormatException: For input string: "includes"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:468)
at java.lang.Integer.valueOf(Integer.java:574)
at org.apache.commons.jexl.util.Coercion.coerceInteger(Coercion.java:95)
at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:177)
at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:104)
at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:106)
at java.lang.Integer.parseInt(Integer.java:468)
....
To me this seems to be due to the lack of a couple of check in the jelly script of the java plugin.
I have attached a patch that solve the problem.
There's a lot wrong with this patch.
a) It uses ant:property outside the <choose>
b) It uses !(pom.build.resources != null), which means if the resources are null is the only time it does it.