Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-364

InvokerMavenExecutor fails with NPE if additional arguments are not set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0-beta-8
    • 2.0-beta-8
    • None
    • None

    Description

      Attempting to perform a release:prepare fails with a simple pom:

      -bash-2.05b$ mvn release:prepare -DdryRun=true
      [INFO] Scanning for projects...
      [INFO] Searching repository for plugin with prefix: 'release'.
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Test POM
      [INFO] task-segment: [release:prepare] (aggregator-style)
      [INFO] ------------------------------------------------------------------------
      [INFO] [release:prepare]
      [INFO] Verifying that there are no local modifications...
      [INFO] Executing: svn --non-interactive status
      [INFO] Working directory: /home/gilberts2/dev/maven_release_test
      [INFO] Checking dependencies and plugins for snapshots ...
      This project relies on a SNAPSHOT of the release plugin. This may be necessary d
      uring testing.: Do you want to continue with the release? (yes/no) no: : yes
      What is the release version for "Test POM"? (srg:test-pom) 1.0: :
      What is SCM release tag or label for "Test POM"? (srg:test-pom) test-pom-1.0: :
      What is the new development version for "Test POM"? (srg:test-pom) 1.1-SNAPSHOT:
      :
      [INFO] Transforming 'Test POM'...
      [INFO] Not generating release POMs
      [INFO] Executing preparation goals - since this is simulation mode it is running
      against the original project, not the rewritten ones
      [INFO] Executing goals 'clean verify'...
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Cannot find Maven executor with id: null

      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 11 seconds
      [INFO] Finished at: Tue Jul 22 23:34:07 EDT 2008
      [INFO] Final Memory: 22M/64M
      [INFO] ------------------------------------------------------------------------

      I attempted to set the mavenExecutorId to both:

      <configuration>
      <mavenExecutorId>forked-path</mavenExecutorId>
      </configuration>

      and

      <configuration>
      <mavenExecutorId>invoker</mavenExecutorId>
      </configuration>

      In both cases a NullPointerException was the result.

      The pom file is attached.

      Attachments

        1. pom.xml
          1 kB
          Steve Gilbert
        2. no_executor_pom.xml
          1 kB
          Steve Gilbert
        3. no_executor_log.txt
          30 kB
          Steve Gilbert
        4. invokermavenexecutor_null_pointer_exception.patch
          0.8 kB
          Steve Gilbert
        5. invoker_executor_pom.xml
          1 kB
          Steve Gilbert
        6. invoker_executor_log.txt
          30 kB
          Steve Gilbert
        7. invalid_task_and_log.txt
          31 kB
          Steve Gilbert
        8. forkedpath_executor_pom.xml
          1 kB
          Steve Gilbert
        9. forkedpath_executor_log.txt
          33 kB
          Steve Gilbert

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              agency23 Steve Gilbert
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: