Need to resolve the dependencies for a MavenArtifact

2014-06-14 Thread William Ferguson
I have a Mojo that needs to work with Maven 3.0.* and 3.1+

In the Mojo I have an Artifact and I need to resolve it's dependencies. How
can/should I do it?

If I can resolve the Artifact to a MavenProject then I can use
DependencyGraphBuilder (from maven-dependency-tree) to construct a graph of
the deps. But I'm struggling to make the Artifact to MavenProject
conversion happen.

I thought that If I could get a URL to the Artifact's POM file then I could
use DefaultMavenRuntime (maven-runtime) to resolve the URL into a
MavenProject. But

   1. I can't work out how to get a URL to the artifact's POM file (it
   needs to handle both reactor deps and repo deps)
   2. Even with a URL to the POM file, MavenRuntime#getProject) is
   returning null.

Can someone please point me in the right direction?
Am I even on the right path or is there a much more straight forward way of
getting the dependencies for the Artifact?

William


Re: Breadcrumb inheritance in site.xml

2014-06-14 Thread Hervé BOUTEMY
yes, seems a good idea:



http://maven.apache.org/doxia/doxia-sitetools/doxia-decoration-model/decoration.html

tell me if you need help

Regards,

Hervé

Le samedi 14 juin 2014 14:52:12 Benson Margulies a écrit :
> What do you think of an element in site.xml that turns off all
> inheritance? The case I'm dealing with is a project that wants to
> inherit build stuff from a parent but not site stuff. I'll tackle this
> if you think it's reasonable.
> 
> On Sat, Jun 14, 2014 at 12:58 PM, Hervé BOUTEMY  
wrote:
> > you can't inherit nothing with what has beed coded in MSITE-582: the top
> > breadcrumb will always be there
> > 
> > if you really need to drop absolutely everything, we need a new feature
> > 
> > notice there are a lot of new features in maven-site-plugin 3.4-SNAPSHOT,
> > waiting for a release (with Doxia, Doxia Sitetool and reporting-exec)
> > 
> > so that's a good time for a new feature: it could go in the release train
> > 
> > Regards,
> > 
> > Hervé
> > 
> > Le samedi 14 juin 2014 10:21:36 Benson Margulies a écrit :
> >> I think it could go in the site plugin doc; I'm willing to do some
> >> writing.
> >> 
> >> Even after reading the JIRA, I don't know how to express, "I don't
> >> want to inherit any breadcrumbs at all all."
> >> 
> >> On Fri, Jun 13, 2014 at 2:04 AM, Hervé BOUTEMY 
> > 
> > wrote:
> >> > true that there isn't much doc on this
> >> > 
> >> > any idea on how/where to document this site.xml inheritence is welcome
> >> > 
> >> > Regards,
> >> > 
> >> > Hervé
> >> > 
> >> > Le jeudi 12 juin 2014 09:14:06 Andreas Sewe a écrit :
> >> >> Hi,
> >> >> 
> >> >> > that wasn't possible during my time of activity, not sure if
> >> >> > anything
> >> >> > changed since:
> >> >> > http://mail-archives.apache.org/mod_mbox/maven-users/201104.mbox/%3C
> >> >> > 4DA
> >> >> > 464
> >> >> > c8.2060...@apache.org%3E
> >> >> 
> >> >> yes,  got fixed and I have
> >> >> used the fix successfully in one of my projects.
> >> >> 
> >> >> Best wishes,
> >> >> 
> >> >> Andreas
> >> >> 
> >> >> 
> >> >> -
> >> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> >> For additional commands, e-mail: users-h...@maven.apache.org
> >> > 
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> > For additional commands, e-mail: users-h...@maven.apache.org
> >> 
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> > 
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Breadcrumb inheritance in site.xml

2014-06-14 Thread Benson Margulies
What do you think of an element in site.xml that turns off all
inheritance? The case I'm dealing with is a project that wants to
inherit build stuff from a parent but not site stuff. I'll tackle this
if you think it's reasonable.

On Sat, Jun 14, 2014 at 12:58 PM, Hervé BOUTEMY  wrote:
> you can't inherit nothing with what has beed coded in MSITE-582: the top
> breadcrumb will always be there
>
> if you really need to drop absolutely everything, we need a new feature
>
> notice there are a lot of new features in maven-site-plugin 3.4-SNAPSHOT,
> waiting for a release (with Doxia, Doxia Sitetool and reporting-exec)
>
> so that's a good time for a new feature: it could go in the release train
>
> Regards,
>
> Hervé
>
> Le samedi 14 juin 2014 10:21:36 Benson Margulies a écrit :
>> I think it could go in the site plugin doc; I'm willing to do some writing.
>>
>> Even after reading the JIRA, I don't know how to express, "I don't
>> want to inherit any breadcrumbs at all all."
>>
>> On Fri, Jun 13, 2014 at 2:04 AM, Hervé BOUTEMY 
> wrote:
>> > true that there isn't much doc on this
>> >
>> > any idea on how/where to document this site.xml inheritence is welcome
>> >
>> > Regards,
>> >
>> > Hervé
>> >
>> > Le jeudi 12 juin 2014 09:14:06 Andreas Sewe a écrit :
>> >> Hi,
>> >>
>> >> > that wasn't possible during my time of activity, not sure if anything
>> >> > changed since:
>> >> > http://mail-archives.apache.org/mod_mbox/maven-users/201104.mbox/%3C4DA
>> >> > 464
>> >> > c8.2060...@apache.org%3E
>> >>
>> >> yes,  got fixed and I have
>> >> used the fix successfully in one of my projects.
>> >>
>> >> Best wishes,
>> >>
>> >> Andreas
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> >> For additional commands, e-mail: users-h...@maven.apache.org
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> > For additional commands, e-mail: users-h...@maven.apache.org
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Breadcrumb inheritance in site.xml

2014-06-14 Thread Hervé BOUTEMY
you can't inherit nothing with what has beed coded in MSITE-582: the top 
breadcrumb will always be there

if you really need to drop absolutely everything, we need a new feature

notice there are a lot of new features in maven-site-plugin 3.4-SNAPSHOT, 
waiting for a release (with Doxia, Doxia Sitetool and reporting-exec)

so that's a good time for a new feature: it could go in the release train

Regards,

Hervé

Le samedi 14 juin 2014 10:21:36 Benson Margulies a écrit :
> I think it could go in the site plugin doc; I'm willing to do some writing.
> 
> Even after reading the JIRA, I don't know how to express, "I don't
> want to inherit any breadcrumbs at all all."
> 
> On Fri, Jun 13, 2014 at 2:04 AM, Hervé BOUTEMY  
wrote:
> > true that there isn't much doc on this
> > 
> > any idea on how/where to document this site.xml inheritence is welcome
> > 
> > Regards,
> > 
> > Hervé
> > 
> > Le jeudi 12 juin 2014 09:14:06 Andreas Sewe a écrit :
> >> Hi,
> >> 
> >> > that wasn't possible during my time of activity, not sure if anything
> >> > changed since:
> >> > http://mail-archives.apache.org/mod_mbox/maven-users/201104.mbox/%3C4DA
> >> > 464
> >> > c8.2060...@apache.org%3E
> >> 
> >> yes,  got fixed and I have
> >> used the fix successfully in one of my projects.
> >> 
> >> Best wishes,
> >> 
> >> Andreas
> >> 
> >> 
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> > 
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Breadcrumb inheritance in site.xml

2014-06-14 Thread Benson Margulies
I think it could go in the site plugin doc; I'm willing to do some writing.

Even after reading the JIRA, I don't know how to express, "I don't
want to inherit any breadcrumbs at all all."

On Fri, Jun 13, 2014 at 2:04 AM, Hervé BOUTEMY  wrote:
> true that there isn't much doc on this
>
> any idea on how/where to document this site.xml inheritence is welcome
>
> Regards,
>
> Hervé
>
> Le jeudi 12 juin 2014 09:14:06 Andreas Sewe a écrit :
>> Hi,
>>
>> > that wasn't possible during my time of activity, not sure if anything
>> > changed since:
>> > http://mail-archives.apache.org/mod_mbox/maven-users/201104.mbox/%3C4DA464
>> > c8.2060...@apache.org%3E
>> yes,  got fixed and I have
>> used the fix successfully in one of my projects.
>>
>> Best wishes,
>>
>> Andreas
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org