You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Milos Kleint <ca...@tiscali.cz> on 2004/04/04 10:41:39 UTC
custom ant task in maven problem.
hello,
I'm writing a plugin for creating netbeans modules using maven.
One part of it doens't work for me. I'm using netbeans own ant tasks to
generate the files.
One of the tasks requires a javax.xml.transform.TransformerFactory for
the file generation.
I was not able to put xalan of the classpath of the task.
The only way I succeed was to put the xalan's factory impl on the maven
startup into the system property (maven --offline
-Djavax.xml.transform.TransformerFactory=<impl name> nbm)
what I tried:
I added the xalan jar as dependency.
I added it on the <classloader>root></classloader>
I tried something along these lines in the taks definition:
<ant:taskdef name="genlist"
classname="org.netbeans.nbbuild.MakeListOfNBM" >
<ant:classpath>
<ant:pathelement
location="${plugin.getDependencyPath('xalan:xalan')}"/>
<ant:pathelement
location="${plugin.getDependencyPath('netbeans:nbantext')}"/>
<ant:path refid="maven.dependency.classpath"/>
</ant:classpath>
</ant:taskdef>
nothing of this works. Any idea?
thank you very much.
Milos Kleint
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org