Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2534

When building a multiproject build, maven2 may incorrectly store output files in the repository with a wrong extension. It does not do this if the project is built on its own.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 2.0.4
    • None
    • None
    • None
    • Windows XP SP2

    Description

      I have created two new maven plugins to customize the way war et ejb projects are built (i.e. maven 2 default plugins are not compliant with my requirements). In order to use these custom plugins, I have also creating two new packaging (named xnet-ejb and xnet-war) but output files I want to store in the maven repository must have .war and .jar extensions. So I have added plexus components descriptor in order to change the extension (by default, the role-hint will be the extension of the file).

      In a multiproject build, if I use only one of my plugin, it works well; the file install in the repository has the correct extension. But if I use both plugin, only one works and for project manage by the other one plugin, the file install in the repository will have a wrong extension (i.e. the role-hint).

      This problem seems to be known (see http://cargo.codehaus.org/Merging+WAR+files) but I haven't found any fix.

      Thanks for your help

      Attached are my both plugin jar files.

      Attachments

        1. log.txt
          23 kB
          Olivier Jauze
        2. plugins.zip
          31 kB
          Olivier Jauze

        Issue Links

          Activity

            People

              brett Brett Porter
              ojauze Olivier Jauze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: