Exec-maven-plugin: 1.2.1 in Ecipse

When importing a Maven project into Eclipse, I get the following error:

No entries on the exec-maven-plugin market: error 1.2.1

And it looks like this leads to further build problems after import - for example,

Plugin execution does not extend to life cycle configuration: org.codehaus.mojo: exec-maven-plugin: 1.2.1: java (execution: default, phase: source-generation)

Am I missing a plugin or is something wrong with my pom.xml?

Installed m2e:

m2e - Maven integration for Eclipse (includes Incubating components) 1.5.0.20131218-1208 org.eclipse.m2e.feature.feature.group Eclipse.org - m2e

     

Java Development Tools Eclipse 3.8.2.v20130116-090414-8-8nFu3FNOfwKLRuqgXKIy9z0I83 org.eclipse.jdt.feature.group Eclipse.org

     

Eclipse 4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7 org.eclipse.platform.feature.group Eclipse.org

     

Eclipse RCP 4.2.2.v20130129-152330-7IARAABrMQkGSvMgQnUlz-DQz00h org.eclipse.rcp.feature.group Eclipse.org

.

+3
1

, m2e Eclipse exec-maven-plugin, :

   <build>
      <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.codehaus.mojo</groupId>
                                        <artifactId>exec-maven-plugin</artifactId>
                                        <versionRange>[1.2.1,)</versionRange>
                                        <goals>
                                            <goal>java</goal>
                                            <goal>exec</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore/>
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
   </build>
+7

All Articles