maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus KARG (JIRA)" <j...@codehaus.org>
Subject [jira] (MDEPLOY-174) NullPointerException at MavenArtifactRepository.java:219
Date Sat, 15 Feb 2014 17:02:58 GMT

    [ https://jira.codehaus.org/browse/MDEPLOY-174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=341524#comment-341524
] 

Markus KARG commented on MDEPLOY-174:
-------------------------------------

Sorry for letting you wait.

What exactly do you want me to do / to post)? Instructions please. :-)

Thanks
-Markus

> NullPointerException at MavenArtifactRepository.java:219
> --------------------------------------------------------
>
>                 Key: MDEPLOY-174
>                 URL: https://jira.codehaus.org/browse/MDEPLOY-174
>             Project: Maven Deploy Plugin
>          Issue Type: Bug
>    Affects Versions: 2.8.1
>            Reporter: Markus KARG
>            Priority: Minor
>
> My POM.xml is rather empty, mostly contains only this:
> {code:xml}
> <plugin>
>   <artifactId>maven-deploy-plugin</artifactId>
>   <version>2.8.1</version>
>   <configuration>
>     <groupId>${project.groupId}</groupId>
>     <artifactId>${project.artifactId}</artifactId>
>     <version>${project.version}</version>
>     <packaging>zip</packaging>
>     <file>../target/dist/DITA-OT2.0.M1_minimal_bin.zip</file>
>   </configuration>
>   <executions>
>     <execution>
>       <phase>deploy</phase>
>       <goals>
>         <goal>deploy-file</goal>
>       </goals>
>     </execution>
>   </executions>
> </plugin>
> {code}
> When I do "mvn -X deploy" the result is a crash of Maven:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy-file
(default) on project dita-ot-minimal: Execution default of goal org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy-file
failed. NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy-file
(default) on project dita-ot-minimal: Execution default of goal org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy-file
failed.
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>  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:320)
>  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>  at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>  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:290)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>  at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal
org.apache.maven.plugins:maven-deploy-plugin:2.8.1:deploy-file failed.
>  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>  ... 19 more
> Caused by: java.lang.NullPointerException
>  at org.apache.maven.artifact.repository.MavenArtifactRepository.protocol(MavenArtifactRepository.java:219)
>  at org.apache.maven.artifact.repository.MavenArtifactRepository.<init>(MavenArtifactRepository.java:79)
>  at org.apache.maven.repository.legacy.repository.DefaultArtifactRepositoryFactory.createArtifactRepository(DefaultArtifactRepositoryFactory.java:129)
>  at org.apache.maven.repository.legacy.repository.DefaultArtifactRepositoryFactory.createDeploymentArtifactRepository(DefaultArtifactRepositoryFactory.java:78)
>  at org.apache.maven.artifact.repository.DefaultArtifactRepositoryFactory.createDeploymentArtifactRepository(DefaultArtifactRepositoryFactory.java:67)
>  at org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:233)
>  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>  ... 20 more
> [ERROR]
> {noformat}



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

Mime
View raw message