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

Unable to build WPS 3.6.2 #268

Open
eduardhc opened this issue Dec 12, 2018 · 6 comments
Open

Unable to build WPS 3.6.2 #268

eduardhc opened this issue Dec 12, 2018 · 6 comments

Comments

@eduardhc
Copy link

Hi,
We are trying to build 52North/WPS (build 3.6.2 from tar.gz file) from sources, and we are encountering the following problems:

  • opengeo.org repository is not available any more: this is not a big deal, as per this we learnt it needs to be changed to another URL. We have updated the relevant files and it is OK.
  • geotools license problems: this is more of a problem, as we have been completely unable to resolve this. It doesn't matter what we try (with or without -Pwith-geotools, adding -Dlicense.skip, ...), we cannot finish the build without getting license check errors for the geotools-related packages. I don't know if we are missing something really stupid, or else the documentation is not up to date, but for now we are completely stuck.

Kind regards, and thank you in advance.

@bpross-52n
Copy link
Member

Hi, could you try to remove the OpenGEO repository instead of replacing the URL? Note that this has to be done in the root pom.xml as well as in the 52n-wps-io-geotools/pom.xml. If this should not work, please let me know your operating system, maven and Java version.

@eduardhc
Copy link
Author

Hi,
I've done so in the following 4 POM files:

  • ./52n-wps-io-impl/pom.xml
  • ./52n-wps-io/pom.xml
  • ./pom.xml
  • ./52n-wps-io-geotools/pom.xml

This solves the download problems, but I still have the license problem. This is the output I'm getting after a mvn clean install (CentOS 7.6.1810, Maven 3.0.5):

[ERROR] Failed to find Licenses for the following dependencies:
[ERROR] org.geotools:gt-api:jar:8.7:compile
[ERROR] org.geotools:gt-arcgrid:jar:8.7:compile
[ERROR] org.geotools:gt-coverage:jar:8.7:compile
[ERROR] org.geotools:gt-data:jar:8.7:compile
[ERROR] org.geotools:gt-epsg-hsql:jar:8.7:runtime
[ERROR] org.geotools:gt-geojson:jar:8.7:compile
[ERROR] org.geotools:gt-geotiff:jar:8.7:compile
[ERROR] org.geotools:gt-graph:jar:8.7:compile
[ERROR] org.geotools:gt-main:jar:8.7:compile
[ERROR] org.geotools:gt-metadata:jar:8.7:compile
[ERROR] org.geotools:gt-opengis:jar:8.7:compile
[ERROR] org.geotools:gt-referencing:jar:8.7:compile
[ERROR] org.geotools:gt-shapefile:jar:8.7:compile
[ERROR] org.geotools:gt-xml:jar:8.7:compile
[ERROR] org.geotools.ogc:net.opengis.fes:jar:8.7:compile
[ERROR] org.geotools.ogc:net.opengis.ows:jar:8.7:compile
[ERROR] org.geotools.ogc:net.opengis.wfs:jar:8.7:compile
[ERROR] org.geotools.ogc:org.w3.xlink:jar:8.7:compile
[ERROR] org.geotools.xsd:gt-xsd-core:jar:8.7:compile
[ERROR] org.geotools.xsd:gt-xsd-fes:jar:8.7:compile
[ERROR] org.geotools.xsd:gt-xsd-filter:jar:8.7:compile
[ERROR] org.geotools.xsd:gt-xsd-gml2:jar:8.7:compile
[ERROR] org.geotools.xsd:gt-xsd-gml3:jar:8.7:compile
[ERROR] org.geotools.xsd:gt-xsd-kml:jar:8.7:compile
[ERROR] org.geotools.xsd:gt-xsd-ows:jar:8.7:compile
[ERROR] org.geotools.xsd:gt-xsd-wfs:jar:8.7:compile
[ERROR] Try adding them to a 'licenseMapping' file.
[ERROR] A stub license-mapping.xml file containing the unresolved dependencies has been written to: /home/ehuguet/workspace/WPS/WPS-dev/target/license-mappings.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] 52North Web Processing Service .................... FAILURE [1:02.303s]
[INFO] 52North WPS Commons ............................... SKIPPED
[INFO] 52North WPS Input/Output API ...................... SKIPPED
[INFO] 52North WPS Input/Ouput Implementation ............ SKIPPED
[INFO] 52North WPS Geotools Input/Ouput Implementation ... SKIPPED
[INFO] 52North WPS Algorithm API ......................... SKIPPED
[INFO] 52North WPS Database .............................. SKIPPED
[INFO] 52North WPS Geotools Algorithm Implementations .... SKIPPED
[INFO] 52North WPS Algorithm Implementations ............. SKIPPED
[INFO] 52North WPS Server ................................ SKIPPED
[INFO] 52North WPS Client Library ........................ SKIPPED
[INFO] 52North Web Admin Interface ....................... SKIPPED
[INFO] 52North WPS R Processing Backend .................. SKIPPED
[INFO] 52North WPS Web Application ....................... SKIPPED
[INFO] 52North WPS Sextante Processing Backend ........... SKIPPED
[INFO] 52North WPS GRASS Processing Backend .............. SKIPPED
[INFO] 52North WPS ArcGIS Server Processing Backend ...... SKIPPED
[INFO] 52North WPS Moving Code Processing Backend ........ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:12.073s
[INFO] Finished at: Wed Dec 12 16:10:28 CET 2018
[INFO] Final Memory: 25M/699M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jasig.maven:maven-notice-plugin:1.0.5:check (check-licenses) on project 52n-wps-parent: Failed to find Licenses for 26 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

@bpross-52n
Copy link
Member

I confirm that the behaviour is a bit strange also on my CentOS test environment. I will investigate this.

@eduardhc
Copy link
Author

Thank you. Just some more info: I got rid of the license check problem the "hard way", by completely removing the reference to maven-notice-plugin from all the relevant pom files. Now I'm facing what it seems a dependency problem, here's the output:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] 52North Web Processing Service .................... SUCCESS [18.055s]
[INFO] 52North WPS Commons ............................... SUCCESS [8.160s]
[INFO] 52North WPS Input/Output API ...................... SUCCESS [2.821s]
[INFO] 52North WPS Input/Ouput Implementation ............ SUCCESS [2.933s]
[INFO] 52North WPS Geotools Input/Ouput Implementation ... SUCCESS [33.955s]
[INFO] 52North WPS Algorithm API ......................... SUCCESS [1.264s]
[INFO] 52North WPS Database .............................. SUCCESS [0.600s]
[INFO] 52North WPS Geotools Algorithm Implementations .... FAILURE [0.259s]
[INFO] 52North WPS Algorithm Implementations ............. SKIPPED
[INFO] 52North WPS Server ................................ SKIPPED
[INFO] 52North WPS Client Library ........................ SKIPPED
[INFO] 52North Web Admin Interface ....................... SKIPPED
[INFO] 52North WPS R Processing Backend .................. SKIPPED
[INFO] 52North WPS ArcGIS Server Processing Backend ...... SKIPPED
[INFO] 52North WPS GRASS Processing Backend .............. SKIPPED
[INFO] 52North WPS Moving Code Processing Backend ........ SKIPPED
[INFO] 52North WPS Sextante Processing Backend ........... SKIPPED
[INFO] 52North WPS Web Application ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:12.394s
[INFO] Finished at: Thu Dec 13 08:04:57 UTC 2018
[INFO] Final Memory: 44M/459M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project 52n-wps-algorithm-geotools: Could not resolve dependencies for project org.n52.wps:52n-wps-algorithm-geotools:jar:3.6.2: The following artifacts could not be resolved: org.geotools:gt-referencing:jar:8.7, org.geotools:gt-main:jar:8.7, org.geotools:gt-coverage:jar:8.7, javax.media:jai_core:jar:1.1.3, org.geotools:gt-api:jar:8.7, org.geotools:gt-opengis:jar:8.7: Could not find artifact org.geotools:gt-referencing:jar:8.7 in Apache (http://repo1.maven.org/maven2) -> [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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :52n-wps-algorithm-geotools

I'm getting this no matter if I include the "-Pwith-geotools" argument in command line or not. In fact, it seems it is including the geotools stuff in either case...

Thank you very much for your help, I'm a kind of a novice regarding Maven projects...

Kind regards

@bpross-52n
Copy link
Member

The issue might be the relatively old maven version. Using maven 3.5.4 the build worked for me on a clean CentOS 7 system.

@eduardhc
Copy link
Author

Ok, I'll give it a try. This will complicate things a bit, as this build needs to be done from inside a docker image, so we'll need to manually set up a newer version of Maven from inside the dockerfile...

Any chance that this gets fixed for older Maven releases...?

Regards.

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

No branches or pull requests

2 participants