Parameters not passed to second execution of the same plugin.
-------------------------------------------------------------

                 Key: MNG-3069
                 URL: http://jira.codehaus.org/browse/MNG-3069
             Project: Maven 2
          Issue Type: Bug
          Components: Plugin API
    Affects Versions: 2.0.7
            Reporter: Scott Morrison


If a plugin is loaded twice consecutively, parameters are not passed the second 
time.

For a (really) minimal case,
svn co http://katlas.math.toronto.edu/svn/arxivwiki/trunk/bug/
and "mvn package".

With mvn -version
Maven version: 2.0.7
Java version: 1.6.0_01
OS name: "windows xp" version: "5.1" arch: "x86"

I see
==================================
[INFO] [configuration-bug:plugin-configuration-bug {execution: plugin-configurat
ion-bug 1}]
String parameter: execution #1
File parameter: C:\scott\projects\svn-checkouts\arxivwiki\trunk\bug\demo\file1.t
xt
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] One or more required plugin parameters are invalid/missing for 'configura
tion-bug:plugin-configuration-bug'

[0] inside the definition for plugin: 'plugin-configuration-bug-plugin'specify t
he following:

<configuration>
  ...
  <sp>VALUE</sp>
</configuration>.
=======================================

Curiously, when running "mvn install" within eclipse, with exactly the same 
project, everything works just fine!

-- 
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

        

Reply via email to