Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4786

[regression] Ant-based mojo using maven-script-ant:2.1.0+ cause NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0
    • None
    • None
    • 3.0-beta-3 (staging)

    Description

      Testing latest beta-3 available in staging, I get an NPE when calling one of my plugins that use the ant wrapper (described at http://www.sonatype.com/books/mhandbook/reference/ch04s04.html)

      Here is a sample plugin project that use this feature (I took the one available in Maven book).
      Compile it, then call

      mvn org.sonatype.mavenbook.plugins:firstant-maven-plugin:echo -Dmessage=world -e

      This works with 2.2.1/beta-2 but throws an NPE with beta-3 (see attached logs)

      Attachments

        1. NPE.log
          4 kB
          Vincent Latombe
        2. antmojo.zip
          1 kB
          Vincent Latombe

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              vlatombe Vincent Latombe
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: