RE: [m203] Get names of all transitive dependencies in a mojo

2006-08-11 Thread Dave Syer

 Check out the dependency plugin.   It has all the code you need. 

Would someone be able to summarise what the code in dependency plugin is
doing.  It seems very complex (and would certainly be useful to others), but
I don't follow it very well.  It seems to be doing project.getArtifacts()
and then filtering that list.  I would assume that filtering is an exclusion
(so the list should start with more on it than I might be interested in),
but when I do this in a mojo.execute:

  getLog().info(Artifacts: +project.getArtifacts());

I get an empty set (despite the project having multiple dependencies - e.g.
aven-plugin-api).  Is that right?
-- 
View this message in context: 
http://www.nabble.com/-m203--Get-names-of-all-transitive-dependencies-in-a-mojo-tf1436664.html#a5758608
Sent from the Maven - Users forum at Nabble.com.


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



Re: [m203] Get names of all transitive dependencies in a mojo

2006-04-21 Thread Kristian Nordal
On 4/12/06, Michael Meyer [EMAIL PROTECTED] wrote:

 Hi,
 how can I retrive the names of all dependencies including the transitive
 dependencies in a Java Plugin (Mojo)?
 I took a look at the code of the eclipse plugin but the dependency part
 seemed a bit complicated for
 just getting all transitive dependencies. And I'm not familier with
 the term reactor that made understanding the
 code a bit awkward ;-)


Hi,

You can do something like this to get all dependencies:

/**
 * @parameter expression=${project.artifacts}
 * @required
 */
private Set artifacts;

Then get the name from all the Artifact instances.

--
Cheers,
Kristian


Re: [m203] Get names of all transitive dependencies in a mojo

2006-04-20 Thread Jamie Bisotti
On 4/19/06, Michael Meyer [EMAIL PROTECTED] wrote:

 Me neither.
 michael

 Ruel Loehr schrieb:
  I didn't.  Feel free to open it.
 
  Ruel Loehr
  JBoss QA
 
  -
  512-342-7840 ext 2011
  Yahoo: ruelloehr
  Skype: ruelloehr
  AOL: dokoruel
 
  -Original Message-
  From: Jamie Bisotti [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 19, 2006 3:05 PM
  To: Maven Users List
  Subject: Re: [m203] Get names of all transitive dependencies in a mojo
 
  On 4/12/06, Michael Meyer [EMAIL PROTECTED] wrote:
  Thanks,
  I guess I'll have to build my own utility class with some of the code
  of
  the dependency-plugin.
  I agree with you that this functionality should be pushed into the
  core
  code. It would
  be cool if there was a simple method like getTransitiveDependencies()
  somewhere :-)
 
  Cheers michael
 
 
  Ruel Loehr schrieb:
  Check out the dependency plugin.   It has all the code you need.
  This seems to be a common need though (I do it in at least 3
  plugins).
  Maybe it is something that should be pushed into the core code?
 
 
 
  Ruel Loehr
  JBoss QA
 
  -
  512-342-7840 ext 2011
  Yahoo: ruelloehr
  Skype: ruelloehr
  AOL: dokoruel
  -Original Message-
  From: Michael Meyer [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 12, 2006 2:57 AM
  To: Maven Users List
  Subject: [m203] Get names of all transitive dependencies in a mojo
 
  Hi,
  how can I retrive the names of all dependencies including the
  transitive
  dependencies in a Java Plugin (Mojo)?
  I took a look at the code of the eclipse plugin but the dependency
  part
  seemed a bit complicated for
  just getting all transitive dependencies. And I'm not familier
  with
  the term reactor that made understanding the
  code a bit awkward ;-)
 
  michael
 
 
  -
  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]
 
 
  Did anyone file a JIRA issue requesting this?
 
  --
  Jamie Bisotti
 
  -
  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]


I don't currently need this functionality.  I was simply trying to point out
that mentioning something would be useful on a mailing list is almost never
going to result in it being implemented.  If you really would like to see
it, you need to open a JIRA issue.

--
Jamie Bisotti


Re: [m203] Get names of all transitive dependencies in a mojo

2006-04-20 Thread dan tran
isn't it project.getArtifacts()?

-D


On 4/20/06, Jamie Bisotti [EMAIL PROTECTED] wrote:

 On 4/19/06, Michael Meyer [EMAIL PROTECTED] wrote:
 
  Me neither.
  michael
 
  Ruel Loehr schrieb:
   I didn't.  Feel free to open it.
  
   Ruel Loehr
   JBoss QA
  
   -
   512-342-7840 ext 2011
   Yahoo: ruelloehr
   Skype: ruelloehr
   AOL: dokoruel
  
   -Original Message-
   From: Jamie Bisotti [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, April 19, 2006 3:05 PM
   To: Maven Users List
   Subject: Re: [m203] Get names of all transitive dependencies in a mojo
  
   On 4/12/06, Michael Meyer [EMAIL PROTECTED] wrote:
   Thanks,
   I guess I'll have to build my own utility class with some of the code
   of
   the dependency-plugin.
   I agree with you that this functionality should be pushed into the
   core
   code. It would
   be cool if there was a simple method like getTransitiveDependencies()
   somewhere :-)
  
   Cheers michael
  
  
   Ruel Loehr schrieb:
   Check out the dependency plugin.   It has all the code you need.
   This seems to be a common need though (I do it in at least 3
   plugins).
   Maybe it is something that should be pushed into the core code?
  
  
  
   Ruel Loehr
   JBoss QA
  
   -
   512-342-7840 ext 2011
   Yahoo: ruelloehr
   Skype: ruelloehr
   AOL: dokoruel
   -Original Message-
   From: Michael Meyer [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, April 12, 2006 2:57 AM
   To: Maven Users List
   Subject: [m203] Get names of all transitive dependencies in a mojo
  
   Hi,
   how can I retrive the names of all dependencies including the
   transitive
   dependencies in a Java Plugin (Mojo)?
   I took a look at the code of the eclipse plugin but the dependency
   part
   seemed a bit complicated for
   just getting all transitive dependencies. And I'm not familier
   with
   the term reactor that made understanding the
   code a bit awkward ;-)
  
   michael
  
  
   -
   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]
  
  
   Did anyone file a JIRA issue requesting this?
  
   --
   Jamie Bisotti
  
   -
   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]
 
 
 I don't currently need this functionality.  I was simply trying to point
 out
 that mentioning something would be useful on a mailing list is almost
 never
 going to result in it being implemented.  If you really would like to see
 it, you need to open a JIRA issue.

 --
 Jamie Bisotti




Re: [m203] Get names of all transitive dependencies in a mojo

2006-04-19 Thread Jamie Bisotti
On 4/12/06, Michael Meyer [EMAIL PROTECTED] wrote:

 Thanks,
 I guess I'll have to build my own utility class with some of the code of
 the dependency-plugin.
 I agree with you that this functionality should be pushed into the core
 code. It would
 be cool if there was a simple method like getTransitiveDependencies()
 somewhere :-)

 Cheers michael


 Ruel Loehr schrieb:
  Check out the dependency plugin.   It has all the code you need.
  This seems to be a common need though (I do it in at least 3 plugins).
  Maybe it is something that should be pushed into the core code?
 
 
 
  Ruel Loehr
  JBoss QA
 
  -
  512-342-7840 ext 2011
  Yahoo: ruelloehr
  Skype: ruelloehr
  AOL: dokoruel
  -Original Message-
  From: Michael Meyer [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 12, 2006 2:57 AM
  To: Maven Users List
  Subject: [m203] Get names of all transitive dependencies in a mojo
 
  Hi,
  how can I retrive the names of all dependencies including the transitive
 
  dependencies in a Java Plugin (Mojo)?
  I took a look at the code of the eclipse plugin but the dependency part
  seemed a bit complicated for
  just getting all transitive dependencies. And I'm not familier with
  the term reactor that made understanding the
  code a bit awkward ;-)
 
  michael
 
  -
  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]


Did anyone file a JIRA issue requesting this?

--
Jamie Bisotti


Re: [m203] Get names of all transitive dependencies in a mojo

2006-04-19 Thread Michael Meyer

Me neither.
michael

Ruel Loehr schrieb:

I didn't.  Feel free to open it.

Ruel Loehr
JBoss QA
 
-

512-342-7840 ext 2011
Yahoo: ruelloehr
Skype: ruelloehr
AOL: dokoruel

-Original Message-
From: Jamie Bisotti [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 3:05 PM

To: Maven Users List
Subject: Re: [m203] Get names of all transitive dependencies in a mojo

On 4/12/06, Michael Meyer [EMAIL PROTECTED] wrote:

Thanks,
I guess I'll have to build my own utility class with some of the code

of

the dependency-plugin.
I agree with you that this functionality should be pushed into the

core

code. It would
be cool if there was a simple method like getTransitiveDependencies()
somewhere :-)

Cheers michael


Ruel Loehr schrieb:

Check out the dependency plugin.   It has all the code you need.
This seems to be a common need though (I do it in at least 3

plugins).

Maybe it is something that should be pushed into the core code?



Ruel Loehr
JBoss QA

-
512-342-7840 ext 2011
Yahoo: ruelloehr
Skype: ruelloehr
AOL: dokoruel
-Original Message-
From: Michael Meyer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 12, 2006 2:57 AM
To: Maven Users List
Subject: [m203] Get names of all transitive dependencies in a mojo

Hi,
how can I retrive the names of all dependencies including the

transitive

dependencies in a Java Plugin (Mojo)?
I took a look at the code of the eclipse plugin but the dependency

part

seemed a bit complicated for
just getting all transitive dependencies. And I'm not familier

with

the term reactor that made understanding the
code a bit awkward ;-)

michael



-

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]



Did anyone file a JIRA issue requesting this?

--
Jamie Bisotti

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



Re: [m203] Get names of all transitive dependencies in a mojo

2006-04-12 Thread Edwin Punzalan


You can use the project-info-reports' dependencies report to see them.  
I think just doing mvn site will generate the dependencies report 
along with the other reports.



Michael Meyer wrote:

Hi,
how can I retrive the names of all dependencies including the 
transitive dependencies in a Java Plugin (Mojo)?
I took a look at the code of the eclipse plugin but the dependency 
part seemed a bit complicated for
just getting all transitive dependencies. And I'm not familier with 
the term reactor that made understanding the

code a bit awkward ;-)

michael

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



RE: [m203] Get names of all transitive dependencies in a mojo

2006-04-12 Thread Ruel Loehr
Check out the dependency plugin.   It has all the code you need. 
This seems to be a common need though (I do it in at least 3 plugins).
Maybe it is something that should be pushed into the core code?



Ruel Loehr
JBoss QA
 
-
512-342-7840 ext 2011
Yahoo: ruelloehr
Skype: ruelloehr
AOL: dokoruel
-Original Message-
From: Michael Meyer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 12, 2006 2:57 AM
To: Maven Users List
Subject: [m203] Get names of all transitive dependencies in a mojo

Hi,
how can I retrive the names of all dependencies including the transitive

dependencies in a Java Plugin (Mojo)?
I took a look at the code of the eclipse plugin but the dependency part 
seemed a bit complicated for
just getting all transitive dependencies. And I'm not familier with 
the term reactor that made understanding the
code a bit awkward ;-)

michael

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



Re: [m203] Get names of all transitive dependencies in a mojo

2006-04-12 Thread Michael Meyer

Thanks,
I guess I'll have to build my own utility class with some of the code of the 
dependency-plugin.
I agree with you that this functionality should be pushed into the core code. 
It would
be cool if there was a simple method like getTransitiveDependencies() somewhere 
:-)

Cheers michael


Ruel Loehr schrieb:
Check out the dependency plugin.   It has all the code you need. 
This seems to be a common need though (I do it in at least 3 plugins).

Maybe it is something that should be pushed into the core code?



Ruel Loehr
JBoss QA
 
-

512-342-7840 ext 2011
Yahoo: ruelloehr
Skype: ruelloehr
AOL: dokoruel
-Original Message-
From: Michael Meyer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 12, 2006 2:57 AM

To: Maven Users List
Subject: [m203] Get names of all transitive dependencies in a mojo

Hi,
how can I retrive the names of all dependencies including the transitive

dependencies in a Java Plugin (Mojo)?
I took a look at the code of the eclipse plugin but the dependency part 
seemed a bit complicated for
just getting all transitive dependencies. And I'm not familier with 
the term reactor that made understanding the

code a bit awkward ;-)

michael

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