You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Arnaud HERITIER <ah...@gmail.com> on 2009/03/04 16:44:35 UTC
How to resolve dependencies without building a multi-project
Hi guys,
In a multi-project, is it possible to resolve its dependencies without
having to build it ?
I'm trying to find a clean solution for
http://jira.codehaus.org/browse/MECLIPSE-472
Any idea ?
How are you doing in IDE plugins ? I have to use something not available
in 2.0.x like mercury ?
Thanks for your help.
--
Arnaud
Re: How to resolve dependencies without building a multi-project
Posted by Arnaud HERITIER <ah...@gmail.com>.
Hi Igor,
MavenEmbedder and MavenProjectBuilder are coming from maven-embedder 3.0 ?
Arnaud
On Wed, Mar 4, 2009 at 7:38 PM, Igor Fedorenko <ig...@ifedorenko.com> wrote:
> Arnaud,
>
> We are using MavenEmbedder#readProjectWithDependencies in m2e. We also keep
> track of all workspace projects, so inter-module dependencies are resolved
> from workspace where applicable.
>
> In Tycho, we are using MavenProjectBuilder#buildProjectWithDependencies. I
> am not sure if this deals with cross-module dependencies properly.
>
> --
> Regards,
> Igor
>
>
> Arnaud HERITIER wrote:
>
>> Hi guys,
>> In a multi-project, is it possible to resolve its dependencies without
>> having to build it ?
>> I'm trying to find a clean solution for
>> http://jira.codehaus.org/browse/MECLIPSE-472
>> Any idea ?
>> How are you doing in IDE plugins ? I have to use something not available
>> in 2.0.x like mercury ?
>>
>> Thanks for your help.
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
--
Arnaud
Re: How to resolve dependencies without building a multi-project
Posted by Igor Fedorenko <ig...@ifedorenko.com>.
Arnaud,
We are using MavenEmbedder#readProjectWithDependencies in m2e. We also
keep track of all workspace projects, so inter-module dependencies are
resolved from workspace where applicable.
In Tycho, we are using MavenProjectBuilder#buildProjectWithDependencies.
I am not sure if this deals with cross-module dependencies properly.
--
Regards,
Igor
Arnaud HERITIER wrote:
> Hi guys,
> In a multi-project, is it possible to resolve its dependencies without
> having to build it ?
> I'm trying to find a clean solution for
> http://jira.codehaus.org/browse/MECLIPSE-472
> Any idea ?
> How are you doing in IDE plugins ? I have to use something not available
> in 2.0.x like mercury ?
>
> Thanks for your help.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: How to resolve dependencies without building a multi-project
Posted by Arnaud HERITIER <ah...@gmail.com>.
>
>
>> As far as Mercury goes - you can use PlexusMercury component: for the
> resolve call you feed a list of repos, scope and a list of GAVs, it returns
> the list of GAVs for the transitive closure.
>
> Example at
> https://svn.apache.org/repos/asf/maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/plexus/DefaultPlexusMercuryTest.java,
> look at testResolve()
>
> If you don't read the artifacts afterwards - they don't even show up in the
> local repo.
>
I need to download artifacts because eclipse won't do it for
maven-eclipse-plugin users.
The Mercury API seems fine.
I saw few monthes ago a thread about using it in the dependency plugin.
Nobody began to work on it ?
Arnaud
Re: How to resolve dependencies without building a multi-project
Posted by Oleg Gusakov <ol...@gmail.com>.
Arnaud HERITIER wrote:
> Hi guys,
> In a multi-project, is it possible to resolve its dependencies without
> having to build it ?
> I'm trying to find a clean solution for
> http://jira.codehaus.org/browse/MECLIPSE-472
> Any idea ?
> How are you doing in IDE plugins ? I have to use something not available
> in 2.0.x like mercury ?
>
As far as Mercury goes - you can use PlexusMercury component: for the
resolve call you feed a list of repos, scope and a list of GAVs, it
returns the list of GAVs for the transitive closure.
Example at
https://svn.apache.org/repos/asf/maven/mercury/trunk/mercury-it/src/test/java/org/apache/maven/mercury/plexus/DefaultPlexusMercuryTest.java,
look at testResolve()
If you don't read the artifacts afterwards - they don't even show up in
the local repo.
Cheers,
Oleg
> Thanks for your help.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org