Problem with building xml-maven-plugin from source due to way of using
TransformerFactory class
-----------------------------------------------------------------------------------------------
Key: MOJO-1151
URL: http://jira.codehaus.org/browse/MOJO-1151
Project: Mojo
Issue Type: Bug
Components: xml
Environment: Maven 2.0.9, Eclipse 3.3.1.1, Java 6_03, Windows XP SP3
Reporter: Piotr Kubowicz
Assignee: Jochen Wiedmann
Priority: Minor
I have checked out version 6745 of xml-maven-plugin from Mojo repository and
run "mvn eclipse:eclipse" to create Eclipse project. However, I got some
compiler errors. The cause of the error was line 185 of TransformMojo.java
(getTransformerFactory( ) method). My Eclipse is configured to run on Java 5
and you invoke method TransformerFactory.newInstance(String, ClassLoader),
which is present in JDK 6, but not in JDK 5. I also think that line 182 from
TransformMojoTest depends on JDK 6 and won't run on JDK 5.
If you use Java 6, you should declare this explicitly in your POM; otherwise
people may have problems building your application.
--
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