Grails : Failed to read artifact descriptor - maven

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.

Related

maven verify (sonar) fail to resolve defined argument

I am trying to verify using this parameter (which work for other projects)
mvn -X verify sonar:sonar -Drevision=4.0.10
Maven fails to download dependency because of the argument not resolved
Failed to execute goal on project APP-ear: Could not resolve
dependencies for project com.orginternational:APP-ear:ear:4.0.10:
Failed to collect dependencies at
com.orginternational:APP-was:war:4.0.10: Failed to read artifact
descriptor for com.orginternational:APP-was:war:4.0.10: Could not
transfer artifact com.orginternational:APP:pom:${revision} from/to en
(https://nexus.example.com/repository/maven-central/): Failed to
transfer file
https://nexus.example.com/repository/maven-central/com/orginternational/APP/$%7Brevision%7D/APP-$%7Brevision%7D.pom
with status code 400 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal on project APP-ear: Could not resolve dependencies for
project com.orginternational:APP-ear:ear:4.0.10: Failed to collect
dependencies at com.orginternational:APP-was:war:4.0.10
Any clue how to fix this please?

Failed to resolve imported Maven boms: Cannot resolve external dependency

I'm very new to grails and therefore I'm trying to do the following tutorial with IntelliJ: https://guides.grails.org/creating-your-first-grails-app/guide/index.html
After I cloned the repository, the README is asking me to run the following command:
gradle publishGuide
But I get the following error:
sam#sam-USMC:~/IdeaProjects/creating-your-first-grails-app$ gradle publishGuide
Cannot resolve reloading agent JAR: Failed to resolve imported Maven boms: Cannot resolve external dependency org.springframework.boot:spring-boot-dependencies:2.1.9.RELEASE because no repositories are defined.
Required by:
project :complete
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
* Where:
Build file '/home/sam/IdeaProjects/creating-your-first-grails-app/complete/build.gradle' line: 19
* What went wrong:
A problem occurred evaluating project ':complete'.
> org.codehaus.groovy.runtime.DefaultGroovyMethods.each([Ljava/lang/Object;Lgroovy/lang/Closure;)[Ljava/lang/Object;
* 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 1s
Line 19 of the build.gradle file looks like this:
apply plugin:"org.grails.grails-web"
Grateful for any help!

Grails failed dependencies from Travis CI

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.

Error resolving jhipster dependency in kotlin enabled project

My spring boot project which uses jhipster is having issue resolving one of its dependencies:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileKotlin'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve io.github.jhipster:jhipster-framework:2.0.6.
Required by:
project :
> Could not resolve io.github.jhipster:jhipster-framework:2.0.6.
> Could not get resource 'https://jcenter.bintray.com/io/github/jhipster/jhipster-framework/2.0.6/jhipster-framework-2.0.6.pom'.
> Could not GET 'https://jcenter.bintray.com/io/github/jhipster/jhipster-framework/2.0.6/jhipster-framework-2.0.6.pom'. Received status code 409 from server:
* 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 9s
3 actionable tasks: 3 executed
Could not GET 'https://jcenter.bintray.com/io/github/jhipster/jhipster-framework/2.0.6/jhipster-framework-2.0.6.pom'. Received status code 409 from server:
Enable Gradle 'offline mode' and sync project
3:21:15 PM: Task execution finished 'assemble'.
For some reason it's asking me to compile offline when it's unable to resolve the jhipster library. Any ideas?
I configured my project to compile with kotlin but I don't think this is the issue here.
If you go to jcenter and search jhipster-framework, https://bintray.com/bintray/jcenter/io.github.jhipster%3Ajhipster-framework, there isn't a version 2.0.6. The latest version is 2.0.8.

Gradle publishing error to maven; uploadArchives

I want to publish my library github to maven central, trying to push it with gradle uploadArchives
I always get the same error, i've almost search everywhere but there is no clear explanation to host your library in maven central.
Error is;
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':library:androidJavadocs'.
Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): 'C:\DynamicLayout-master\DynamicLayout-master\library\build\tmp\androidJavadocs\javadoc.options'
the log of terminal is here: http://pastebin.com/gKU2Kkpt
this is the lib that i try to publish it; https://github.com/Swisyn/DynamicLayout/tree/master

Resources