Plugin execution not covered by lifecycle configuration (Alfresco, Maven and Eclipse)

444 views
Skip to first unread message

Dan

unread,
Jan 25, 2013, 12:23:07 PM1/25/13
to maven-a...@googlegroups.com
In Eclipse I've created a project from the 4.2.b AMP archetype, but after it's created I see the following error:

Plugin execution not covered by lifecycle configuration: org.alfresco.maven.plugin:alfresco-maven-plugin:1.0:set-version (execution: default-set-version, phase: initialize)

The POM lines that the error points to are this:

    <parent>
        <groupId>org.alfresco.maven</groupId>
        <artifactId>alfresco-sdk-parent</artifactId>
        <version>1.0</version>
    </parent>

I could modify the POM to allow this by telling Maven to make the set-version plugin execution proceed, or alter the workspace's Maven lifecycle mapping file (this is my temporary fix), but that seems like fixing the symptom.

Shouldn't the alfresco-maven-plugin have lifecycle mappings defined within it, as recommended here?


Dan Hankins

Maurizio Pillitu

unread,
Mar 26, 2013, 9:27:17 AM3/26/13
to maven-a...@googlegroups.com
Hi Dan, sorry for the terribly late reply.
I've just stumbled on this issue and managed to fix it by adding the following syntax:

<build>
     <pluginManagement>
   <plugins>
    <plugin>
     <groupId>org.eclipse.m2e</groupId>
     <artifactId>lifecycle-mapping</artifactId>
     <version>1.0.0</version>
     <configuration>
       <lifecycleMappingMetadata>
         <pluginExecutions>
           <pluginExecution>
             <pluginExecutionFilter>
               <!--<groupId>some-group-id</groupId>
               <artifactId>some-artifact-id</artifactId>
               <versionRange>[1.0.0,)</versionRange>-->
               <groupId>org.alfresco.maven.plugin</groupId>
               <artifactId>alfresco-maven-plugin</artifactId>
               <versionRange>[0.0.0,)</versionRange>
               <goals>
                 <goal>set-version</goal>
               </goals>
             </pluginExecutionFilter>
             <action>
               <execute >
                 <runOnIncremental>false</runOnIncremental>
               </execute >
             </action>
           </pluginExecution>
         </pluginExecutions>
       </lifecycleMappingMetadata>
     </configuration>
    </plugin>
   </plugins>
  </pluginManagement>
    </build>

Please have a look at the following url - http://wiki.eclipse.org/M2E_plugin_execution_not_covered

Thanks!
  Maurizio
Reply all
Reply to author
Forward
0 new messages