[ https://jira.codehaus.org/browse/MANTRUN-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies closed MANTRUN-59. ----------------------------------- Resolution: Incomplete Assignee: Benson Margulies Without a test case I don't think that anyone can ever do anything about this. Creating a test case from this description is too much work. > Taskdef/Typedef and Plugin dependencies > --------------------------------------- > > Key: MANTRUN-59 > URL: https://jira.codehaus.org/browse/MANTRUN-59 > Project: Maven 2.x Antrun Plugin > Issue Type: Bug > Affects Versions: 1.1 > Reporter: ttest > Assignee: Benson Margulies > > I'm trying to run an ant task during a Maven run. The classes for that Ant > task are included in my Maven runtime dependencies(maven.runtime.classpath). > Here the relevant snippet from my POM: > <tasks> > <path id="my.maven.runtime.classpath"> > <path refid="maven.runtime.classpath"/> > </path> > > <taskdef name="mostGenerator" > classname="com.bmw.most.generator.AntTask" > classpathref="maven.runtime.classpath"/> > > <mostGenerator configurationFile="mostGenerator.configuration" > targetDirectory="target/generated-sources/most"/> > </tasks> > This works if I don't provide depedencies in the POM for my plugin. But if I > do provide depedencies it doesn't work. I consider this to be a bug since > that should have no effect on the behaviour of "maven.runtime.classpath". My > first guess is that this is a classloading issue. Probably by providing > dependencies the classloaders get messed up and that causes the taskdef to > not load the classes from maven.runtime.classpath because echoing the value > of maven.runtime.classpath still gives the right classpath. > I have tried all variants of dereferencing maven.runtime.classpath. Didn't > work. > Also which is very interesting if I hardcode the classpath in the taskdef to > absolute pathnames it also does not work. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira