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

NPE in PluginParameterExpressionEvaluator when a mojo need the basedir and pom.xml doesn't exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0-beta-1
    • None
    • None
    • None

    Description

      m2 scm:checkout -Dmaven.scm.url=scm:cvs:pserver:<my-userid>@<my.cvs.server.com>:<my-cvs-repository>:<my-module>

      and receiving the following response:

      [INFO] Searching repository for plugin with prefix: 'scm'.
      [INFO] ----------------------------------------------------------------------------
      [INFO] Building Maven Default Project
      [INFO] task-segment: [scm:checkout]
      [INFO] ----------------------------------------------------------------------------
      ---------------------------------------------------
      constituent[0]: file:/c:/maven-2.0-alpha-3/lib/commons-cli-1.0-beta-2.jar
      constituent[1]: file:/c:/maven-2.0-alpha-3/lib/doxia-sink-api-1.0-alpha-4-20050721.064859-1.jar
      constituent[2]: file:/c:/maven-2.0-alpha-3/lib/jline-0.9.1.jar
      constituent[3]: file:/c:/maven-2.0-alpha-3/lib/jsch-0.1.21.jar
      constituent[4]: file:/c:/maven-2.0-alpha-3/lib/maven-artifact-2.0-beta-1-SNAPSHOT.jar
      constituent[5]: file:/c:/maven-2.0-alpha-3/lib/maven-artifact-manager-2.0-beta-1-SNAPSHOT.jar
      constituent[6]: file:/c:/maven-2.0-alpha-3/lib/maven-core-2.0-beta-1-SNAPSHOT.jar
      constituent[7]: file:/c:/maven-2.0-alpha-3/lib/maven-model-2.0-beta-1-SNAPSHOT.jar
      constituent[8]: file:/c:/maven-2.0-alpha-3/lib/maven-monitor-2.0-beta-1-SNAPSHOT.jar
      constituent[9]: file:/c:/maven-2.0-alpha-3/lib/maven-plugin-api-2.0-beta-1-SNAPSHOT.jar
      constituent[10]: file:/c:/maven-2.0-alpha-3/lib/maven-plugin-descriptor-2.0-beta-1-SNAPSHOT.jar
      constituent[11]: file:/c:/maven-2.0-alpha-3/lib/maven-plugin-registry-2.0-beta-1-SNAPSHOT.jar
      constituent[12]: file:/c:/maven-2.0-alpha-3/lib/maven-profile-2.0-beta-1-SNAPSHOT.jar
      constituent[13]: file:/c:/maven-2.0-alpha-3/lib/maven-project-2.0-beta-1-SNAPSHOT.jar
      constituent[14]: file:/c:/maven-2.0-alpha-3/lib/maven-reporting-api-2.0-beta-1-SNAPSHOT.jar
      constituent[15]: file:/c:/maven-2.0-alpha-3/lib/maven-repository-metadata-2.0-beta-1-SNAPSHOT.jar
      constituent[16]: file:/c:/maven-2.0-alpha-3/lib/maven-settings-2.0-beta-1-SNAPSHOT.jar
      constituent[17]: file:/c:/maven-2.0-alpha-3/lib/plexus-input-handler-1.0-alpha-2.jar
      constituent[18]: file:/c:/maven-2.0-alpha-3/lib/wagon-file-1.0-alpha-4.jar
      constituent[19]: file:/c:/maven-2.0-alpha-3/lib/wagon-http-lightweight-1.0-alpha-4.jar
      constituent[20]: file:/c:/maven-2.0-alpha-3/lib/wagon-provider-api-1.0-alpha-4.jar
      constituent[21]: file:/c:/maven-2.0-alpha-3/lib/wagon-ssh-1.0-alpha-4.jar
      ---------------------------------------------------
      java.lang.NullPointerException
      at org.apache.maven.plugin.PluginParameterExpressionEvaluator.evaluate(PluginParameterExpressionEvaluator.java:221)
      at org.apache.maven.plugin.DefaultPluginManager.checkRequiredParameters(DefaultPluginManager.java:705)
      at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:513)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:330)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:479)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:460)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:442)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:131)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:316)
      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:585)
      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)

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              evenisse Emmanuel Venisse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: