Closed arunextasy closed 3 years ago
Hi @arunextasy, this is a GitHub authentication issue. Please ensure the following:
--settings ./settings.xml
Thanks @daniel-eder that worked. Now Facing build failure error. Below provided complete result.
D:\QRProject\Java\dgca-verifier-service-main5\dgca-verifier-service-main>mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ---------------< eu.europa.ec.dgc:dgca-verifier-service >--------------- [INFO] Building dgca-verifier-service latest [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ dgca-verifier-service --- [INFO] Deleting D:\QRProject\Java\dgca-verifier-service-main5\dgca-verifier-service-main\target [INFO] [INFO] --- maven-checkstyle-plugin:3.1.2:check (check) @ dgca-verifier-service --- [INFO] Starting audit... Audit done. [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- license-maven-plugin:2.0.0:download-licenses (download-licenses) @ dgca-verifier-service --- [WARNING] No license information available for: eu.europa.ec.dgc:dgc-lib:1.1.3 Sep 14, 2021 4:34:24 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: _octo=GH1.1.1835373815.1631617464; Path=/; Domain=github.com; Expires=Wed, 14 Sep 2022 11:04:24 GMT; Secure; SameSite=Lax". Invalid 'expires' attribute: Wed, 14 Sep 2022 11:04:24 GMT Sep 14, 2021 4:34:24 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 14 Sep 2022 11:04:24 GMT; HttpOnly; Secure; SameSite=Lax". Invalid 'expires' attribute: Wed, 14 Sep 2022 11:04:24 GMT Sep 14, 2021 4:34:27 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: _octo=GH1.1.904858243.1631617467; Path=/; Domain=github.com; Expires=Wed, 14 Sep 2022 11:04:27 GMT; Secure; SameSite=Lax". Invalid 'expires' attribute: Wed, 14 Sep 2022 11:04:27 GMT Sep 14, 2021 4:34:27 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 14 Sep 2022 11:04:27 GMT; HttpOnly; Secure; SameSite=Lax". Invalid 'expires' attribute: Wed, 14 Sep 2022 11:04:27 GMT Sep 14, 2021 4:34:31 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: _octo=GH1.1.625547193.1631617471; Path=/; Domain=github.com; Expires=Wed, 14 Sep 2022 11:04:31 GMT; Secure; SameSite=Lax". Invalid 'expires' attribute: Wed, 14 Sep 2022 11:04:31 GMT Sep 14, 2021 4:34:31 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 14 Sep 2022 11:04:31 GMT; HttpOnly; Secure; SameSite=Lax". Invalid 'expires' attribute: Wed, 14 Sep 2022 11:04:31 GMT Sep 14, 2021 4:34:43 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: _octo=GH1.1.562390916.1631617483; Path=/; Domain=github.com; Expires=Wed, 14 Sep 2022 11:04:43 GMT; Secure; SameSite=Lax". Invalid 'expires' attribute: Wed, 14 Sep 2022 11:04:43 GMT Sep 14, 2021 4:34:43 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 14 Sep 2022 11:04:43 GMT; HttpOnly; Secure; SameSite=Lax". Invalid 'expires' attribute: Wed, 14 Sep 2022 11:04:43 GMT Sep 14, 2021 4:34:50 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: _octo=GH1.1.1377034212.1631617490; Path=/; Domain=github.com; Expires=Wed, 14 Sep 2022 11:04:50 GMT; Secure; SameSite=Lax". Invalid 'expires' attribute: Wed, 14 Sep 2022 11:04:50 GMT Sep 14, 2021 4:34:50 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 14 Sep 2022 11:04:50 GMT; HttpOnly; Secure; SameSite=Lax". Invalid 'expires' attribute: Wed, 14 Sep 2022 11:04:50 GMT Sep 14, 2021 4:34:51 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: _octo=GH1.1.1589514059.1631617490; Path=/; Domain=github.com; Expires=Wed, 14 Sep 2022 11:04:50 GMT; Secure; SameSite=Lax". Invalid 'expires' attribute: Wed, 14 Sep 2022 11:04:50 GMT Sep 14, 2021 4:34:51 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 14 Sep 2022 11:04:50 GMT; HttpOnly; Secure; SameSite=Lax". Invalid 'expires' attribute: Wed, 14 Sep 2022 11:04:50 GMT [WARNING] There were 1 download errors - check the warnings above [INFO] [INFO] --- jacoco-maven-plugin:0.8.6:prepare-agent (default) @ dgca-verifier-service --- [INFO] argLine set to -javaagent:C:\Users\VVSA\.m2\repository\org\jacoco\org.jacoco.agent\0.8.6\org.jacoco.agent-0.8.6-runtime.jar=destfile=D:\QRProject\Java\dgca-verifier-service-main5\dgca-verifier-service-main\target\jacoco.exec [INFO] [INFO] --- spring-boot-maven-plugin:2.4.4:build-info (default) @ dgca-verifier-service --- [INFO] [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ dgca-verifier-service --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Using 'UTF-8' encoding to copy filtered properties files. [INFO] Copying 7 resources [INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ dgca-verifier-service --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 17 source files to D:\QRProject\Java\dgca-verifier-service-main5\dgca-verifier-service-main\target\classes [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 45.801 s [INFO] Finished at: 2021-09-14T16:34:52+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project dgca-verifier-service: Fatal error compiling: invalid target release: 11 -> [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/MojoExecutionException
@arunextasy this project is set up to use java 11 (in pom.xml). Make sure maven is running with Java 11 (i.e. install it if not present and set JAVA_HOME correctly). Please note that this is a general maven issue and not project specific, so we don't really have the resources to support this. Please see https://stackoverflow.com/questions/63154787/maven-is-not-using-java-11-fatal-error-compiling-invalid-target-release-11 for further information
thanks @daniel-eder It worked. Can you please help me with https://github.com/eu-digital-green-certificates/dgca-verifier-service/issues/64 issue to work with eclipse.
I've assigned #64 to one of our devs - i did not look into it yet, but as there is no similar issue here yet, I suspect this is an eclipse specific issue. Until someone gets back on your ticket, please try a Google/stack overflow search for the error message, there might be a general solution.
@daniel-eder Can you please mention which IDE and version your team is using for accessing this code?
mvn clean install gives error when trying in windows 10. Could not resolve dependencies for project eu.europa.ec.dgc:dgca-verifier-service:jar:latest: Failed to collect dependencies at eu.europa.ec.dgc:dgc-lib:jar:1.1.3: Failed to read artifact descriptor for eu.europa.ec.dgc:dgc-lib:jar:1.1.3: Could not transfer artifact eu.europa.ec.dgc:dgc-lib:pom:1.1.3 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.1.3/dgc-lib-1.1.3.pom 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
Below provided screenshot of settings.xml username and token as well.