Good day to you, Dmitry,

You may want to take a look at your dependency tree ( do mvn
project-info-reports:dependencies then go to target\site\dependencies.html )
and search for what version of plexus-utils your project is using. 

I checked the dependency tree of org.apache.maven:maven-embedder:2.0.4 ( see
[1] ), and it's using org.codehaus.plexus:plexus-utils:1.1.

If according to your dependency tree, you are not using that plexus version,
you may want to declare org.codehaus.plexus:plexus-utils:1.1 as a direct
dependency of your maven project ( ensuring that maven will get that version
of plexus-utils instead of relying on the version it will from its
transitive dependencies ).

Cheers,
Franz

[1] http://maven.apache.org/ref/2.0.4/maven-embedder/dependencies.html


Dmitry Beransky-3 wrote:
> 
> Hi Franz,
> 
> I'm looking at the 2.0.4 sources (that's what I'm using) and I see
> MavenEmbedder.readModel() declaring "throws XmlPullParserException"
> 
> D.
> 
> On 2/12/07, franz see <[EMAIL PROTECTED]> wrote:
>>
>> Good day,
>>
>> Odd. I just tried it and it works fine with me. Also, I have just checked
>> the source code of MavenEmbedder() and it does not use
>> XmlPullParserException, so I am not sure why it was looking for that.
>>
>> Are you sure your debugging the right line?
>>
>> Cheers,
>> Franz
>>
>>
>> Dmitry Beransky-3 wrote:
>> >
>> > Hi Franz,
>> >
>> > If I only add the embedder, i get a long list of NoClassDefFoundError,
>> > which goes away only when I counter balance by an equally long list of
>> > included jars.  The very first error I get is this:
>> >
>> > Exception in thread "main" java.lang.NoClassDefFoundError:
>> > org/codehaus/plexus/util/xml/pull/XmlPullParserException
>> >       at org.dembel.maven.MavenUtils.createEmbedder(MavenUtils.java:53)
>> >       at Main.main(Main.java:14)
>> >       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >       at
>> >
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> >       at
>> >
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> >       at java.lang.reflect.Method.invoke(Method.java:585)
>> >       at
>> com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
>> >
>> > Where MavenUtils.createEmbedder() looks like this:
>> >
>> >    public static MavenEmbedder createEmbedder() {
>> >       MavenEmbedder embedder = new MavenEmbedder();
>> >       return embedder;
>> >    }
>> >
>> >
>> > thanks
>> > Dmitry
>> >
>> >
>> > On 2/11/07, franz see <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Good day to you, Dmitry,
>> >>
>> >> AFAIK, It should be enough to add the maven-embedder artifact to your
>> >> pom's
>> >> dependencies for it to run. Why, what error are you getting?
>> >>
>> >> Cheers,
>> >> Franz
>> >>
>> >>
>> >> Dmitry Beransky-3 wrote:
>> >> >
>> >> > Hi,
>> >> >
>> >> > I'm not sure if this message is more appropriate here or on the dev
>> >> > list.  Please advise for future messages.
>> >> >
>> >> > What other maven run-time libraries do I need in order to use the
>> >> > embedder?
>> >> >
>> >> >
>> >> > Thanks
>> >> > Dmitry
>> >> >
>> >> >
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/maven-embedder-tf3209782s177.html#a8917783
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/maven-embedder-tf3209782s177.html#a8938749
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/maven-embedder-tf3209782s177.html#a8957702
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to