Plugin configuration error message - caused by certain liefecycle bindings --------------------------------------------------------------------------
Key: MDEP-27 URL: http://jira.codehaus.org/browse/MDEP-27 Project: Maven 2.x Dependency Plugin Type: Bug Versions: 1.0 Environment: Maven 2.0.4, MS-XP Pro V 2002 Reporter: Markus Wilke Priority: Critical If a project`s POM contains a configuration, which binds the dependency:unpack-goal to a certain liefecylce phase, the execution of other plugins or lifecycle phases on the command line causes the following error message: ... [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] One or more required plugin parameters are invalid/missing for > 'dependency:unpack' > > [0] inside the definition for plugin: 'dependency-maven-plugin'specify the > following: > > <configuration> > ... > <artifactItems>VALUE</artifactItems> > </configuration>. ... The direct execution of the configured lifecyclephase on the command line does not produce any errors. Here are 2 examples, which reproduce the error message. Example 1: --------------- Plugin configuration in POM: ... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>dependency-maven-plugin</artifactId> <inherited>false</inherited> <executions> <execution> <phase>initialize</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>aGroupId</groupId> <artifactId>anArtifactId</artifactId> <version>aVersion</version> <type>zip</type> <classifier>md</classifier> <outputDirectory>${project.build.directory}\dependencies</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> ... Command line execution: mvn eclipse:eclipse Example 2: --------------- Plugin configuration in POM: ... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>dependency-maven-plugin</artifactId> <inherited>false</inherited> <executions> <execution> <phase>process-resources</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>aGroupId</groupId> <artifactId>anArtifactId</artifactId> <version>aVersion</version> <type>zip</type> <classifier>md</classifier> <outputDirectory>${project.build.directory}\dependencies</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> ... Command line execution: mvn package In this example, the project also contained Unit Tests which where executed by the surefire-plugin. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira