Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Build/Install Fail #50

Open
xros opened this issue Jun 10, 2015 · 4 comments
Open

Build/Install Fail #50

xros opened this issue Jun 10, 2015 · 4 comments
Assignees
Labels

Comments

@xros
Copy link

xros commented Jun 10, 2015

I followed the reference from there , on ubuntu 14.04 x64

  1. download the project from github 2) mvn install (mvn2 actually)

But error jumped out when building

Downloading: http://oss.sonatype.org/content/repositories/postgis-releases/com/sun/jersey/jersey-bundle/1.8/je[8/1821]
dle-1.8.pom
[INFO] Unable to find resource 'com.sun.jersey:jersey-bundle:pom:1.8' in repository sonatype-postgis-releases (http://
oss.sonatype.org/content/repositories/postgis-releases)
Downloading: http://repo1.maven.org/maven2/com/sun/jersey/jersey-bundle/1.8/jersey-bundle-1.8.pom
21K downloaded  (jersey-bundle-1.8.pom)
Downloading: http://maven.glassfish.org/content/groups/glassfish/com/sun/jersey/jersey-project/1.8/jersey-project-1.8.
pom
178b downloaded  (jersey-project-1.8.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '81ffbd1712afe8cdf138b570c0fc9934742c33c1'; remote = '<html>
<head><title>301' - RETRYING
Downloading: http://maven.glassfish.org/content/groups/glassfish/com/sun/jersey/jersey-project/1.8/jersey-project-1.8.
pom
178b downloaded  (jersey-project-1.8.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '81ffbd1712afe8cdf138b570c0fc9934742c33c1'; remot
e = '<html>
<head><title>301' - IGNORING
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot build project dependency tree for project: MavenProject: org.n52.oss:service:0.6 @ /root/OpenSensorSearc
h/service/pom.xml

Not a v4.0.0 POM. for project com.sun.jersey:jersey-project at /root/.m2/repository/com/sun/jersey/jersey-project/1.8/
jersey-project-1.8.pom
[INFO] ------------------------------------------------------------------------

When fetching POM from https://maven.java.net/content/groups/glassfish/com/sun/jersey/jersey-project/1.8/jersey-project-1.8.pom . In web browser this page returns a 404 page.

But in your folder of your PC, after mvn install , actually you've gotten a file

file jersey-project-1.8.pom looks like:

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

Obviously this is not a XML file. And the building procedure has been stopped from here.

How to fix this? Or any ideas about the https://maven.java.net/content/groups/glassfish/com/sun/jersey/jersey-project/1.8/jersey-project-1.8.pom ?

@xros
Copy link
Author

xros commented Jun 10, 2015

As if the problem is solved. I replace the file with this one http://download.java.net/maven/2/com/sun/jersey/jersey-project/1.8/jersey-project-1.8.pom I think there should be a fix to this.

But I still had this error if that was replaced.

Downloading: http://oss.sonatype.org/content/repositories/postgis-releases/org/codehaus/woodstox/stax2-api/3.1.1/stax2
-api-3.1.1.pom
[INFO] Unable to find resource 'org.codehaus.woodstox:stax2-api:pom:3.1.1' in repository sonatype-postgis-releases (h$
tp://oss.sonatype.org/content/repositories/postgis-releases)
Downloading: http://repo1.maven.org/maven2/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1.pom
1K downloaded  (stax2-api-3.1.1.pom)
[INFO] Parsing Dependencies for: SOR common
[INFO] Parsing Dependencies for: Sensor Observable Registry
[ERROR] Failed to find Licenses for the following dependencies: 
[ERROR]         com.sun.jersey:jersey-core:jar:1.8:compile
[ERROR]         javax.ws.rs:jsr311-api:jar:1.1.1:compile
[ERROR]         org.n52.sensorweb:52n-xml-kml-v220:jar:1.1.6-SNAPSHOT:compile
[ERROR]         org.n52.sensorweb:52n-xml-sir-v032:jar:1.1.6-SNAPSHOT:compile
[ERROR]         org.n52.sensorweb:52n-xml-sor-v031:jar:1.1.6-SNAPSHOT:compile
[ERROR]         org.n52.sensorweb:52n-xml-sos-v100:jar:1.1.6-SNAPSHOT:compile
[ERROR]         org.n52.sensorweb:52n-xml-sps-v100:jar:1.1.6-SNAPSHOT:compile
[ERROR]         org.n52.sensorweb:52n-xml-wrs-v101:jar:1.1.6-SNAPSHOT:compile
[ERROR] Try adding them to a 'licenseMapping' file.
[ERROR] A stub license-mapping.xml file containing the unresolved dependencies has been written to: /root/OpenSensorSe
arch/target/license-mappings.xml
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Failed to find Licenses for 8 artifacts
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] Total time: 3 minutes 52 seconds
[INFO] Finished at: Wed Jun 10 05:39:26 UTC 2015
[INFO] Final Memory: 30M/266M
[INFO] ------------------------------------------------------------------------

@nuest
Copy link

nuest commented Jun 10, 2015

Can you post your maven settings file, please?

Also, please update the code and run mvn clean install again.

@xros
Copy link
Author

xros commented Jun 10, 2015

Actually there is not a settings.xml in the folder /root/.m2/ . And I have not change the default settings yet. It's a brand-new mvn.
Yet I have found this https://maven.apache.org/settings.html , but I haven't known what to change to fix this.

I did
mvn clean install And another error came out:

[INFO] Parsing Dependencies for: Open Sensor Search Parent Project                                            [31/138]
[INFO] Parsing Dependencies for: Open Sensor Search common classes
[INFO] Parsing Dependencies for: SIR JSON Bindings
[INFO] Parsing Dependencies for: SIR common classes
[WARNING] Missing POM for org.n52.sensorweb:52n-xml-wrs-v101:jar:1.1.6-SNAPSHOT
[WARNING] Missing POM for org.n52.sensorweb:52n-xml-sir-v032:jar:1.1.6-SNAPSHOT
[WARNING] Missing POM for org.n52.sensorweb:52n-xml-sor-v031:jar:1.1.6-SNAPSHOT
[WARNING] Missing POM for org.n52.sensorweb:52n-xml-sps-v100:jar:1.1.6-SNAPSHOT
[WARNING] Missing POM for org.n52.sensorweb:52n-xml-sos-v100:jar:1.1.6-SNAPSHOT
[WARNING] Missing POM for org.n52.sensorweb:52n-xml-kml-v220:jar:1.1.6-SNAPSHOT
[WARNING] Failed to find license info for: org.n52.sensorweb:52n-xml-wrs-v101:jar:1.1.6-SNAPSHOT:compile
[WARNING] Failed to find license info for: org.n52.sensorweb:52n-xml-sir-v032:jar:1.1.6-SNAPSHOT:compile
[WARNING] Failed to find license info for: org.n52.sensorweb:52n-xml-sor-v031:jar:1.1.6-SNAPSHOT:compile
[WARNING] Failed to find license info for: org.n52.sensorweb:52n-xml-sps-v100:jar:1.1.6-SNAPSHOT:compile
[WARNING] Failed to find license info for: org.n52.sensorweb:52n-xml-sos-v100:jar:1.1.6-SNAPSHOT:compile
[WARNING] Failed to find license info for: org.n52.sensorweb:52n-xml-kml-v220:jar:1.1.6-SNAPSHOT:compile
[INFO] Parsing Dependencies for: Open Sensor Search Service
[INFO] Parsing Dependencies for: Open Sensor Search Website
[INFO] Parsing Dependencies for: AR Open Sensor Search Service
[INFO] Parsing Dependencies for: SOR common
[INFO] Parsing Dependencies for: Sensor Observable Registry
[ERROR] Failed to find Licenses for the following dependencies: 
[ERROR]         org.n52.sensorweb:52n-xml-kml-v220:jar:1.1.6-SNAPSHOT:compile
[ERROR]         org.n52.sensorweb:52n-xml-sir-v032:jar:1.1.6-SNAPSHOT:compile
[ERROR]         org.n52.sensorweb:52n-xml-sor-v031:jar:1.1.6-SNAPSHOT:compile
[ERROR]         org.n52.sensorweb:52n-xml-sos-v100:jar:1.1.6-SNAPSHOT:compile
[ERROR]         org.n52.sensorweb:52n-xml-sps-v100:jar:1.1.6-SNAPSHOT:compile
[ERROR]         org.n52.sensorweb:52n-xml-wrs-v101:jar:1.1.6-SNAPSHOT:compile
[ERROR] Try adding them to a 'licenseMapping' file.
[ERROR] A stub license-mapping.xml file containing the unresolved dependencies has been written to: /root/OpenS[2/138]
arch/target/license-mappings.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Open Sensor Search Parent Project ................. FAILURE [5.057s]
[INFO] Open Sensor Search common classes ................. SKIPPED
[INFO] SIR JSON Bindings ................................. SKIPPED
[INFO] SIR common classes ................................ SKIPPED
[INFO] SOR common ........................................ SKIPPED
[INFO] Sensor Observable Registry ........................ SKIPPED
[INFO] Open Sensor Search Service ........................ SKIPPED
[INFO] Open Sensor Search Website ........................ SKIPPED
[INFO] AR Open Sensor Search Service ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.990s
[INFO] Finished at: Wed Jun 10 17:12:11 UTC 2015
[INFO] Final Memory: 13M/170M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jasig.maven:maven-notice-plugin:1.0.6:check (check-notice) on project parent: Faile
d to find Licenses for 6 artifacts -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Just as it indicated, "[ERROR] Failed to find Licenses for the following dependencies: ", there has something to do with the Licenses. This is different from the previous jersey error but it's still about the Licences.

This is the same error as http://sensorweb.forum.52north.org/license-error-about-SIR-quot-mvn-install-quot-td4028057.html .

@nuest nuest added the question label Jun 15, 2015
@nuest nuest self-assigned this Jun 15, 2015
@nuest
Copy link

nuest commented Jun 15, 2015

Can you please attach the contents of the file mentioned in the error logs:

[ERROR] A stub license-mapping.xml file containing the unresolved dependencies has been written to: /root/OpenS[2/138] arch/target/license-mappings.xml

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants