Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Cannot Reproduce
-
1.0
-
None
-
None
-
None
-
Maven 2.0.4, MS-XP Pro V 2002
Description
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.