You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Michael Delaney <md...@upromise.com> on 2010/06/08 16:05:50 UTC
Maven Embedder 2.0.4 examples
All,
I'm trying to get Maven Embedder 2.0.4 working but I can't seem to get
around the error:
org.apache.maven.embedder.MavenEmbedderException: Cannot lookup required
component.
at
org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:686)
at
com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:52)
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Component descriptor cannot be found in the component repository:
org.apache.maven.project.MavenProjectBuilder.
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
at
org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:625)
... 4 more
Exception in thread "main" java.lang.NullPointerException
at
com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:77)
at
com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:35)
Anyone have any ideas how I can get this working?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Maven Embedder 2.0.4 examples
Posted by Michael Delaney <md...@upromise.com>.
Ah okay. Thanks. I'll take a look.
On 6/9/2010 8:41 PM, Jason van Zyl wrote:
> The embedder was phased out of the 2.x line years ago and is not supported. The only known client is Hudson. You might want to look in the Hudson source for examples.
>
> On Jun 9, 2010, at 5:39 PM, Michael Delaney wrote:
>
>
>> Anyone?
>>
>> On 6/8/2010 10:05 AM, Michael Delaney wrote:
>>
>>> All,
>>>
>>> I'm trying to get Maven Embedder 2.0.4 working but I can't seem to get
>>> around the error:
>>>
>>> org.apache.maven.embedder.MavenEmbedderException: Cannot lookup required
>>> component.
>>> at
>>> org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:686)
>>> at
>>> com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:52)
>>> Caused by:
>>> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
>>> Component descriptor cannot be found in the component repository:
>>> org.apache.maven.project.MavenProjectBuilder.
>>> at
>>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
>>> at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
>>> at
>>> org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:625)
>>> ... 4 more
>>> Exception in thread "main" java.lang.NullPointerException
>>> at
>>> com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:77)
>>> at
>>> com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:35)
>>>
>>>
>>> Anyone have any ideas how I can get this working?
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: dev-help@maven.apache.org
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder, Apache Maven
> http://twitter.com/jvanzyl
> ---------------------------------------------------------
>
> What matters is not ideas, but the people who have them. Good people can fix bad ideas, but good ideas can't save bad people.
>
> -- Paul Graham
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: Maven Embedder 2.0.4 examples
Posted by "Nord, James" <JN...@nds.com>.
Try looking at the Maven ANT tasks - that has an ANT task for doing just that IIRC.
/James
-----Original Message-----
From: Laird Nelson [mailto:ljnelson@gmail.com]
Sent: 10 June 2010 12:56
To: Maven Developers List
Subject: Re: Maven Embedder 2.0.4 examples
On Thu, Jun 10, 2010 at 1:55 AM, Milos Kleint <mk...@gmail.com> wrote:
> actually netbeans is also using a summer 2008 2.1-SNAPSHOT (heavily patched)
Slight tangent but still hopefully on topic: if the embedder is not a
good way to reuse, say, the dependency resolution features of Maven,
what is?
I have a need for a relatively simple dependency resolution engine
(given coordinates, pull down an artifact plus transitives), and
obviously would like to reuse part of the guts of Maven for this
purpose. I'm not sure where in the sea of APIs to look for this.
Thanks,
Laird
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Maven Embedder 2.0.4 examples
Posted by Laird Nelson <lj...@gmail.com>.
On Thu, Jun 10, 2010 at 1:55 AM, Milos Kleint <mk...@gmail.com> wrote:
> actually netbeans is also using a summer 2008 2.1-SNAPSHOT (heavily patched)
Slight tangent but still hopefully on topic: if the embedder is not a
good way to reuse, say, the dependency resolution features of Maven,
what is?
I have a need for a relatively simple dependency resolution engine
(given coordinates, pull down an artifact plus transitives), and
obviously would like to reuse part of the guts of Maven for this
purpose. I'm not sure where in the sea of APIs to look for this.
Thanks,
Laird
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Maven Embedder 2.0.4 examples
Posted by Milos Kleint <mk...@gmail.com>.
actually netbeans is also using a summer 2008 2.1-SNAPSHOT (heavily patched)
Milos
On Thu, Jun 10, 2010 at 2:41 AM, Jason van Zyl <ja...@sonatype.com> wrote:
> The embedder was phased out of the 2.x line years ago and is not supported.
> The only known client is Hudson. You might want to look in the Hudson source
> for examples.
>
> On Jun 9, 2010, at 5:39 PM, Michael Delaney wrote:
>
> > Anyone?
> >
> > On 6/8/2010 10:05 AM, Michael Delaney wrote:
> >> All,
> >>
> >> I'm trying to get Maven Embedder 2.0.4 working but I can't seem to get
> >> around the error:
> >>
> >> org.apache.maven.embedder.MavenEmbedderException: Cannot lookup required
> >> component.
> >> at
> >> org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:686)
> >> at
> >>
> com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:52)
> >> Caused by:
> >>
> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
> >> Component descriptor cannot be found in the component repository:
> >> org.apache.maven.project.MavenProjectBuilder.
> >> at
> >>
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
> >> at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
> >> at
> >> org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:625)
> >> ... 4 more
> >> Exception in thread "main" java.lang.NullPointerException
> >> at
> >>
> com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:77)
> >> at
> >>
> com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:35)
> >>
> >>
> >> Anyone have any ideas how I can get this working?
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: dev-help@maven.apache.org
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
>
> Thanks,
>
> Jason
>
> ----------------------------------------------------------
> Jason van Zyl
> Founder, Apache Maven
> http://twitter.com/jvanzyl
> ---------------------------------------------------------
>
> What matters is not ideas, but the people who have them. Good people can
> fix bad ideas, but good ideas can't save bad people.
>
> -- Paul Graham
>
>
>
>
Re: Maven Embedder 2.0.4 examples
Posted by Jason van Zyl <ja...@sonatype.com>.
The embedder was phased out of the 2.x line years ago and is not supported. The only known client is Hudson. You might want to look in the Hudson source for examples.
On Jun 9, 2010, at 5:39 PM, Michael Delaney wrote:
> Anyone?
>
> On 6/8/2010 10:05 AM, Michael Delaney wrote:
>> All,
>>
>> I'm trying to get Maven Embedder 2.0.4 working but I can't seem to get
>> around the error:
>>
>> org.apache.maven.embedder.MavenEmbedderException: Cannot lookup required
>> component.
>> at
>> org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:686)
>> at
>> com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:52)
>> Caused by:
>> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
>> Component descriptor cannot be found in the component repository:
>> org.apache.maven.project.MavenProjectBuilder.
>> at
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
>> at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
>> at
>> org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:625)
>> ... 4 more
>> Exception in thread "main" java.lang.NullPointerException
>> at
>> com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:77)
>> at
>> com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:35)
>>
>>
>> Anyone have any ideas how I can get this working?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------
What matters is not ideas, but the people who have them. Good people can fix bad ideas, but good ideas can't save bad people.
-- Paul Graham
Re: Maven Embedder 2.0.4 examples
Posted by Michael Delaney <md...@upromise.com>.
Anyone?
On 6/8/2010 10:05 AM, Michael Delaney wrote:
> All,
>
> I'm trying to get Maven Embedder 2.0.4 working but I can't seem to get
> around the error:
>
> org.apache.maven.embedder.MavenEmbedderException: Cannot lookup required
> component.
> at
> org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:686)
> at
> com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:52)
> Caused by:
> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
> Component descriptor cannot be found in the component repository:
> org.apache.maven.project.MavenProjectBuilder.
> at
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
> at org.codehaus.plexus.embed.Embedder.lookup(Embedder.java:78)
> at
> org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java:625)
> ... 4 more
> Exception in thread "main" java.lang.NullPointerException
> at
> com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:77)
> at
> com.upromise.utils.maven.ArtifactResolver.resolve(ArtifactResolver.java:35)
>
>
> Anyone have any ideas how I can get this working?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org