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

                 Key: MNG-2534
                 URL: http://jira.codehaus.org/browse/MNG-2534
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.4
         Environment: Windows XP SP2
            Reporter: Olivier Jauze
            Priority: Blocker


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.

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