maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Rosenvold (JIRA)" <j...@codehaus.org>
Subject [jira] (MASSEMBLY-740) mismatched descriptors / descriptorRefs gives generic error
Date Sat, 06 Dec 2014 20:35:10 GMT

     [ https://jira.codehaus.org/browse/MASSEMBLY-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kristian Rosenvold updated MASSEMBLY-740:
-----------------------------------------

    Fix Version/s:     (was: 2.5.3)
                   backlog

> mismatched descriptors / descriptorRefs gives generic error
> -----------------------------------------------------------
>
>                 Key: MASSEMBLY-740
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-740
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>            Reporter: Daniel Pocock
>            Priority: Minor
>             Fix For: backlog
>
>
> Basically, if pom.xml is misconfigured:
>           <descriptorRefs>
>             <descriptor>src/assembly/dist.xml</descriptor>
>           </descriptorRefs>
> instead of using the correct container <descriptors>:
>           <descriptors>
>             <descriptor>src/assembly/dist.xml</descriptor>
>           </descriptors>
> then the assembly plugin fails with the rather generic error:
> Error reading assemblies: Descriptor with ID 'src/assembly/dist.xml' not found
> It had started off as a valid and working configuration like this:
>           <descriptorRefs>
>             <descriptorRef>bin</descriptorRef>
>           </descriptorRefs>
> and then only the <descriptorRef> element was changed to <descriptor> to
use a custom dist.xml without realizing that descriptorRefs needs to be changed too.
> This is probably a very easy mistake for anybody to make the first time they customize
the assembly plugin so it would be nice to show a more explicit error telling people not to
mismatch <descriptorRefs> with <descriptor> and vice-versa.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message