Shivagoy
Shivagoy

Reputation: 383

Error Executing Maven

I am new to this error , it Suddenly came and broke my project .Can any body help me in resolving this error:

  1. [ERROR] Error executing Maven. [ERROR] > com.google.inject.ProvisionException: Guice provision errors: > > 1) Error injecting: org.apache.maven.DefaultMaven at >
    ClassRealm[plexus.core, parent: null] at ClassRealm[plexus.core, >
    parent: null] while locating org.apache.maven.Maven > > 1 error >
    role: org.apache.maven.Maven roleHint: [ERROR] Caused by: Guice
    provision errors: > > 1) Error injecting:
    org.apache.maven.DefaultMaven at > ClassRealm[plexus.core, parent:
    null] at ClassRealm[plexus.core, > parent: null] while locating
    org.apache.maven.Maven > > 1 error [ERROR] Caused by: Guice provision errors: > > 1) Error injecting:
    org.apache.maven.project.DefaultProjectBuilder > at
    ClassRealm[plexus.core, parent: null] at ClassRealm[plexus.core, >
    parent: null] while locating org.apache.maven.project.ProjectBuilder while locating org.apache.maven.DefaultMaven > > 1 error [ERROR] Caused by: Lorg/sonatype/aether/impl/ArtifactResolver; > [ERROR] Caused by: org.sonatype.aether.impl.ArtifactResolver

Upvotes: 4

Views: 23307

Answers (1)

FrVaBe
FrVaBe

Reputation: 49341

This error most likely happens because you use a plugin that is incompatible with maven 3.1. Since version 3.1 maven depends on eclipse Aether instead of sonatype Aether - have a look at the Release Notes.

To avoid the bug you should use maven 3.0.5 or update your plugin if possible (see a list of fixed plugins here).

Upvotes: 5

Related Questions