You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by muss_ <ma...@yahoo.de> on 2010/08/09 13:03:14 UTC

read Plugins in local repository

hi,
is there a way to read plugins from local repository.
I write a mojo and read an another pom.xml
I have to find out if the dependencies from pom.xml are already in local
repository

Thanks

Muss
-- 
View this message in context: http://maven.40175.n5.nabble.com/read-Plugins-in-local-repository-tp2268689p2268689.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: read Plugins in local repository

Posted by Stephen Connolly <st...@gmail.com>.
Or maybe in UpdateChildModulesMojo

On 10 August 2010 13:47, Stephen Connolly
<st...@gmail.com>wrote:

> Look in the source code for versions-maven-plugin @ mojo and you will find
> an example, probably in one of the Abstract___Mojo classes
>
>
> On 10 August 2010 13:25, muss_ <ma...@yahoo.de> wrote:
>
>>
>> i dont know how to use versions-maven-plugin @ mojo
>> I need to create a new MavenProject with the remote pom.xml that i read in
>> mojo
>> --
>> View this message in context:
>> http://maven.40175.n5.nabble.com/read-Plugins-in-local-repository-tp2268689p2425060.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

Re: read Plugins in local repository

Posted by Stephen Connolly <st...@gmail.com>.
Look in the source code for versions-maven-plugin @ mojo and you will find
an example, probably in one of the Abstract___Mojo classes

On 10 August 2010 13:25, muss_ <ma...@yahoo.de> wrote:

>
> i dont know how to use versions-maven-plugin @ mojo
> I need to create a new MavenProject with the remote pom.xml that i read in
> mojo
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/read-Plugins-in-local-repository-tp2268689p2425060.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: read Plugins in local repository

Posted by muss_ <ma...@yahoo.de>.
i dont know how to use versions-maven-plugin @ mojo 
I need to create a new MavenProject with the remote pom.xml that i read in
mojo
-- 
View this message in context: http://maven.40175.n5.nabble.com/read-Plugins-in-local-repository-tp2268689p2425060.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: read Plugins in local repository

Posted by Stephen Connolly <st...@gmail.com>.
have a look in versions-maven-plugin @ mojo

On 10 August 2010 10:05, muss_ <ma...@yahoo.de> wrote:

>
> I tried to write it i need to build a new MavenProject and
> to get a MavenProject out of a POM
> file, I need to use the MavenProjectBuilder
>
> /**
>  * @component
> expression="${component.org.apache.maven.project.MavenProjectBuilder}"
>  * @required
>  * @readonly
>  */
>
> private MavenProjectBuilder builder = null;
>
> that doesnt work and to create a MavenProjectBuilder i need a
> ProfileManager, and I can't
> figure out how to get my hands on one.
> How do I get my hands on instances of these classes?
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/read-Plugins-in-local-repository-tp2268689p2405029.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: read Plugins in local repository

Posted by muss_ <ma...@yahoo.de>.
I tried to write it i need to build a new MavenProject and
to get a MavenProject out of a POM
file, I need to use the MavenProjectBuilder

/**
 * @component
expression="${component.org.apache.maven.project.MavenProjectBuilder}"
 * @required
 * @readonly
 */

private MavenProjectBuilder builder = null;

that doesnt work and to create a MavenProjectBuilder i need a
ProfileManager, and I can't
figure out how to get my hands on one.
How do I get my hands on instances of these classes?

-- 
View this message in context: http://maven.40175.n5.nabble.com/read-Plugins-in-local-repository-tp2268689p2405029.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: read Plugins in local repository

Posted by Stephen Connolly <st...@gmail.com>.
Easy to write yourself in java

On 10 August 2010 09:06, muss_ <ma...@yahoo.de> wrote:

>
> no,
> i need it in java like readRepository() and it returns a list of artifackts
> or plugins
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/read-Plugins-in-local-repository-tp2268689p2398019.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: read Plugins in local repository

Posted by muss_ <ma...@yahoo.de>.
no,
i need it in java like readRepository() and it returns a list of artifackts
or plugins
-- 
View this message in context: http://maven.40175.n5.nabble.com/read-Plugins-in-local-repository-tp2268689p2398019.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: read Plugins in local repository

Posted by Stephen Connolly <st...@gmail.com>.
find ~/.m2/repository/ -name \*.pom -exec fgrep -l
"<packaging>maven-plugin</packaging>" {} \;

On 9 August 2010 12:03, muss_ <ma...@yahoo.de> wrote:

>
> hi,
> is there a way to read plugins from local repository.
> I write a mojo and read an another pom.xml
> I have to find out if the dependencies from pom.xml are already in local
> repository
>
> Thanks
>
> Muss
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/read-Plugins-in-local-repository-tp2268689p2268689.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>