Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-920

NPE in DefaultArtifactInstaller.install - missing injection of RepositoryManager

    XMLWordPrintableJSON

Details

    Description

      Add missing @Requirement annotation

      @Requirement
      private RepositoryManager repositoryManager;

       

      Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to install artifact: org.apache.maven.plugins:maven-plugins:pom:34
      at org.apache.maven.plugins.invoker.InstallMojo.installArtifact (InstallMojo.java:264)
      at org.apache.maven.plugins.invoker.InstallMojo.installProjectPom (InstallMojo.java:410)
      at org.apache.maven.plugins.invoker.InstallMojo.installProjectParents (InstallMojo.java:379)
      at org.apache.maven.plugins.invoker.InstallMojo.execute (InstallMojo.java:199)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:136)

       

      Caused by: java.lang.NullPointerException
      at org.apache.maven.shared.transfer.artifact.install.internal.DefaultArtifactInstaller.install (DefaultArtifactInstaller.java:81)
      at org.apache.maven.plugins.invoker.InstallMojo.installArtifact (InstallMojo.java:254)
      at org.apache.maven.plugins.invoker.InstallMojo.installProjectPom (InstallMojo.java:410)
      at org.apache.maven.plugins.invoker.InstallMojo.installProjectParents (InstallMojo.java:379)
      at org.apache.maven.plugins.invoker.InstallMojo.execute (InstallMojo.java:199)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:136)

       

       

      Attachments

        Issue Links

          Activity

            People

              slachiewicz Sylwester Lachiewicz
              slachiewicz Sylwester Lachiewicz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: