You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brian Fox (JIRA)" <ji...@codehaus.org> on 2007/01/22 03:52:17 UTC

[jira] Closed: (MDEP-27) Plugin configuration error message - caused by certain liefecycle bindings

     [ http://jira.codehaus.org/browse/MDEP-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Fox closed MDEP-27.
-------------------------

      Assignee: Brian Fox
    Resolution: Cannot Reproduce

I'm not able to reproduce this with the 2.0-alpha-1 and mvn 2.0.4. I created an IT test pom for this: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-dependency-plugin/src/it/mdep-27/pom.xml

If you are still able to reproduce it, please reopen and attach a patch for the above pom along with reproduction instructions.

> 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
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Maven 2.0.4,  MS-XP Pro V 2002
>            Reporter: Markus Wilke
>         Assigned To: Brian Fox
>            Priority: Critical
>             Fix For: 2.0-alpha-2
>
>
> 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