Facing build issue while maven project - spring

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?

Related

Build failed, project not deployed

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project maven-web-application: Failed to deploy artifacts: Could not transfer artifact com.mt:maven-web-application:war:2.0.7-20230110.202313-1 from/to nexus (http://172.31.7.102:8081/repository/maven-snapshots/): authentication failed for http://172.31.7.102:8081/repository/maven-snapshots/com/mt/maven-web-application/2.0.7-SNAPSHOT/maven-web-application-2.0.7-20230110.202313-1.war, status: 401 Unauthorized
I have double-checked my distribution management on my Pom file and settings.xml on both jenkins and maven and everything is 100% fine. It builds successfully on my local server but won't build on my jenkins pipeline. I have been on this issue for the last 4 days. I need help
I have double-checked my distribution management on my Pom file and settings.xml on both jenkins and maven and everything is 100% fine. It builds successfully on my local server but won't build on my jenkins pipeline. I have been on this issue for the last 4 days. please, I need help

Failed to download packages from Maven repository for Maven project in the IntelliJ

I've tried to download package in pom.xml file in the Maven but it is always failed to download.
Got the error message:
Could not transfer artifact org.sonatype.oss:oss-parent:pom:5 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/5/oss-parent-5.pom
I've tried to check the issue, go to the: File > Settings > Build, Execution, Deployment > Build Tools >Maven >Repositories
URL: https://repo.maven.apache.org.maven2
Type: Remote
Updated: Error
I am not sure if the issue in the Repositories causes issue that can't download package from maven.
Could you show me to fix it?
I'm using IntelliJ Idea 2021.1.1, created maven project.

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.

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.

Springboot,maven dependencies error

I have a sample spring boot app to deploy in my system which is throwing me following error.I tried cleaning up the maven files from cache still struck with the issue. Can anyone help me with this. Following is the error I Get
Project build error: Non-resolvable parent POM for com.broad.gateway:com-
gateway:0.0.1-SNAPSHOT: Could not transfer artifact
org.springframework.boot:spring-boot-starter-parent:pom:2.0.2.RELEASE from/to
central (https://repo.maven.apache.org/maven2): connect timed out and
'parent.relativePath' points at no local POM
You are getting connection timeout error. This generally happens when you are behind a corporate firewall and your company restricts connection to maven central or any other repos. Try defining your company specific nexus repository under pom.xml in repositories section.

Resources