Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build due to missing dependency #14

Closed
zeridon opened this issue May 11, 2021 · 3 comments
Closed

Cannot build due to missing dependency #14

zeridon opened this issue May 11, 2021 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@zeridon
Copy link
Contributor

zeridon commented May 11, 2021

Describe the bug

While attempting to build the gateway the build fails with unresolved dependency

[WARNING] Could not transfer metadata eu.europa.ec.dgc:dgc-lib:1.0.0-SNAPSHOT/maven-metadata.xml from/to dgc-github (https://maven.pkg.github.com/eu-digital-green-certificates/*): authentication failed for https://maven.pkg.github.com/eu-digital-green-certificates/*/eu/europa/ec/dgc/dgc-lib/1.0.0-SNAPSHOT/maven-metadata.xml, status: 401 Unauthorized
[WARNING] eu.europa.ec.dgc:dgc-lib:1.0.0-SNAPSHOT/maven-metadata.xmlfailed to transfer from https://maven.pkg.github.com/eu-digital-green-certificates/* during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of dgc-github has elapsed or updates are forced. Original error: Could not transfer metadata eu.europa.ec.dgc:dgc-lib:1.0.0-SNAPSHOT/maven-metadata.xml from/to dgc-github (https://maven.pkg.github.com/eu-digital-green-certificates/*): authentication failed for https://maven.pkg.github.com/eu-digital-green-certificates/*/eu/europa/ec/dgc/dgc-lib/1.0.0-SNAPSHOT/maven-metadata.xml, status: 401 Unauthorized
Downloading from dgc-github: https://maven.pkg.github.com/eu-digital-green-certificates/*/eu/europa/ec/dgc/dgc-lib/1.0.0-SNAPSHOT/dgc-lib-1.0.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.589 s
[INFO] Finished at: 2021-05-11T07:56:41Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project dgc-cli: Could not resolve dependencies for project eu.europa.ec.dgc.cli:dgc-cli:jar:latest: Failed to collect dependencies at eu.europa.ec.dgc:dgc-lib:jar:1.0.0-SNAPSHOT: Failed to read artifact descriptor for eu.europa.ec.dgc:dgc-lib:jar:1.0.0-SNAPSHOT: Could not transfer artifact eu.europa.ec.dgc:dgc-lib:pom:1.0.0-SNAPSHOT from/to dgc-github (https://maven.pkg.github.com/eu-digital-green-certificates/*): authentication failed for https://maven.pkg.github.com/eu-digital-green-certificates/*/eu/europa/ec/dgc/dgc-lib/1.0.0-SNAPSHOT/dgc-lib-1.0.0-SNAPSHOT.pom, status: 401 Unauthorized -> [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

Expected behaviour

Successfull build with mvn clean install

Steps to reproduce the issue

  • Clone repo
  • docker run --rm -ti -v /sources/dgc/dgc-cli:/source maven:3-adoptopenjdk-11 /bin/bash
  • mvn clean install

Technical details

  • Host Machine OS (Windows/Linux/Mac): linux with docker container maven: 3-adoptopenjdk-11

Possible Fix

Additional context

@zeridon zeridon added the bug Something isn't working label May 11, 2021
@f11h
Copy link
Contributor

f11h commented May 11, 2021

please see my comment at your other issue: eu-digital-green-certificates/dgc-gateway#58 (comment)

@f11h f11h added question Further information is requested and removed bug Something isn't working labels May 11, 2021
@f11h f11h self-assigned this May 11, 2021
@zeridon
Copy link
Contributor Author

zeridon commented May 11, 2021

Please update documentation to explicitly mention this. Users are not expected to be intricately familiar with non-public repos and the way to authenticate to them.

On the other hand as this is public code all instructions should be minimally available.

Can assist with PR if needed

@f11h
Copy link
Contributor

f11h commented May 11, 2021

Thank you for your PR!

I've merged it and will close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants