Hello,
I'm trying to get maven b5 working together with ant 1.5.
However, I always get an exception like this:
E:\maven\jelly>maven
__ __
| \/ |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-b5-dev
commons-jelly (commons-jelly) 1.0-dev
E:\maven\jelly
[available] DEPRECATED - <available> used to override an existing
property.
Build file should not reuse the same property name for different values.
[available] DEPRECATED - <available> used to override an existing
property.
Build file should not reuse the same property name for different values.
[taskdef] [ERROR] java.lang.reflect.InvocationTargetException
[taskdef] [ERROR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native M
ethod)
[taskdef] [ERROR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMet
hodAccessorImpl.java:39)
[taskdef] [ERROR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg
atingMethodAccessorImpl.java:25)
[taskdef] [ERROR] at java.lang.reflect.Method.invoke(Method.java:324)
[taskdef] [ERROR] at
com.werken.forehead.Forehead.run(Forehead.java:543)
[taskdef] [ERROR] at
com.werken.forehead.Forehead.main(Forehead.java:573)
[taskdef] [ERROR] Caused by: java.lang.NoSuchMethodError:
org.apache.tools.a
nt.AntClassLoader.getClasspath()Ljava/lang/String;
[taskdef] [ERROR] at
org.apache.tools.ant.Project.addTaskDefinition(Projec
t.java:897)
[taskdef] [ERROR] at
org.apache.tools.ant.taskdefs.Taskdef.addDefinition(T
askdef.java:82)
[taskdef] [ERROR] at
org.apache.tools.ant.taskdefs.Definer.addDefinition(D
efiner.java:232)
[taskdef] [ERROR] at
org.apache.tools.ant.taskdefs.Definer.execute(Definer
.java:162)
[taskdef] [ERROR] at org.apache.tools.ant.Task.perform(Task.java:317)
[taskdef] [ERROR] at
org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag
.java:185)
[taskdef] [ERROR] at
org.apache.commons.jelly.impl.DynaTagScript.run(DynaT
...
What I did was:
- get a fresh checkout of maven sources
- changed the dependencies to ant 1.5
- modified bin/forehead.conf to load ant 1.5
- bootstraped maven
The exception occurs on the taskdef tag in the changelog plugin. Using
maven -vX tells me that it was when the taskdef was loaded the second time
(always using the ant classloader). In ant 1.4.1, the method
AntClassLoader.getClasspath() did not exist, but I'm pretty sure that there
is no ant 1.4.1 in the classpath. I even rebuild the jelly project but it
didn't help.
Do you have any idea, what I could do?
Thanks,
Stephan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>