Uploaded image for project: 'Apache Rat'
  1. Apache Rat
  2. RAT-29

NPE on "mvn install" in rat-anttasks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 0.6
    • 0.6
    • None
    • None
    • $ mvn -v
      Maven version: 2.0.8
      Java version: 1.6.0_03
      OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"

    Description

      I'm getting a NullPointerException when I run "mvn install" for the rat-anttasks project:

      $ mvn install
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Building RAT Ant Tasks
      [INFO] task-segment: [install]
      [INFO] ------------------------------------------------------------------------
      [INFO] [resources:resources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:compile]
      [INFO] Compiling 2 source files to c:\src\rat\main\trunk\rat\rat-anttasks\target\classes
      [INFO] [dependency:copy-dependencies

      {execution: default}

      ]
      [INFO] Copying ant-antunit-1.0.jar to c:\src\rat\main\trunk\rat\rat-anttasks\target\dependencies\ant-antunit.jar
      [INFO] [resources:testResources]
      [INFO] Using default encoding to copy filtered resources.
      [INFO] [compiler:testCompile]
      [INFO] No sources to compile
      [INFO] [surefire:test]
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] null
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.NullPointerException
      at org.apache.maven.plugin.surefire.SurefirePlugin.constructSurefireBooter(SurefirePlugin.java:594)
      at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:391)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 11 seconds
      [INFO] Finished at: Mon Jun 23 14:16:17 EEST 2008
      [INFO] Final Memory: 11M/23M
      [INFO] ------------------------------------------------------------------------

      It looks like an error in the Maven Surefire plugin, but this is the only Maven project I have (and I have quite a few of them) that throws this error.

      Attachments

        Activity

          People

            jochen@apache.org Jochen Wiedmann
            jukkaz Jukka Zitting
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: