Hi Christopher,

Take a look in http://jira.codehaus.org/browse/MPH-4 and add your vote. :)

-allan

Christopher Cobb wrote:

Where can I get a list of all variables that can be used in the expression
string?  If this is not documented anywhere, can someone tell me what source
file/module to look in?

-----Original Message-----
From: Allan Ramirez [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 20, 2005 6:47 PM
To: Maven Users List
Subject: Re: how to find dependencies programatically from within Mojo

Hi there,

Please refer to this page
http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-HowdoIgetaplugin%27sdep
endenciesfromaMojo%3F

Hope this helps.

-allan

Helenek, Kris wrote:

Hi,


I'm currently writing a plugin to replace the WsCompile ant task that
comes with the JWSDP.


To do this i hunted down the class that gets called when you run
wscompile from the command line, and make an array of String objects and pass them into the main() method.


Everything was going great until it complains about not finding classes
on the classpath.  The WsCompile class takes a

parameter for classpath, so i had to pass it in manually.  I did that by
concatenating the relevant artifacts from the

project.getArtifacts() map and adding the result as an argument.


The problem is that I also need to pass in the artifacts that are the
dependencies of the *plugin*, as described in the plugin's pom.xml.


I cannot seem to find any reference to these artifacts anywhere.  Is
there any possible way for me to get these at
runtime? There doesn't seem to be anything in the project object that
points to them. Perhaps another object that I
can bind to a property of the Mojo?  I also cannot find any javadocs so
i've been working alot with trial and error and reflection logging.


Thanks for any help.


_kris h




------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.1/206 - Release Date: 12/16/2005





-----------------------------------------
Attention:
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity. The information
contained in this message and or attachments is intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material.  If you received this in error, please
contact the sender and delete the material from any system and destroy
any copies.


---------------------------------------------------------------------
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]

Reply via email to