Grails failed dependencies from Travis CI - maven

I have a Grails 2.5.6 project that runs tests on Travis CI, and a couple of days ago I started to get errors related to unresolved dependencies.
On my side the app didn't changed any dependencies, it seems something wrong is on the maven repo.
This is the log I'm getting:
| Error Resolve error obtaining dependencies: The following artifacts could not be resolved: cglib:cglib-nodep:jar:2.2.2, org.codehaus.groovy.modules.http-builder:http-builder:jar:0.5.2, org.grails:grails-datastore-test-support:jar:1.0-grails-2.4, de.odysseus.staxon:staxon:jar:1.2, mysql:mysql-connector-java:jar:5.1.43, org.javassist:javassist:jar:3.17.1-GA, org.mozilla:rhino:jar:1.7R4, com.bertramlabs.plugins:asset-pipeline-core:jar:2.5.5, org.quartz-scheduler:quartz:jar:2.2.1, net.sf.ehcache:ehcache:jar:2.9.0, com.sun.mail:javax.mail:jar:1.5.1, javax.mail:javax.mail-api:jar:1.5.1, org.hibernate:hibernate-validator:jar:5.1.3.Final, org.hibernate:hibernate-ehcache:jar:4.3.10.Final, org.jboss.logging:jboss-logging:jar:3.1.0.GA, org.grails:grails-datastore-gorm-hibernate4:jar:3.1.5.RELEASE, org.liquibase:liquibase-core:jar:2.0.5, net.sf.ehcache:ehcache-core:jar:2.4.8, joda-time:joda-time:jar:2.4:
Could not transfer artifact cglib:cglib-nodep:jar:2.2.2 from/to mavenCentral (https://repo1.maven.org/maven2/): Forbidden (403) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: The following artifacts could not be resolved: org.codehaus.groovy.modules.http-builder:http-builder:jar:0.5.2, de.odysseus.staxon:staxon:jar:1.2, mysql:mysql-connector-java:jar:5.1.43, org.javassist:javassist:jar:3.17.1-GA, org.mozilla:rhino:jar:1.7R4, com.bertramlabs.plugins:asset-pipeline-core:jar:2.5.5, org.quartz-scheduler:quartz:jar:2.2.1, net.sf.ehcache:ehcache:jar:2.9.0, com.sun.mail:javax.mail:jar:1.5.1, javax.mail:javax.mail-api:jar:1.5.1, org.hibernate:hibernate-validator:jar:5.1.3.Final, org.hibernate:hibernate-ehcache:jar:4.3.10.Final, org.jboss.logging:jboss-logging:jar:3.1.0.GA, org.grails:grails-datastore-gorm-hibernate4:jar:3.1.5.RELEASE, org.liquibase:liquibase-core:jar:2.0.5, net.sf.ehcache:ehcache-core:jar:2.4.8, joda-time:joda-time:jar:2.4:
Could not transfer artifact org.codehaus.groovy.modules.http-builder:http-builder:jar:0.5.2 from/to mavenCentral (https://repo1.maven.org/maven2/): Forbidden (403) (Use --stacktrace to see the full trace)
| Error Resolve error obtaining dependencies: The following artifacts could not be resolved: de.odysseus.staxon:staxon:jar:1.2, mysql:mysql-connector-java:jar:5.1.43, org.javassist:javassist:jar:3.17.1-GA, com.bertramlabs.plugins:asset-pipeline-core:jar:2.5.5, org.quartz-scheduler:quartz:jar:2.2.1, net.sf.ehcache:ehcache:jar:2.9.0, javax.mail:javax.mail-api:jar:1.5.1, net.sf.ehcache:ehcache-core:jar:2.4.8, joda-time:joda-time:jar:2.4:
Could not transfer artifact de.odysseus.staxon:staxon:jar:1.2 from/to mavenCentral (https://repo1.maven.org/maven2/): Forbidden (403) (Use --stacktrace to see the full trace)
| Error The following artifacts could not be resolved: org.apache.tomcat:tomcat-catalina-ant:jar:7.0.55, org.apache.tomcat.embed:tomcat-embed-jasper:jar:7.0.55, org.apache.tomcat.embed:tomcat-embed-logging-log4j:jar:7.0.55, org.apache.tomcat.embed:tomcat-embed-websocket:jar:7.0.55, org.eclipse.jdt.core.compiler:ecj:jar:3.7.2, org.apache.tomcat.embed:tomcat-embed-core:jar:7.0.55:
Could not transfer artifact org.apache.tomcat:tomcat-catalina-ant:jar:7.0.55 from/to mavenCentral (https://repo1.maven.org/maven2/): Forbidden (403)
| Run 'grails dependency-report' for further information.
I don't have any clues on what is going on or how to fix it. Any pointers are welcome.

This seems to be a recurring issue with Travis accessing Maven Central. See https://github.com/travis-ci/travis-ci/issues/6593 and https://github.com/travis-ci/travis-ci/issues/10055
The suggested workaround is to use sudo: true in your .travis.yml.

Related

Facing build issue while maven project

I am facing this issue while building maven project.
Could not transfer artifact itext-xtra:itext-xtra:pom:5.5.6 from/to mvn repository (https://mvnrepository.com/): authorization failed for https://mvnrepository.com/itext-xtra/itext-xtra/5.5.6/itext-xtra-5.5.6.pom, status: 403 Forbidden.
How can we fix this issue?

maven build fails with weird mockito dependecy attempted and failed

I'm trying to build and run the maven project as mentioned here https://github.com/gateio/gateapi-java/tree/master/example. As far as I can see the pom.xml doesn't even mention mockito but the maven build fails with
[ERROR] Failed to execute goal on project gateapi-demo: Could not resolve dependencies for project io.gate.apidemo:gateapi-demo:jar:1.0-SNAPSHOT: Failed to collect dependencies at io.gate:gate-api:jar:5.15.3: Failed to read artifact descriptor for io.gate:gate-api:jar:5.15.3: Could not transfer artifact io.gate:gate-api:pom:5.15.3 from/to mockito (https://mvnrepository.com/artifact/org.mockito/mockito-all): authorization failed for https://mvnrepository.com/artifact/org.mockito/mockito-all/io/gate/gate-api/5.15.3/gate-api-5.15.3.pom, status: 403 Forbidden -> [Help 1]
What is going on here?

Failed to collect dependencies at com.marklogic-datahub-jar:4.3.1

Failed to read artifact descriptor for com.marklogic:marklogic-data-hub:jar:4.3.1: Could not transfer artifact com.fasterxml.jackson:jackson-bom:pom:2.9.7 from/to jcenter (http://jcenter.bintray.com)
I am trying to build a project on STS and while doing the Maven build, I am receiving the same error.
Tried to update with forced snapshots and clean install. Had no luck resolving the issue.

Failed to read artifact descriptor for org.apache.Maven.plugins: Maven-surefire-plugin: jar:3.0.0-M3:

I have just created Maven project and running pom.xml as Maven test. But I am stuck due to this above error. FYI, there are no tests present, just I have created new Maven project. I tried all the option mentioned above by other users but it not working for me (Update, adding plugins etc.
Complete error: "Plugin org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:3.0.0-M3: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:3.0.0-M3 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]"

Grails : Failed to read artifact descriptor

While using EasyGrid plugins into BuildConfig.groovy I am not able to clean and run after adding plugins into BuildConfig.groovy. Facing such error message what to do to get rid of this pls.
changes in BuildConfig.groovy plugins {
// EasyGrid plugin http://grails.org/plugin/easygrid
compile ":easygrid:1.6.2"
// For minimum functionality you need: jquery-ui and the export plugins.
// Export Plugin http://grails.org/plugin/export
compile ":export:1.5"
// jQuery UI Plugin http://grails.org/plugin/jquery-ui
compile ":jquery-ui:1.10.3"
// For google visualization you also need google-visualization
// Google Visualization API Plugin http://grails.org/plugin/google-visualization
compile ":google-visualization:0.7"
Error message after change
Loading Grails 2.3.8
|Configuring classpath
Error |
Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails.plugins:easygrid:zip:1.6.2 (Use --stacktrace to see the full trace)
Error |
Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails.plugins:easygrid:zip:1.6.2 (Use --stacktrace to see the full trace)
Error |
Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails.plugins:easygrid:zip:1.6.2 (Use --stacktrace to see the full trace)
Error |
Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails.plugins:easygrid:zip:1.6.2 (Use --stacktrace to see the full trace)
Error |
Failed to read artifact descriptor for org.grails.plugins:easygrid:zip:1.6.2
|Run 'grails dependency-report' for further information.

Resources