Plugin execution not covered by lifecycle configuration

225 views
Skip to first unread message

Randy Leonard

unread,
Sep 7, 2015, 4:02:56 PM9/7/15
to bndtools-users
I am just getting started with bnd, and have created a very simple first project using online examples for which the majority of the pom.xml file is given below.

Eclipse generates an error message with the following output:
Plugin execution not covered by lifecycle configuration: biz.aQute.bnd:bnd-maven-plugin:2.4.1:bnd-process (execution: default, phase: process-classes)

Two other comments:
  • There are no other files in the project, just the pom.xml file given below.
  • I can run mvn clean install from the command line and the project successfully builds.

My question is why Eclipse generates the above error message on the pom.xml file given below, and what can be done to make Eclipse happy.

Thanks,
Randy

   <dependencies>

      <dependency>

         <groupId>biz.aQute.bnd</groupId>

         <artifactId>biz.aQute.bnd.annotation</artifactId>

         <version>2.4.0</version>

      </dependency>

   </dependencies>


   <build>

   <plugins>

      <plugin>

         <groupId>org.apache.maven.plugins</groupId>

         <artifactId>maven-jar-plugin</artifactId>

         <configuration>

            <useDefaultManifestFile>true</useDefaultManifestFile>

         </configuration>

      </plugin>


      <plugin>

         <groupId>biz.aQute.bnd</groupId>

         <artifactId>bnd-maven-plugin</artifactId>

         <version>2.4.1</version>

         <executions>

            <execution>

               <goals>

                  <goal>bnd-process</goal>

               </goals>

            </execution>

         </executions>

      </plugin>


      <plugin>

         <groupId>org.apache.maven.plugins</groupId>

         <artifactId>maven-jar-plugin</artifactId>

         <configuration>

            <archive>

               <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>

            </archive>

         </configuration>

      </plugin>


   </plugins>

</build> 


BJ Hargrave

unread,
Sep 8, 2015, 9:39:14 AM9/8/15
to bndtool...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 

BJ



Greg Amerson

unread,
Sep 8, 2015, 12:11:19 PM9/8/15
to bndtool...@googlegroups.com
BJ is correct for 3.0

For 2.4.x you have 2 options:
1. set a global eclipse preference to execute bnd-process
2. add it to your pom.xml file itself.  

The maven plugin for Eclipse should provide a "quick fix" for performing either one of these actions, i.e. select the problem marker for the pom.xml, right -click > quick fix
Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com
Reply all
Reply to author
Forward
0 new messages