cancel
Showing results for 
Search instead for 
Did you mean: 

Can't build Nuxeo source: Nuxeo WebEngine JAX-RS (jersey-server error)

Lregnault_
Champ in-the-making
Champ in-the-making

Hi everyone,

Thanks for your time, as you can see in the title I got an issue in order to build nuxeo sources. I have follow the online documentation on doc.nuxeo.com. I ran into fews problems and the only differences from the doc is me running this:

>python clone.py release-5.5

Instead of:

>python clone.py

cause the second crash with errors.

And when i run:

>mvn -Dmaven.test.skip=true install -Paddons

I get those errors:

[INFO] Building Nuxeo WebEngine JAX-RS
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [buildnumber:create {execution: default}]
[INFO] Storing buildNumber: 20120405-150730 at timestamp: 1333631250875
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: null:jersey-server:jar:null

Reason: Cannot find parent: com.sun.jersey:jersey-project for project: null:jers
ey-server:jar:null for project null:jersey-server:jar:null

Thanks for reading, I hope someone could help me. If anyone need futher informations, feel free to ask.

Regards, LR

1 ACCEPTED ANSWER

Not applicable

This is due to the glassfish repository, which is hardcoded in the jerser-server-1.1.5.pom, returning a junk artifact (some HTML with a nginx message instead of a real pom).

You can work around this by adding this to the "mirrors" section of your settings.xml:

<mirror>
    <id>glassfish-mirror</id>
    <name>glassfish mirror</name>
    <url>http://maven.nuxeo.org/nexus/content/repositories/public-releases</url>
    <mirrorOf>glassfish-repository</mirrorOf>
</mirror>

and removing all "com.sun.jersey" artifacts from your local repository (rm -rf ~/.m2/repository/com/sun/jersey)

View answer in original post

6 REPLIES 6

Lregnault_
Champ in-the-making
Champ in-the-making

This is the full trace error

Julien_Carsique
Elite Collaborator
Elite Collaborator

Hello,

Maybe you got a corrupted file (i.e. during a download issue).
Could you look at C:\Documents and Settings\lregnault\.m2\repository\com\sun\jersey\jersey-project\1.1.5\jersey-project-1.1.5.pom and compare it with its online version?
If it looks weird, simply delete it and rebuild. Note you can restart the build from the failing module:

mvn -Dmaven.test.skip=true install -Paddons -rf nuxeo-webengine/nuxeo-webengine-jaxrs

Not applicable

This is due to the glassfish repository, which is hardcoded in the jerser-server-1.1.5.pom, returning a junk artifact (some HTML with a nginx message instead of a real pom).

You can work around this by adding this to the "mirrors" section of your settings.xml:

<mirror>
    <id>glassfish-mirror</id>
    <name>glassfish mirror</name>
    <url>http://maven.nuxeo.org/nexus/content/repositories/public-releases</url>
    <mirrorOf>glassfish-repository</mirrorOf>
</mirror>

and removing all "com.sun.jersey" artifacts from your local repository (rm -rf ~/.m2/repository/com/sun/jersey)

Lregnault_
Champ in-the-making
Champ in-the-making

Thanks for your help. I will try this. I get back to you.

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

Please use comment for a comment an answer to answer to the question. This is important for the following you tell.

Lregnault_
Champ in-the-making
Champ in-the-making

Hello,

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.