maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@codehaus.org>
Subject [jira] (MEAR-172) Enhance the exception thrown when the EAR plugin can not map an included artifact
Date Thu, 14 Nov 2013 22:18:20 GMT

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

Robert Scholte closed MEAR-172.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.9
         Assignee: Robert Scholte

Thanks for the patch!
Fixed in [r1542107|http://svn.apache.org/r1542107]
                
> Enhance the exception thrown when the EAR plugin can not map an included artifact
> ---------------------------------------------------------------------------------
>
>                 Key: MEAR-172
>                 URL: https://jira.codehaus.org/browse/MEAR-172
>             Project: Maven Ear Plugin
>          Issue Type: Improvement
>            Reporter: Steve Moyer
>            Assignee: Robert Scholte
>             Fix For: 2.9
>
>         Attachments: patch.txt
>
>
> If unknown artifact types are included in the hierarchy of an EAR project's dependency,
The ArtifactTypeMappingService will throw an UnknownArtifactTypeException with a message that
looks something like "Unknown artifact type[test-jar]".  Since the artifact type to be mapped
is passed as a string, the getStandardType(final String type) method can't generate a message
that includes the artifactId.
> The attached patch includes changes to the EarModuleFactory that catches and rethrows
the UnknownArtifactTypeException while appending the artifactId to the exception's message.
 The changes result in a message that looks something like "Unknown artifact type[test-jar]
for jboss-as-ejb3", making debugging a failed EAR build much easier.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message