m2e lifecycle-mapping not found

Posted by TraderJoeChicago on Stack Overflow See other posts from Stack Overflow or by TraderJoeChicago
Published on 2011-09-13T23:51:58Z Indexed on 2013/11/07 3:55 UTC
Read the original article Hit count: 165

Filed under:
|
|
|
|

I am trying to use the solution described here to solve the annoying "Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.7:add-source (execution: default, phase: generate-sources)" when I place the following plugin on my pom.xml:

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
    <execution>
        <phase>generate-sources</phase>
        <goals><goal>add-source</goal></goals>
        <configuration>
            <sources>
                <source>src/bootstrap/java</source>
            </sources>
        </configuration>
    </execution>
</executions>
</plugin>

But when I run mvn clean install I get this:

Reason: POM 'org.eclipse.m2e:lifecycle-mapping' not found in repository: Unable to download the artifact from any repository

Does anyone have a clue on how to make m2e and maven happy?

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about maven