You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Pablo Graña (JIRA)" <ji...@codehaus.org> on 2009/12/04 16:06:55 UTC
[jira] Created: (ARCHETYPE-271) archetype create swallows exception
information
archetype create swallows exception information
-----------------------------------------------
Key: ARCHETYPE-271
URL: http://jira.codehaus.org/browse/ARCHETYPE-271
Project: Maven Archetype
Issue Type: Bug
Affects Versions: 2.0-alpha-4
Reporter: Pablo Graña
Priority: Minor
Attachments: jdom-error-message.txt
The DefaultPomManager.java contains:
catch ( JDOMException exc )
{
throw new IOException( "Cannot parse the POM by JDOM" );
}
all exc info is lost. My particular problem was that the archetype pom contained:
#set( $symbol_dollar = '$' )
#set( $symbol_lt = '<' )
#set( $symbol_gt = '>' )
<?xml version="1.0" encoding="UTF-8"?>
and the space before the xml declaration was throwing the previous exception.
I attach a very simple patch to make it easier to track these errors. It was generated with svn diff > jdom-error-message.txt against maven-archetype-2.0-alpha-4.
--
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
[jira] Closed: (ARCHETYPE-271) archetype create swallows exception
information
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/ARCHETYPE-271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy closed ARCHETYPE-271.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.0-alpha-6
Assignee: Herve Boutemy
fixed in [r984962|http://svn.apache.org/viewvc?rev=984962&view=rev]
thank you
> archetype create swallows exception information
> -----------------------------------------------
>
> Key: ARCHETYPE-271
> URL: http://jira.codehaus.org/browse/ARCHETYPE-271
> Project: Maven Archetype
> Issue Type: Bug
> Affects Versions: 2.0-alpha-4
> Reporter: Pablo Graña
> Assignee: Herve Boutemy
> Priority: Minor
> Fix For: 2.0-alpha-6
>
> Attachments: jdom-error-message.txt
>
>
> The DefaultPomManager.java contains:
> catch ( JDOMException exc )
> {
> throw new IOException( "Cannot parse the POM by JDOM" );
> }
> all exc info is lost. My particular problem was that the archetype pom contained:
> #set( $symbol_dollar = '$' )
> #set( $symbol_lt = '<' )
> #set( $symbol_gt = '>' )
> <?xml version="1.0" encoding="UTF-8"?>
> and the space before the xml declaration was throwing the previous exception.
> I attach a very simple patch to make it easier to track these errors. It was generated with svn diff > jdom-error-message.txt against maven-archetype-2.0-alpha-4.
--
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