It's not really a build issue because it works without a problem with
Maven.  M2eclipse problem probably?  write-version has to be executed at
least at code generation phase because it generates Version.java.

## 

Sent from a mobile device.
On Nov 30, 2011 10:55 AM, "Vibul Imtarnasan" <
reply@reply.github.com>
wrote:

> Just installed Eclipse Indigo Service Release 1
> 
> It comes with M2E - Maven Integration for Eclipse 1.1
> 
> When I load up the Netty project, I get the following error:
> 
> ```
> Plugin execution not covered by lifecycle configuration:
> org.apache.maven.plugins:maven-antrun-plugin:1.7:run (execution:
> write-version, phase: validate)       pom.xml /netty  line 320        Maven
> Project Build Lifecycle Mapping Problem
> ```
> 
> ```
>      <plugin>
>        <artifactId>maven-antrun-plugin</artifactId>
>        <version>1.7</version>
>        <executions>
>          <execution>
>            <id>write-version</id>
>            <phase>validate</phase>
>            <goals>
>              <goal>run</goal>
>            </goals>
>         ...
>        </execution>
>      </plugin>
> ```
> 
> Seems like `maven-antrun-plugin` does not like the the `validate` phase.
> 
> The error goes away if I set the phase to `package` - but I am not sure if
> this is what is required.
> 
> ---
> 
> Reply to this email directly or view it on GitHub:
> https://github.com/netty/netty/issues/87
 Yes, you are correct.  This is an M2eclipse problem.

I added the following to `pom.xml` just above the `<plugins>` element to make the error go away.

``` xml
    <pluginManagement>
      <plugins>
        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build 
          itself. -->
        <plugin>
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
          <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <versionRange>[1.7,)</versionRange>
                    <goals>
                      <goal>run</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
```

Should I send a pull request for this?  Will it blow anything else up?
 I think it can't hurt.. so yes please do :)
 - Plugin execution not covered by lifecycle configuration: org.jahia.server:maven-jahia-plugin:2.25:native2ascii (execution: native2ascii, phase: generate-
   resources)
  - maven-enforcer-plugin (goal "enforce") is ignored by m2e.  

above error give in pom.xml  when create new web maven jahia project  
plz help me
 Possibly the tips at http://wiki.eclipse.org/M2E_plugin_execution_not_covered help. In my case, I used the tip "ignore plugin goal".
 ??????
 Description Resource    Path    Location    Type
Mapping file orm.xml does not have supported content for this JPA platform. orm.xml /spring-social-tutorial/src/main/java/META-INF   JPA Problem
 Could someone please guide on this issue http://stackoverflow.com/questions/35523664/java-util-concurrent-executionexception-org-apache-catalina-lifecycleexception/35923065#35923065 ?

Build Issue with maven-antrun-plugin: "Plugin execution not covered by lifecycle configuration"
Just installed Eclipse Indigo Service Release 1

It comes with M2E - Maven Integration for Eclipse 1.1

When I load up the Netty project, I get the following error:

```
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.7:run (execution: write-version, phase: validate)   pom.xml /netty  line 320    Maven Project Build Lifecycle Mapping Problem
```

```
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.7</version>
        <executions>
          <execution>
            <id>write-version</id>
            <phase>validate</phase>
            <goals>
              <goal>run</goal>
            </goals>
         ...
        </execution>
      </plugin>
```

Seems like `maven-antrun-plugin` does not like the the `validate` phase.  

The error goes away if I set the phase to `package` - but I am not sure if this is what is required.

pom.xml
pom.xml
diff --git a/pom.xml b/pom.xml
index 44cc22f2176..c01a7926df6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -207,6 +207,37 @@
       </resource>
     </resources>
 
+    <pluginManagement>
+      <plugins>
+        <!--This plugin's configuration is used to store Eclipse m2e settings only. 
+            It has no influence on the Maven build itself. -->
+        <plugin>
+          <groupId>org.eclipse.m2e</groupId>
+          <artifactId>lifecycle-mapping</artifactId>
+          <version>1.0.0</version>
+          <configuration>
+            <lifecycleMappingMetadata>
+              <pluginExecutions>
+                <pluginExecution>
+                  <pluginExecutionFilter>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-antrun-plugin</artifactId>
+                    <versionRange>[1.7,)</versionRange>
+                    <goals>
+                      <goal>run</goal>
+                    </goals>
+                  </pluginExecutionFilter>
+                  <action>
+                    <ignore />
+                  </action>
+                </pluginExecution>
+              </pluginExecutions>
+            </lifecycleMappingMetadata>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+
     <plugins>
       <plugin>
         <!-- See org.jboss:jboss-parent -->
