Hi,
Try with adding the following dependency :
<dependency>
<groupId>org.sonatype.plexus</groupId>
<artifactId>plexus-build-api</artifactId>
<version>0.0.6</version>
</dependency>
HTH,
--
Olivier Lamy
http://twitter.com/olamy
http://www.linkedin.com/in/olamy
2010/11/30 a.e <[email protected]>:
>
> Hi,
>
> I'm in the middle of developing an integration server for several month now.
> Of course the system embedds maven which did work rather good with maven
> 2.2.1 and even the beta builds of maven 3. Since the release of 3.0 and even
> 3.0.1 my own MavenEmbedder class (basically something like this
> http://java.net/projects/hudson/sources/svn/show/trunk/hudson/lib/maven-embedder)
> does not work any more. If I try to build an test project with my embedder
> i get an NoClassDefFoundError:
>
> java.lang.NoClassDefFoundError:
> Lorg/sonatype/plexus/build/incremental/BuildContext;
> at java.lang.Class.getDeclaredFields0(Native Method) ~[na:1.6.0_22]
> at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
> ~[na:1.6.0_22]
> at java.lang.Class.getDeclaredFields(Class.java:1743) ~[na:1.6.0_22]
> at
> com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:649)
> ~[sisu-guice-2.9.1-noaop.jar:na]
> [...]
>
> I can provide the complete stacktrace if necessary.
> The only strange thing I can find in my logs is the following that gets
> logged right before the error occurs:
>
> 17:06:21.845 [main] WARN d.b.a.i.b.maven.MavenLoggingAdapter - The POM for
> org.apache.maven.shared:maven-filtering:jar:1.0-beta-4 is invalid,
> transitive dependencies (if any) will not be available, enable debug logging
> for more details
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/java-lang-NoClassDefFoundError-Lorg-sonatype-plexus-build-incremental-BuildContext-tp3286295p3286295.html
> Sent from the Maven Developers 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]