You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ole-Martin Mørk <ol...@gmail.com> on 2007/06/14 17:06:47 UTC

NullPointerException in ArtifactUtils.copyArtifact when generating site

Using maven 2.0.6 I get an error when running 'mvn site'

The error is:
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8 for
project: null:maven-idea-plugin:maven-plugin:2.1-SNAPSHOT from the
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project:
org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] maven-surefire-plugin: resolved to version
2.3-20070114.205105-10from repository maven-proxy
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.3-SNAPSHOT for project:
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3-20070114.205105-10from
the repository.
[DEBUG] surefire: resolved to version 2.3-20070124.041233-4 from repository
maven-proxy
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5-SNAPSHOT for
project: org.apache.maven.surefire:surefire:pom:2.3-SNAPSHOT from the
repository.
[DEBUG] maven-parent: resolved to version 5-20070127.114244-3 from
repository maven-proxy
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5-SNAPSHOT from the repository.
[DEBUG] maven-surefire-plugin: resolved to version
2.3-20070114.205105-10from repository maven-proxy
[DEBUG] maven-site-plugin: resolved to version 2.0-20070528.202755-15 from
repository maven-proxy
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8 for
project: null:maven-checkstyle-plugin:maven-plugin:2.2-SNAPSHOT from the
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project:
org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8 for
project: null:maven-javadoc-plugin:maven-plugin:2.3-SNAPSHOT from the
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project:
org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.4-SNAPSHOT for project:
org.apache.maven.plugins:maven-surefire-report-plugin:maven-plugin:null from
the repository.
[DEBUG] surefire: resolved to version 2.4-20070607.104639-16 from repository
maven-proxy
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project:
org.apache.maven.surefire:surefire:pom:2.4-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8 for
project: null:maven-project-info-reports-plugin:maven-plugin:2.1-SNAPSHOTfrom
the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project:
org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5 from the repository.
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
java.lang.NullPointerException
        at org.apache.maven.artifact.ArtifactUtils.copyArtifact(
ArtifactUtils.java:109)
        at org.apache.maven.project.MavenProject.<init>(MavenProject.java
:251)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(
DefaultLifecycleExecutor.java:886)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle
(DefaultLifecycleExecutor.java:729)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:525)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java:488)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:458)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        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)

This is a multimodule project

-- 
Regards, Ole-Martin Mørk.