From: Eric H. <eha...@rh...> - 2005-08-22 15:02:25
|
Hi, I've tried maven-1.1 and Javaapp. And I was unable to make it works, it seems that the following code : <j:getStatic var="mavenVersion" className="org.apache.maven.MavenSession" field="APP_VERSION"/> does not work anymore (There is a nosuchfieldexception while running maven -X). The correction may be quite simple by replacing the line with: <j:set var="mavenVersion" value="${maven.application.version}"/> I've tested this with Maven-1.0.2 and it works well (I cannot test it with maven-1.0 and maven-1.0.1 since they are not available on the maven site). If someone can test this modification on maven-1.0 or 1.0.1 it may be usefull to replace : <!-- getStatic tag does not work in Maven 1.0 & 1.0.1 --> <j:getStatic var="mavenVersion" className="org.apache.maven.MavenSession" field="APP_VERSION"/> <j:if test="${mavenVersion == null}"> <j:set var="mavenVersion" value="1.0"/> </j:if> <ant:attribute name="Maven-Version" value="${mavenVersion}"/> by <ant:attribute name="Maven-Version" value="${maven.application.version}"/> Regards, -eric |