52North / WPS

**DEPRECATED** The 52°North Web Processing Service enables the deployment of geo-processes on the web in a standardized way.
GNU General Public License v2.0
63 stars 55 forks source link

Unable to build WPS 3.6.2 #268

Open eduardhc opened 5 years ago

eduardhc commented 5 years ago

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:

Kind regards, and thank you in advance.

bpross-52n commented 5 years ago

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 commented 5 years ago

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

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 commented 5 years ago

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

eduardhc commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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.