Failed to collect dependencies at com.sun.xml.bind:jaxb-xjc:jar:2.1.10.1 - maven

I have a imported a Maven project into Eclipse.
I am getting an error that says the following when I right click on the project, click "Run As", select "Maven build...", and then enter "clean install":
Failed to collect dependencies at com.sun.xml.bind:jaxb-xjc:jar:2.1.10.1 -> com.sun.xml.bind:jaxb-impl:jar:2.1.10.1: Failed to read artifact descriptor for com.sun.xml.bind:jaxb-impl:jar:2.1.10.1: Could not transfer artifact com.sun.xml.bind:jaxb-impl:pom:2.1.10.1 from/to Artifactory (https://jfrog.inside.ups.com:443/artifactory/OPT_UPSAPA_maven_virtual/): authorization failed for https://jfrog.inside.ups.com:443/artifactory/OPT_UPSAPA_maven_virtual/com/sun/xml/bind/jaxb-impl/2.1.10.1/jaxb-impl-2.1.10.1.pom, status: 403 Forbidden ->
I am connected to a VPN and am able to access the JFrog link where the OPT_UPSAPA_maven_virtual artifact is located.

Related

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 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]"

Failed to collect dependencies maven

getting this error when trying to maven install
Failed to execute goal
org.apache.maven.plugins:maven-jar-plugin:3.1.2:jar (default-jar) on
project AbacusLibraryServer: Execution default-jar of goal
org.apache.maven.plugins:maven-jar-plugin:3.1.2:jar failed: Plugin
org.apache.maven.plugins:maven-jar-plugin:3.1.2 or one of its
dependencies could not be resolved: Failed to collect dependencies at
org.apache.maven.plugins:maven-jar-plugin:jar:3.1.2 ->
org.apache.maven.shared:file-management:jar:3.0.0: Failed to read
artifact descriptor for
org.apache.maven.shared:file-management:jar:3.0.0: Could not transfer
artifact org.apache.maven.shared:file-management:pom:3.0.0 from/to
central (https://repo.maven.apache.org/maven2): Transfer failed for
https://repo.maven.apache.org/maven2/org/apache/maven/shared/file-management/3.0.0/file-management-3.0.0.pom:
Received fatal alert: protocol_version -> [Help 1]
i can see a lot of .lastUpdated files in maven.
tried using maven clean and then maven install.
i tried deleting all these files and doing maven force update using eclipse not working.
what is working is downloading every jar file one by one from maven repository already done for around 20 but there are still more and no idea how much isn't there a easier way.
also not using any proxy tried using mobile network and personal wifi.

broadleafcommerce demo site maven install - build fail

I am facing an issue with maven install for broadleaf commerce demo site--
setup[ERROR] Failed to execute goal on project core: Could not resolve
dependencies for project com.mycompany:core:jar:1.0: Failed to collect
dependencies at
org.broadleafcommerce:broadleaf-framework:jar:4.0.0-GA: Failed to read
artifact descriptor for
org.broadleafcommerce:broadleaf-framework:jar:4.0.0- GA: Could not
transfer artifact
org.broadleafcommerce:broadleaf-framework:pom:4.0.0-GA from/to public
releases (http://nexus.broadleafcommerce.org/nex
us/content/repositories/releases/): Failed to transfer file:
nexus.broadleafcommerce.org/nexus/content/repositories/releases/org/broadleafcomme
rce/broadleaf-framework/4.0.0-GA/broadleaf-framework-4.0.0-GA.pom.
Return code is: 500 , ReasonPhrase:Internal Server Error. -> [Help 1]
I think the http://nexus.broadleafcommerce.org/nexus/content/repositories/releases/ is down. Can someone suggest some alternative?

Building Oozie failes

I am using maven 3.2.1,java 1.7 and Oozie4.0.0. when I tried to build it I got maven plugin and dependency error.[ERROR] Failed to execute goal on project oozie-client: Could not resolve dependencies for project org.apache.oozie:oozie-client:jar:4.0.0: Failed to collect dependencies at junit:junit:jar:4.10: Failed to read artifact descriptor for junit:junit:jar:4.10: Could not transfer artifact junit:junit:pom:4.10 from/to central (http://repo1.maven.org/maven2): repo1.maven.org: Name or service not known: Unknown host repo1.maven.org: Name or service not known -> [Help 1]
Well, it seems you can't access to repo1.maven.org. Try a another maven repo and check your internet connection ;)

Resources