Maven Archetype
  1. Maven Archetype
  2. ARCHETYPE-271

archetype create swallows exception information

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha-4
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      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.

        Activity

        Hide
        Herve Boutemy added a comment -

        fixed in r984962

        thank you

        Show
        Herve Boutemy added a comment - fixed in r984962 thank you

          People

          • Assignee:
            Herve Boutemy
            Reporter:
            Pablo Graņa
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: