Mojo and it's own dependencies

2006-10-19 Thread Hermod Opstvedt
Hi

Is there a Maven helper class that can be called from a Mojo that will give
the Mojo access to it's own dependencies?

Hermod


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



VS: Mojo and it's own dependencies

2006-10-19 Thread Hermod Opstvedt
Hi

That will give you the dependencies of the project the mojo is running
against, not the dependencies of the mojo itself.

Med vennlig hilsen
Hermod Opstvedt
Webmaster
Seiling.org/Norlys.org


-Opprinnelig melding-
Fra: Dan Tran [mailto:[EMAIL PROTECTED] 
Sendt: 19. oktober 2006 19:55
Til: Maven Developers List; [EMAIL PROTECTED]
Emne: Re: Mojo and it's own dependencies

project.getArtifacts()
 
There are plenty of examples source at
http://svn.codehaus.org/mojo/trunk/mojo
 
-D


 
On 10/19/06, Hermod Opstvedt [EMAIL PROTECTED] wrote: 

Hi

Is there a Maven helper class that can be called from a Mojo that
will give
the Mojo access to it's own dependencies? 

Hermod



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



SV: Mojo and it's own dependencies

2006-10-19 Thread Hermod Opstvedt
Hi

Yeah, now we're talking. I need to setup a classpath for another java class
that is to be run by an ant based mojo. So setting up the first mojo with
the same dependencies as it, I will be able to supply the Ant script that as
a classpath variable (Sneaky but does the trick)

Hermod

-Opprinnelig melding-
Fra: Jason van Zyl [mailto:[EMAIL PROTECTED] 
Sendt: 19. oktober 2006 21:30
Til: Maven Developers List
Emne: Re: Mojo and it's own dependencies


On 19 Oct 06, at 1:50 PM 19 Oct 06, Hermod Opstvedt wrote:

 Hi

 Is there a Maven helper class that can be called from a Mojo that  
 will give
 the Mojo access to it's own dependencies?


You can use the expression ${plugin.artifacts} i.e.

/**
  * @parameter expression=${plugin.artifacts}
  */
private List pluginArtifacts;

Is that what you're looking for?

Jason.

 Hermod


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



SV: SV: Mojo and it's own dependencies

2006-10-19 Thread Hermod Opstvedt
Hi

I'll give it a shot

Hermod


-Opprinnelig melding-
Fra: Jason van Zyl [mailto:[EMAIL PROTECTED] 
Sendt: 19. oktober 2006 23:36
Til: Maven Developers List
Emne: Re: SV: Mojo and it's own dependencies


On 19 Oct 06, at 5:19 PM 19 Oct 06, Hermod Opstvedt wrote:

 Hi

 Yeah, now we're talking. I need to setup a classpath for another  
 java class
 that is to be run by an ant based mojo. So setting up the first  
 mojo with
 the same dependencies as it, I will be able to supply the Ant  
 script that as
 a classpath variable (Sneaky but does the trick)


I need to document it, and you can help me with it, but I have that  
working with the new ant-based plugin stuff that I've committed.

What I got working was an axis plugin entirely written in Ant. So a  
plugin script used in an ant-based plugin now has access to the  
compile, test, runtime and plugin classpath.

I reworked all the ant stuff and combined John and Kenney's work and  
put it in a common project called maven-ant.

I'll dig you up a sample if you document it :-)

It fully works and has been run with a sizable ant script.

Jason.

 Hermod

 -Opprinnelig melding-
 Fra: Jason van Zyl [mailto:[EMAIL PROTECTED]
 Sendt: 19. oktober 2006 21:30
 Til: Maven Developers List
 Emne: Re: Mojo and it's own dependencies


 On 19 Oct 06, at 1:50 PM 19 Oct 06, Hermod Opstvedt wrote:

 Hi

 Is there a Maven helper class that can be called from a Mojo that
 will give
 the Mojo access to it's own dependencies?


 You can use the expression ${plugin.artifacts} i.e.

 /**
   * @parameter expression=${plugin.artifacts}
   */
 private List pluginArtifacts;

 Is that what you're looking for?

 Jason.

 Hermod


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



[jira] Created: (MNGECLIPSE-82) Maven2 Eclipse plugin does not use setings.xml

2006-02-22 Thread Hermod Opstvedt (JIRA)
Maven2 Eclipse plugin does not use setings.xml
--

 Key: MNGECLIPSE-82
 URL: http://jira.codehaus.org/browse/MNGECLIPSE-82
 Project: Maven 2.x Extension for Eclipse
Type: Bug

  Components: Maven Launcher  
Versions: 0.0.5
 Environment: WinXP SP2, Sun JDK 1.5.0_06, Eclipse 3.1.1
Reporter: Hermod Opstvedt
 Assigned to: Eugene Kuleshov 


When I try to run package on my pom (as a Maven2 When I try to run package on 
my pom it is not able to download the dependencies. I have configured a 
maven-proxy in my settings.xml file. If I run Maven from outside eclipse, it 
works OK.

Hermod

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]