neo4j-spatial build problems: "Cannot find parent: net.java:jvnet-parent" due to bad SSL certificate at maven.glassfish.org [INFO]

858 views
Skip to first unread message

Jonathan Winterflood D

unread,
Oct 31, 2012, 3:01:55 PM10/31/12
to ne...@googlegroups.com
This is informational more than a query.

I was trying to build the latest neo4j-spatial from the git master, following the readme instructions:

git clone https://github.com/neo4j/spatial.git
cd spatial
mvn clean package

My maven repository was clean (deleted it to be sure), and I have no local maven configuration

But I got strange errors in a dependency during the build:

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

It turns out that the maven repository at http://maven.glassfish.org redirects to https://, which then tries to authenticate with a certificate that is valid only for the domain "maven.java.net".

This causes the jvnet-parent-1.pom to be saved in the repository to be the raw html page for the original 301: Moved used to redirect from http to https


I "fixed" the problem by disabling maven.glassfish.net in my hosts file, but there may well be a way of either [link: deactivating that repo in maven configuration] or adding an exception to the certificate handling (?) .

Thought someone might benefit from the info.


Regards,
Jonathan

Peter Neubauer

unread,
Oct 31, 2012, 3:53:49 PM10/31/12
to ne...@googlegroups.com
Jonathan,
if you fix the pom and issue a pull request, we are happy to merge it in! Thanks for the pointer!

Cheers,

/peter neubauer

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

Neo4j 1.8 GA - http://www.dzone.com/links/neo4j_18_release_fluent_graph_literacy.html




--
 
 

Message has been deleted
Message has been deleted

Axel Morgner

unread,
Jan 3, 2013, 5:01:07 PM1/3/13
to ne...@googlegroups.com
Hi,

this is probably caused by a but in Maven [1].

One solution is to either downgrade to 2.2.0 or upgrade to 3.0x. After down-/upgrading, you have to clear your local Maven-Repo (rm -rf  ~/.m2/repository/*) because some files are probably be broken, and try again.

That did the trick for me.

Cheers
Axel


[1] http://jira.codehaus.org/browse/MNG-4838

Am 06.11.2012 15:38, schrieb Jonathan Winterflood:

I'm not sure it would belong in our POM, since the repository isn't added by neo4j-spatial, but by com.sun.jersey:jersey-client (in reality, com.sun.jersey:jersey-project, it's parent)

In any case, I tried, and failed to disable the repository in the POM with:

    <repository>
        <id>glassfish-repository</id>
        <name>Repository for Glassfish</name>
        <url>http://maven.glassfish.org/content/groups/glassfish</url>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>

I did manage to use the settings.xml though:

<settings>
  <mirrors>
    <mirror>
      <id>hide-glassfish</id>
      <name>Hide Glassfish</name>
      <url>http://repo1.maven.org</url>
      <mirrorOf>glassfish-repository</mirrorOf>
    </mirror>
  </mirrors>
 
</settings>

Cheers,
Jonathan
--
 
 


--

Axel Morgner · ax...@morgner.de · @amorgner

c/o Morgner UG · Hanauer Landstr. 291a · 60314 Frankfurt · Germany
phone: +49 151 40522060 · skype: axel.morgner

structr - Open Source CMS and Web Framework based on Neo4j: http://structr.org - Winner of 2012 Graphie Award for Most Innovative Open Source Graph Application
structr Mailing List and Forum hosted at Google Groups
Graph Database Usergroup "graphdb-frankfurt", sponsored by Neo4j: http://www.meetup.com/graphdb-frankfurt
Das Sport-Sharing-Netzwerk des Deutschen Olympischen Sportbundes (DOSB): https://splink.de - Winner of 2012 Graphie Award for Most Innovative Social Graph Application

Axel Morgner

unread,
Jan 3, 2013, 6:52:28 PM1/3/13
to ne...@googlegroups.com

this is probably caused by a but in Maven [1].

... or bug. :-)

--
 
 

Eugeny Kozhanov

unread,
Feb 22, 2013, 5:28:39 AM2/22/13
to ne...@googlegroups.com
Yes, maven v3 solve problem. Thank you very much!
Reply all
Reply to author
Forward
0 new messages