Fraunhofer-AISEC / ids-clearing-house-service

This is an implementation of the IDS Clearing House
Apache License 2.0
0 stars 11 forks source link

Gradle compilation error due to dependencies for "clearing-house-processors" #31

Closed aramirezarsys closed 9 months ago

aramirezarsys commented 9 months ago

Gradle compilation error due to dependencies for "clearing-house-processors", following steps have been taking into account:

git clone https://github.com/Fraunhofer-AISEC/ids-clearing-house-service;
cd ids-clearing-house-service/clearing-house-processors;
./gradlew clean build;

The error is depicted as follow:

# ./gradlew clean build;
Downloading https://services.gradle.org/distributions/gradle-7.5.1-bin.zip
...........10%............20%...........30%............40%...........50%............60%...........70%............80%...........90%............100%

Welcome to Gradle 7.5.1!

Here are the highlights of this release:
 - Support for Java 18
 - Support for building with Groovy 4
 - Much more responsive continuous builds
 - Improved diagnostics for dependency resolution

For more details see https://docs.gradle.org/7.5.1/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)
> Task :compileKotlin FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':compileKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve de.fraunhofer.iais.eis.ids.infomodel:java:4.1.3.
     Required by:
         project :
         project : > de.fhg.aisec.ids:camel-idscp2:0.17.0
         project : > de.fhg.aisec.ids:camel-idscp2:0.17.0 > de.fhg.aisec.ids:idscp2-app-layer:0.17.0
      > Could not resolve de.fraunhofer.iais.eis.ids.infomodel:java:4.1.3.
         > Could not get resource 'https://maven.iais.fraunhofer.de/artifactory/eis-ids-public/de/fraunhofer/iais/eis/ids/infomodel/java/4.1.3/java-4.1.3.pom'.
            > Could not GET 'https://maven.iais.fraunhofer.de/artifactory/eis-ids-public/de/fraunhofer/iais/eis/ids/infomodel/java/4.1.3/java-4.1.3.pom'.
               > No route to host (Host unreachable)
   > Could not resolve de.fraunhofer.iais.eis.ids:infomodel-serializer:4.1.3.
     Required by:
         project :
      > Could not resolve de.fraunhofer.iais.eis.ids:infomodel-serializer:4.1.3.
         > Could not get resource 'https://maven.iais.fraunhofer.de/artifactory/eis-ids-public/de/fraunhofer/iais/eis/ids/infomodel-serializer/4.1.3/infomodel-serializer-4.1.3.pom'.
            > Could not GET 'https://maven.iais.fraunhofer.de/artifactory/eis-ids-public/de/fraunhofer/iais/eis/ids/infomodel-serializer/4.1.3/infomodel-serializer-4.1.3.pom'.
               > No route to host (Host unreachable)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 38s
2 actionable tasks: 1 executed, 1 up-to-date

I have done it with current master commit and with tag: v0.10.1 and both of them failed My technical system specifications are:

# java -version
openjdk version "11.0.21" 2023-10-17
OpenJDK Runtime Environment (build 11.0.21+9-post-Ubuntu-0ubuntu122.04)
OpenJDK 64-Bit Server VM (build 11.0.21+9-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)
# echo $DISTRIB_DESCRIPTION
Ubuntu 22.04.3 LTS
kragall commented 9 months ago

Apparently, the idscp2 library (https://github.com/industrial-data-space/idscp2-jvm) fails to build. The issue seems to be that the infomodel-serializer repository is offline. This issue was solved in a new version of the idscp2 library, so I updated the version and added a repository with backup version of the infomodel-serializer.

Please check if this solves your issue

aramirezarsys commented 9 months ago

Ok, I have checked and it compiles right now, thanks