I am having trouble invoking my project's old ant build script through
maven. I wrote a custom plugin and installed it just fine. I then ran into some issues because the build file used some ant 1.6 extensions (i.e. import) so I downloaded maven-1.1 from subversion. I built my own version and jelly now recognizes the newer tags. However, I now have this problem. Note that I have tried to decompose the problem as much as possible: In my plugin.jelly, I have this goal: <goal name="failing-goal" > <ant:xslt in="in.xml" out="out.xml" style="style.xsl" /> </goal> When I invoke this goal via maven failing-goal, I get the following error: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.XalanL aison at java.net.URLClassLoader$1.run(URLClassLoader.java:199) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at org.apache.tools.ant.taskdefs.XSLTProcess.loadClass(XSLTProcess.java 419) at org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProce s.java:402) BUILD FAILED File...... C:\Documents and Settings\...\.maven\cache\failing-plugin-1.0\plugin.jelly Element... ant:xslt Line...... 28 Column.... 7 java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison Total time: 3 seconds Any ideas? I have tried putting new versions of xalan and xerces into Maven's endorsed directory. I have also tried to make sure that Ant 1.5.X is no where to be found. Please let me know if this is more appropriate for the jelly users list. TIA, Brad --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
Maven 1.1 doesn't come bundled with all the optional tasks.
You need to add a dependency on ant-style-1.6.jar, and possibly set the classloader to root (FAQ may help here) Cheers, Brett On 5/12/05, Bradford Pielech <[hidden email]> wrote: > I am having trouble invoking my project's old ant build script through > maven. I wrote a custom plugin and installed it just fine. I then ran > into some issues because the build file used some ant 1.6 extensions (i.e. > import) so I downloaded maven-1.1 from subversion. I built my own version > and jelly now recognizes the newer tags. However, I now have this problem. > > Note that I have tried to decompose the problem as much as possible: > > In my plugin.jelly, I have this goal: > > <goal name="failing-goal" > > <ant:xslt > in="in.xml" > out="out.xml" > style="style.xsl" > /> > </goal> > > When I invoke this goal via maven failing-goal, I get the following error: > > java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.XalanL > aison > at java.net.URLClassLoader$1.run(URLClassLoader.java:199) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:187) > at java.lang.ClassLoader.loadClass(ClassLoader.java:289) > at java.lang.ClassLoader.loadClass(ClassLoader.java:235) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:141) > at > org.apache.tools.ant.taskdefs.XSLTProcess.loadClass(XSLTProcess.java > 419) > at > org.apache.tools.ant.taskdefs.XSLTProcess.resolveProcessor(XSLTProce > s.java:402) > > BUILD FAILED > File...... C:\Documents and > Settings\...\.maven\cache\failing-plugin-1.0\plugin.jelly > Element... ant:xslt > Line...... 28 > Column.... 7 > java.lang.ClassNotFoundException: > org.apache.tools.ant.taskdefs.optional.TraXLiaison > Total time: 3 seconds > > Any ideas? I have tried putting new versions of xalan and xerces into > Maven's endorsed directory. I have also tried to make sure that Ant 1.5.X > is no where to be found. > > Please let me know if this is more appropriate for the jelly users list. > > TIA, > Brad > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden email] > For additional commands, e-mail: [hidden email] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
Free forum by Nabble | Edit this page |