<java classname="weblogic.tools.ejbgen.EJBGen" fork="true">
<classpath>
<pathelement path="${plugin.getDependencyPath('ejbgen')}"/>
<pathelement location="${tools.jar}"/>
</classpath>one more question does this:
plugin.getDependencyPath('ejbgen')
refer to the full dependency path of the ejbgen plugin, or does it query the dependencies for the current plugin for the dependency with id ejbgen? Not sure which as both the plugin and the dependency have the same name.
thanks Nathan
[EMAIL PROTECTED] wrote:
Nathan,
use a classpath inside the 'java' task. Use plugin.getDependencyPath('id') to get the jar file name.
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
Nathan Coast <[EMAIL PROTECTED]> wrote on 15/09/2003 03:53:12 PM:
Is this as designed? IMO it'd feel nicer if the plugin was responsible for declaring its dependencies rather than having to declare the plugin's runtime dependencies within each component that uses the
plugin.
Brett Porter wrote:
Yes.
-----Original Message-----
From: Nathan Coast [mailto:[EMAIL PROTECTED] Sent: Monday, 15 September 2003 2:47 PM
To: Maven Users List
Subject: Re: plugin dependencies
cheers Brett,
this only works if the project has the dependency included in the project.xml rather than defining the dependency in the plugin's project.xml. Is this right?
Brett Porter wrote:
Remove the <classloader> properties, and add this to the java call: classpathref="maven.dependency.classpath"
Cheers, Brett
-----Original Message----- From: Nathan Coast [mailto:[EMAIL PROTECTED] Sent: Monday, 15 September 2003 2:08 PM To: Maven Users Subject: plugin dependencies
Hi
I have a plugin that uses 3rd party classes. How do I make these
classes available to the plugin? I'm getting a
NoClassDefFoundError
when calling targets within the plugin.
I'm calling the 3rd party classes like this: <ant:java classname="weblogic.Deployer" fork="true"> <arg>blah blah........
I have this element in the plugin's project.xml
<dependency> <id>weblogic</id> <version>8.1</version> <properties> <classloader>root</classloader> </properties> </dependency>
cheers Nathan
------------------------------------------------------------
---------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
