Unable to build the project locally #1093
-
Description - What happened? *Hi, I am trying to set up the edc-ce for development and I am facing some issues, namely I cannot build the project with gradle. As suggested on the README I created a PAT in github with the read:packages scope and added this on my ~/.gradle/gradle.properties but the on build I am getting the following error
I think my properties file is correct, so can it be that I should be given access to this registry? Expected Behavior *Successfully build the project Observed Behavior *Getting an 401 from the maven registry and then build fails Steps to ReproduceNo response Context InformationNo response Relevant log outputCould not determine the dependencies of task ':launchers:connectors:mds-ce:shadowJar'.
> Could not resolve all dependencies for configuration ':launchers:connectors:mds-ce:runtimeClasspath'.
> Could not resolve logging-house:logging-house-client:v1.2.0-alpha.1.
Required by:
project :launchers:connectors:mds-ce > project :launchers:common:base-mds
project :launchers:connectors:mds-ce > project :launchers:common:base-mds > project :extensions:mds-logginghouse-binder
> Could not resolve logging-house:logging-house-client:v1.2.0-alpha.1.
> Could not get resource 'https://maven.pkg.github.com/truzzt/mds-ap3/logging-house/logging-house-client/v1.2.0-alpha.1/logging-house-client-v1.2.0-alpha.1.pom'.
> Could not GET 'https://maven.pkg.github.com/truzzt/mds-ap3/logging-house/logging-house-client/v1.2.0-alpha.1/logging-house-client-v1.2.0-alpha.1.pom'. Received status code 401 from server: Unauthorized
> Could not resolve logging-house:logging-house-client:v1.2.0-alpha.1.
> Could not get resource 'https://maven.pkg.github.com/ids-basecamp/ids-infomodel-java/logging-house/logging-house-client/v1.2.0-alpha.1/logging-house-client-v1.2.0-alpha.1.pom'.
> Could not GET 'https://maven.pkg.github.com/ids-basecamp/ids-infomodel-java/logging-house/logging-house-client/v1.2.0-alpha.1/logging-house-client-v1.2.0-alpha.1.pom'. Received status code 401 from server: Unauthorized ScreenshotsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello, this is exactly the message that appears if you do not authenticate against GitHub correctly. The package you are looking for is also public so no need to get special access, but it is hosted at GitHub. You can even download it by clicking on the .pom file on the right without credentials: Here is a link to a discussion in another repository with further info and kind of the same problem, please have a look to see if there is a solution for you and your setup: It worked for me after following the README (which you already mentioned) and adding my GitHub account-name and a PAT with read:packages scope but I guess it also depends on your system setup, like I have the properties file in my users folder since I'm on windows ( |
Beta Was this translation helpful? Give feedback.
-
Hi @tmberthold, thanks for your response. Forgot to mention that I am trying to run this through IDEA. Apparently it seems that the ~/.gradle/gradle.properties is ignored and that's why the authentication fails. For now I just copied the variables on the project's gradle.properties and I am able to build it, with some errors on tests.
|
Beta Was this translation helpful? Give feedback.
Hi @tmberthold, thanks for your response. Forgot to mention that I am trying to run this through IDEA. Apparently it seems that the ~/.gradle/gradle.properties is ignored and that's why the authentication fails. For now I just copied the variables on the project's gradle.properties and I am able to build it, with some errors on tests.