maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Opalka (JIRA)" <j...@codehaus.org>
Subject [jira] (MNG-5573) NPE in legacy DefaultWagonManager
Date Thu, 06 Feb 2014 11:07:57 GMT

     [ https://jira.codehaus.org/browse/MNG-5573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Richard Opalka updated MNG-5573:
--------------------------------

          Environment: Environment agnostic.
    Affects Version/s: 3.1.1

> NPE in legacy DefaultWagonManager
> ---------------------------------
>
>                 Key: MNG-5573
>                 URL: https://jira.codehaus.org/browse/MNG-5573
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 3.1.1
>         Environment: Environment agnostic.
>            Reporter: Richard Opalka
>
> When executing the following command:
> mvn idea:idea -DdownloadSources=true" -e
> I'm getting the following NPE.
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-idea-plugin:2.2:idea (default-cli)
on project wildfly-cli: Execution default-cli of goal org.apache.maven.plugins:maven-idea-plugin:2.2:idea
failed. NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-idea-plugin:2.2:idea
(default-cli) on project wildfly-cli: Execution default-cli of goal org.apache.maven.plugins:maven-idea-plugin:2.2:idea
failed.
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of
goal org.apache.maven.plugins:maven-idea-plugin:2.2:idea failed.
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> 	... 19 more
> Caused by: java.lang.NullPointerException
> 	at org.apache.maven.repository.legacy.DefaultWagonManager.connectWagon(DefaultWagonManager.java:240)
> 	at org.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:337)
> 	at org.apache.maven.repository.legacy.DefaultWagonManager.getArtifact(DefaultWagonManager.java:109)
> 	at org.apache.maven.repository.legacy.DefaultWagonManager.getArtifact(DefaultWagonManager.java:161)
> 	at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:155)
> 	at org.apache.maven.plugin.idea.IdeaModuleMojo.resolveClassifiedArtifact(IdeaModuleMojo.java:966)
> 	at org.apache.maven.plugin.idea.IdeaModuleMojo.resolveClassifier(IdeaModuleMojo.java:929)
> 	at org.apache.maven.plugin.idea.IdeaModuleMojo.rewriteDependencies(IdeaModuleMojo.java:569)
> 	at org.apache.maven.plugin.idea.IdeaModuleMojo.rewriteModule(IdeaModuleMojo.java:409)
> 	at org.apache.maven.plugin.idea.IdeaMojo.rewriteModule(IdeaMojo.java:220)
> 	at org.apache.maven.plugin.idea.IdeaMojo.execute(IdeaMojo.java:200)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
> 	... 20 more



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message