[
https://jira.codehaus.org/browse/MASSEMBLY-740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen Connolly moved MAPPASM-250 to MASSEMBLY-740:
----------------------------------------------------
Key: MASSEMBLY-740 (was: MAPPASM-250)
Project: Maven Assembly Plugin (was: Mojo's AppAssembler Maven Plugin)
> 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
>
> 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)