Maven
  1. Maven
  2. MNG-1682

Plugins do not honor the correct extension when run as a part of a multiproject build

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Plugins and Lifecycle
    • Labels:
      None
    • Environment:
      Windows NT; JDK 1.5
    • Flags:
      Patch

      Description

      I have a plugin with a component.xml described here.

      I think the component.xml is correct - it certainly looks the
      same as the plexus examples.

      My project that uses this plugin works entirely correctly, unless it
      is a part of a multiproject build, in which case it uses the wrong
      extension. I don't know why this would be the case unless I've missed
      something?

      In same directory:
      W:\kms\dev\apps\kms>mvn install
      [INFO] Scanning for projects...
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building KMS Application Code
      [INFO] task-segment: [install]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [cargo2:uberwar]
      [INFO] [install:install]
      [INFO] Installing W:\1244 - Knowledge Management System
      (KMS)\dev\apps\kms\target\kms-2.0-SNAPSHOT.war to C:\Documents and
      Settings\nig
      el.magnay\.m2\repository\com\cswgroup\kms\kms\2.0-SNAPSHOT\kms-2.0-SNAPSHOT.war
      [INFO] ----------------------------------------------------------------------------
      [INFO] BUILD SUCCESSFUL
      [INFO] ----------------------------------------------------------------------------
      [INFO] Total time: 1 minute 9 seconds
      [INFO] Finished at: Thu Nov 24 11:46:53 GMT 2005
      [INFO] Final Memory: 3M/6M
      [INFO] ----------------------------------------------------------------------------

      As a part of a multiproject:
      ....
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building KMS Application Code
      [INFO] task-segment: [install]
      [INFO] ----------------------------------------------------------------------------
      [INFO] [cargo2:uberwar]
      [INFO] [install:install]
      [INFO] Installing W:\1244 - Knowledge Management System
      (KMS)\dev\apps\kms\target\kms-2.0-SNAPSHOT.war to C:\Documents and
      Settings\nig
      el.magnay\.m2\repository\com\cswgroup\kms\kms\2.0-SNAPSHOT\kms-2.0-SNAPSHOT.uberwar
      ....

      Config of plugin:
      <component-set>
      <components>
      <component>
      <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
      <role-hint>uberwar</role-hint>
      <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
      <configuration>
      <phases>
      <package>
      org.codehaus.cargo.maven2:cargo-maven2-plugin:uberwar
      </package>
      <install>org.apache.maven.plugins:maven-install-plugin:install</install>
      <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
      </phases>
      </configuration>
      </component>

      <component>
      <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
      <role-hint>uberwar</role-hint>
      <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
      <configuration>
      <type>uberwar</type>
      <extension>war</extension>
      <packaging>uberwar</packaging>
      </configuration>
      </component>
      </components>
      </component-set>

      1. MNG-1682-ittest.patch
        6 kB
        Carlos Sanchez
      2. ReactorProblem.tar.gz
        10 kB
        Jochen Walz

        Issue Links

          Activity

          nigel magnay created issue -
          Brett Porter made changes -
          Field Original Value New Value
          Fix Version/s 2.0.1 [ 12000 ]
          Brett Porter made changes -
          Link This issue is related to MNG-1684 [ MNG-1684 ]
          John Casey made changes -
          Fix Version/s 2.0.2 [ 12107 ]
          Fix Version/s 2.0.1 [ 12000 ]
          Vincent Massol made changes -
          Workflow Maven [ 42596 ] Maven New [ 48199 ]
          John Casey made changes -
          Fix Version/s 2.0.4 [ 12294 ]
          Fix Version/s 2.0.3 [ 12107 ]
          Jochen Walz made changes -
          Attachment ReactorProblem.tar.gz [ 19784 ]
          John Casey made changes -
          Fix Version/s 2.0.5 [ 12294 ]
          John Casey made changes -
          Fix Version/s 2.1 [ 11704 ]
          Brett Porter made changes -
          Link This issue is duplicated by MNG-2534 [ MNG-2534 ]
          Jason van Zyl made changes -
          Fix Version/s 2.1.x [ 13142 ]
          Fix Version/s 2.1 [ 11704 ]
          Carlos Sanchez made changes -
          Attachment MNG-1682-ittest.patch [ 25618 ]
          Carlos Sanchez made changes -
          Link This issue is duplicated by MNG-2426 [ MNG-2426 ]
          Carlos Sanchez made changes -
          Link This issue is duplicated by MNG-2240 [ MNG-2240 ]
          Carlos Sanchez made changes -
          Link This issue is related to MNG-2831 [ MNG-2831 ]
          Carlos Sanchez made changes -
          Link This issue is related to MNG-1911 [ MNG-1911 ]
          Carlos Sanchez made changes -
          Link This issue is related to MNG-2140 [ MNG-2140 ]
          Niclas Hedhman made changes -
          Link This issue is duplicated by MINSTALL-38 [ MINSTALL-38 ]
          Brett Porter made changes -
          Patch Submitted [Yes]
          Brett Porter made changes -
          Resolution Duplicate [ 3 ]
          Fix Version/s 2.1 [ 13142 ]
          Status Open [ 1 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Link This issue is duplicated by MINSTALL-38 [ MINSTALL-38 ]
          Mark Thomas made changes -
          Workflow jira [ 12712531 ] Default workflow, editable Closed status [ 12755447 ]
          Mark Thomas made changes -
          Flags Patch [ 10430 ]
          Patch Submitted Yes [ 10763 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Link This issue is duplicated by MINSTALL-38 [ MINSTALL-38 ]
          Mark Thomas made changes -
          Workflow jira [ 12953135 ] Default workflow, editable Closed status [ 12990409 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              nigel magnay
            • Votes:
              30 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development