You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jose Gonzalez Gomez <jg...@gmail.com> on 2006/05/09 12:52:23 UTC

Problems with Eclipse plugin

Hi there,

I'm still unable to get the Maven2 support in Eclipse running properly. I
have tried again after upgrading to 0.0.7 and I keep getting errors I don't
get when running Maven at the command line. Here you have an example:

[INFO]
----------------------------------------------------------------------------
[INFO] Building netflux core
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] resources:resources
[INFO] Using default encoding to copy filtered resources.
[INFO] compiler:compile
[INFO] Nothing to compile - all classes are up to date
[INFO] resources:testResources
[INFO] Using default encoding to copy filtered resources.
[INFO] compiler:testCompile
[INFO] Nothing to compile - all classes are up to date
[INFO] surefire:test
[INFO] Setting reports dir:
U:\proyectos\otros\netflux\netflux-core\target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
[surefire] Running org.netflux.core.FieldTest
[surefire] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,203 sec
[INFO] jar:jar
[ERROR] mojo-execute : jar:jar
Diagnosis: Error assembling JAR
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute : org.netflux:netflux-core:jar:0.2-SNAPSHOT (
task-segment: [install] )
Diagnosis: Error assembling JAR
FATAL ERROR: Error executing Maven for a project
org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling JAR
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)
    at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
    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.embedder.MavenEmbedder.execute(MavenEmbedder.java
:441)
    at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java
:382)
    at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling
JAR
    at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(
AbstractJarMojo.java:151)
    at org.apache.maven.plugin.jar.AbstractJarMojo.execute(
AbstractJarMojo.java:163)
    at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
    ... 8 more
Caused by: 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.archiver.MavenArchiver.createArchive(
MavenArchiver.java:232)
    at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(
AbstractJarMojo.java:144)
    ... 11 more

I get the following at the command line running mvn install:

[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building netflux core
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Setting reports dir:
U:\proyectos\otros\netflux\netflux-core\target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
[surefire] Running org.netflux.core.FieldTest
[surefire] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,078 sec
[INFO] [jar:jar]
[INFO] Building jar: U:\proyectos\otros\netflux\netflux-core\target\netflux-
core-0.2-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing U:\proyectos\otros\netflux\netflux-core\target\netflux-
core-0.2-SNAPSHOT.jar to C:\Documents and
Settings\jgonzalez.CEESCATDOM\.m2\repository\org\netflux\netflux-core\0.2-SNAPSHOT\netflux-
core-0.2-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Tue May 09 12:46:27 CEST 2006
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------


Any ideas? The debug output doesn't show anything else that would give me
any clue about why this is failing.

Thanks, best regards
Jose