build error

684 views
Skip to first unread message

Li Li

unread,
May 24, 2012, 11:01:55 PM5/24/12
to ne...@googlegroups.com
I use mvn clean install -Dmaven.test.skip=true to build neo4j-commuity but fails
the error message is:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.neo4j.build.plugins:docs-maven-plugin:5:assemble': Unable to load
the mojo 'org.neo4j.build.plugins:docs-maven-plugin:5:assemble' in the
plugin 'org.neo4j.build.plugins:docs-maven-plugin'. A required class
is missing: org/codehaus/plexus/util/Scanner
org.codehaus.plexus.util.Scanner

Michael Hunger

unread,
May 25, 2012, 3:16:41 AM5/25/12
to ne...@googlegroups.com
Please use maven 3

Sent from mobile device

Anders Nawroth

unread,
May 25, 2012, 3:43:03 AM5/25/12
to ne...@googlegroups.com
Hi!

You can also try adding -Dskipdocs=true
as the rest of the build should work with mvn 2.

It's a bit unfortunate -- the failing plugin works with some mvn 2.2.1
installs, but not others.

Anyhow, going with mvn 3 is the preferred solution.

/anders

Li Li

unread,
May 25, 2012, 5:37:46 AM5/25/12
to ne...@googlegroups.com
still fails

[ERROR] Failed to execute goal on project neo4j-jmx: Could not resolve
dependencies for project org.neo4j:neo4j-jmx:jar:1.8-SNAPSHOT: Could
not find artifact org.neo4j:neo4j-kernel:jar:tests:1.8-SNAPSHOT in
central1 (http://repo1.maven.org/maven2) -> [Help 1]

Li Li

unread,
May 25, 2012, 5:38:14 AM5/25/12
to ne...@googlegroups.com
use skipp docs still failed with the same error

Julian Simpson

unread,
May 25, 2012, 6:08:29 AM5/25/12
to ne...@googlegroups.com
Hi Li,

On Fri, May 25, 2012 at 10:38 AM, Li Li <fanc...@gmail.com> wrote:
use skipp docs still failed with the same error


We don't publish snapshots to Maven Central.  Try this settings.xml instead (don't forget to backup your old settings.xml ...)


Best

Julian.

Anders Nawroth

unread,
May 25, 2012, 6:35:21 AM5/25/12
to ne...@googlegroups.com
Oops, please try this one instead: -Ddocs-plugin.skip=true

/anders
--
Anders Nawroth [and...@neotechnology.com]
GTalk, Skype: anders.nawroth


Li Li

unread,
May 25, 2012, 7:29:20 AM5/25/12
to ne...@googlegroups.com
[ERROR] Failed to execute goal on project neo4j-jmx: Could not resolve
dependencies for project org.neo4j:neo4j-jmx:jar:1.8-SNAPSHOT: Could
not find artifact org.neo4j:neo4j-kernel:jar:tests:1.8-SNAPSHOT in
neo4j-snapshot-repository
(http://m2.neo4j.org/content/repositories/snapshots) -> [Help 1]
[ERROR]

Anders Nawroth

unread,
May 25, 2012, 8:39:53 AM5/25/12
to ne...@googlegroups.com
The file clearly exists here:
http://m2.neo4j.org/content/repositories/snapshots/org/neo4j/neo4j-kernel/1.8-SNAPSHOT/

It could be timeout on the repo server, or you run into a mvn2
dependency resolution bug.

My advice is to
mvn clean install
community/kernel first, and then go for the rest.

/anders

Li Li

unread,
May 27, 2012, 8:37:35 AM5/27/12
to ne...@googlegroups.com
I download this jar and install it.
but still fails. it can't find com.sun.jersey:jersey-server:pom:1.9 in
all the repositories.

Downloading: http://m2.neo4j.org/content/repositories/releases/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.pom
[INFO] Unable to find resource 'com.sun.jersey:jersey-server:pom:1.9'
in repository neo4j-release-repository
(http://m2.neo4j.org/content/repositories/releases)
Downloading: http://download.java.net/maven/2//com/sun/jersey/jersey-server/1.9/jersey-server-1.9.pom
[INFO] Unable to find resource 'com.sun.jersey:jersey-server:pom:1.9'
in repository java.net (http://download.java.net/maven/2/)
Downloading: http://selenium.googlecode.com/svn/repository/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.pom
[INFO] Unable to find resource 'com.sun.jersey:jersey-server:pom:1.9'
in repository selenium-repository
(http://selenium.googlecode.com/svn/repository)
Downloading: http://cukes.info/maven/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.pom
[INFO] Unable to find resource 'com.sun.jersey:jersey-server:pom:1.9'
in repository cukes (http://cukes.info/maven)
Downloading: http://repo1.maven.org/maven2/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.pom

Downloading: http://m2.neo4j.org/content/repositories/releases/com/sun/jersey/jersey-project/1.9/jersey-project-1.9.pom
[INFO] Unable to find resource 'com.sun.jersey:jersey-project:pom:1.9'
in repository neo4j-release-repository
(http://m2.neo4j.org/content/repositories/releases)
Downloading: http://download.java.net/maven/2//com/sun/jersey/jersey-project/1.9/jersey-project-1.9.pom
[INFO] Unable to find resource 'com.sun.jersey:jersey-project:pom:1.9'
in repository java.net (http://download.java.net/maven/2/)
Downloading: http://selenium.googlecode.com/svn/repository/com/sun/jersey/jersey-project/1.9/jersey-project-1.9.pom
[INFO] Unable to find resource 'com.sun.jersey:jersey-project:pom:1.9'
in repository selenium-repository
(http://selenium.googlecode.com/svn/repository)
Downloading: http://cukes.info/maven/com/sun/jersey/jersey-project/1.9/jersey-project-1.9.pom
[INFO] Unable to find resource 'com.sun.jersey:jersey-project:pom:1.9'
in repository cukes (http://cukes.info/maven)
Downloading: http://repo1.maven.org/maven2/com/sun/jersey/jersey-project/1.9/jersey-project-1.9.pom

Downloading: http://download.java.net/maven/2/net/java/jvnet-parent/1/jvnet-parent-1.pom
[INFO] Unable to find resource 'net.java:jvnet-parent:pom:1' in
repository m2.java.net (http://download.java.net/maven/2)
Downloading: http://repository.jboss.org/nexus/content/groups/public//net/java/jvnet-parent/1/jvnet-parent-1.pom
[INFO] Unable to find resource 'net.java:jvnet-parent:pom:1' in
repository repository.jboss.org
(http://repository.jboss.org/nexus/content/groups/public/)
Downloading: http://maven.glassfish.org/content/groups/glassfish/net/java/jvnet-parent/1/jvnet-parent-1.pom
185b downloaded (jvnet-parent-1.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'6c9fd3d150b8a5f0ca676f49b8ed603793cabebb'; remote = '<html>
<head><title>301' - RETRYING
Downloading: http://maven.glassfish.org/content/groups/glassfish/net/java/jvnet-parent/1/jvnet-parent-1.pom
185b downloaded (jvnet-parent-1.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'6c9fd3d150b8a5f0ca676f49b8ed603793cabebb'; remote = '<html>
<head><title>301' - IGNORING
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: com.sun.jersey:jersey-project:pom:1.9

Reason: Cannot find parent: net.java:jvnet-parent for project:
com.sun.jersey:jersey-project:pom:1.9 for project
com.sun.jersey:jersey-project:pom:1.9


On Fri, May 25, 2012 at 8:39 PM, Anders Nawroth

Peter Neubauer

unread,
May 27, 2012, 3:05:44 PM5/27/12
to ne...@googlegroups.com
Hi there,
that pom is on

http://repo1.maven.org/maven2/com/sun/jersey/jersey-server/1.9/jersey-server-1.9.pom

And it seems that the default maven repo is not tested in your
installation, http://repo1.maven.org/maven2/

Could you please add it in your ~/.m2/settings.xml like

<settings>
<profiles>
<profile>
<id>defaultProfile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>

<repositories>
<repository>
<id>maven central</id>
<url>http://repo1.maven.org/maven2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</profile>
</profiles>
</settings>

Does that help?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j

Li Li

unread,
May 27, 2012, 8:09:15 PM5/27/12
to ne...@googlegroups.com
still fails
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: com.sun.jersey:jersey-project:pom:1.9

Reason: Cannot find parent: net.java:jvnet-parent for project:
com.sun.jersey:jersey-project:pom:1.9 for project
com.sun.jersey:jersey-project:pom:1.9

my settings.xml:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>neo4j</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>neo4j-release-repository</id>
<name>Neo4j Maven 2 release repository</name>
<url>http://m2.neo4j.org/content/repositories/releases</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>neo4j-snapshot-repository</id>
<name>Neo4j Maven 2 snapshot repository</name>
<url>http://m2.neo4j.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
</profile>
<profile>
<id>defaultProfile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>

<repositories>
<repository>
<id>maven central</id>
<url>http://repo1.maven.org/maven2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
</profile>
</profiles>
</settings>

Anders Nawroth

unread,
May 28, 2012, 1:10:05 AM5/28/12
to ne...@googlegroups.com
That pom is on mvn central as well:
http://repo1.maven.org/maven2/net/java/jvnet-parent/1/jvnet-parent-1.pom

/anders

Li Li

unread,
Jun 3, 2012, 2:35:15 AM6/3/12
to ne...@googlegroups.com
I found the reason is network problem. I have used a proxy and many
error has gone. but there are still some errors:

[WARNING] The POM for com.sun.jersey:jersey-server:jar:1.9 is invalid,
transitive dependencies (if any) will not be available, enable debug
logging for more details
[WARNING] The POM for com.sun.jersey.contribs:jersey-multipart:jar:1.9
is invalid, transitive dependencies (if any) will not be available,
enable debug logging for more details
[WARNING] The POM for com.sun.jersey:jersey-client:jar:1.9 is invalid,
transitive dependencies (if any) will not be available, enable debug
logging for more details
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ neo4j-server ---
[INFO]
[INFO] --- license-maven-plugin:3:check (check-licenses) @ neo4j-server ---
[INFO] Checking licenses...
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
neo4j-server ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1018 resources
[INFO] skip non existing resourceDirectory
/home/lili/neo4j/community/server/target/generated-sources
[INFO] Copying 4 resources to META-INF
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
neo4j-server ---
[INFO] Compiling 272 source files to
/home/lili/neo4j/community/server/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/lili/neo4j/community/server/src/main/java/org/neo4j/server/database/AbstractInjectableProvider.java:[24,40]
com.sun.jersey.core.spi.component does not exist



On Mon, May 28, 2012 at 1:10 PM, Anders Nawroth

Anders Nawroth

unread,
Jun 3, 2012, 5:33:14 AM6/3/12
to ne...@googlegroups.com
Hi!

Seems you have some problems in your local repo, those poms are on mvn
central as well. Maybe just clean your local repo and let mvn download
everything again. Or remove the artifacts with problems in them,
including the metadata, from the local repo.

/anders

Li Li

unread,
Jun 4, 2012, 12:08:48 AM6/4/12
to ne...@googlegroups.com
"GET http://m2.neo4j.org/content/repositories/snapshots/org/neo4j/neo4j-kernel/1.8-SNAPSHOT/neo4j-kernel-1.8-SNAPSHOT-tests.jar
HTTP/1.1" 404
I visit this page with browser:

The server has not found anything matching the request URI

You can get technical details here.
Please continue your visit at our home page.
http://m2.neo4j.org/content/repositories/snapshots/org/neo4j/neo4j-kernel/1.8-SNAPSHOT/
there are many file name like neo4j-kernel-1.8-20120502.120026-71-tests.jar
but no one named neo4j-kernel-1.8-SNAPSHOT-***-tests.jar

I go to the parent page:

Anders Nawroth

unread,
Jun 4, 2012, 2:13:43 AM6/4/12
to ne...@googlegroups.com
Hi!

This is just how Maven snapshot repos with timestamped artifacts work.
There's a file containing info on what the filename of the latest
snapshot is:

http://m2.neo4j.org/content/repositories/snapshots/org/neo4j/neo4j-kernel/1.8-SNAPSHOT/maven-metadata.xml

So when I ask Maven to refresh the dependencies in a project, this is
what I see (among other things):

Downloading:
http://m2.neo4j.org/content/groups/everything/org/neo4j/neo4j-kernel/1.8-SNAPSHOT/neo4j-kernel-1.8-20120601.184950-137.pom
12K downloaded (neo4j-kernel-1.8-20120601.184950-137.pom)

Downloading:
http://m2.neo4j.org/content/groups/everything/org/neo4j/neo4j-kernel/1.8-SNAPSHOT/neo4j-kernel-1.8-20120601.184950-137-tests.jar
1301K downloaded (neo4j-kernel-1.8-20120601.184950-137-tests.jar)

Obviously it found out which files to download.

/anders
Reply all
Reply to author
Forward
0 new messages