[ https://jira.codehaus.org/browse/MDEPLOY-174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=337518#comment-337518 ]
Markus KARG commented on MDEPLOY-174: ------------------------------------- This POM is not part of a regular lifecycle but was written to provide a simple means for a non-Maven-aware project manager to upload to Maven Central manually. It shall spare him from the need to type in the parameters needed for deploy:deploy-file. He actually builds using ANT currently. When he wants to release finally, he modifies the version number POM by hand, then invokes "mvn deploy" when he wants to publish the final release. This is a first step toward replacing ANT by Maven, which will need several weeks of work due to the complexity of the ANT build. We started by providing him this one, as publishing to Maven Central is the sole thing his ANT script does not do currently. > 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: Blocker > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira