maven build fails with weird mockito dependecy attempted and failed - maven

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?

Related

Maven : could not resolve dependencies on J2EE project

I am trying to package my JEE application with Maven.
I am getting this error:
Failed to execute goal on project xxx: Could not resolve dependencies for project com.xxx.xxx:xxx:war:0.0.1-SNAPSHOT: Failed to collect dependencies at net.sf.jasperreports:jasperreports:jar:6.0.0 ->
org.olap4j:olap4j:jar:0.9.7.309-JS-3: Failed to read artifact descriptor for org.olap4j:olap4j:jar:0.9.7.309-JS-3: Could not transfer artifact org.olap4j:olap4j:pom:0.9.7.309-JS-3 from/to maven-default-http-blocker (http://0.0.0.0/
): Blocked mirror for repositories: [jasperreports (http://jasperreports.sourceforge.net/maven2, default, releases+snapshots), jaspersoft-third-party (http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts/, default, releases+snapshots)] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project xxx: Could not resolve dependencies for project com.xxx.xxx:xxx:war:0.0.1-SNAPSHOT: Failed to collect dependencies at net.sf.jasperreports:jasperreports:jar:6.0.0 -> org.olap4j:olap4j:jar:0.9.7.309-JS-3
I do have this library in my repo :
How could I solve this issue?

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?

Missing artifact in Maven Project

I am hitting the error Missing artifact in my maven project. What's going wrong?
Error:
It is not working only in one of my laptop and the rest are fine. The setup and everything is the same.
Method tried:
I have tried to update the maven project where i used to do if i have this dependency issue but this time it failed.
I have tried to run the "mvn install" and it shows the error message below:
[ERROR] Failed to execute goal on project Spearhead-web: Could not resolve dependencies for project com.triaset.spearhead:Spearhead-web:war:1.0-SNAPSHOT: Failed to collect dependencies at com.triaset.spearhead:Spearhead-ejb:jar:1.0-SNAPSHOT: Failed to read artifact descriptor for com.triaset.spearhead:Spearhead-ejb:jar:1.0-SNAPSHOT: Could not transfer artifact com.triaset.spearhead:Spearhead-ejb:pom:1.0-SNAPSHOT from/to prime-repo (https://repository.primefaces.org): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

Maven can't resolve dependencies

[ERROR] Failed to execute goal on project accord-web-utils:
Could not resolve dependencies for project com.accord.web:accord-web-utils:jar:1.0.4-SNAPSHOT:
Could not find artifact com.accord.business.bafr:accord-business-bafr:jar:1.0.5-SNAPSHOT in snapshots (http://sv0311:8081/artifactory/libs-snapshot) ->
I am getting the above error when I updated the version of com.accord.business.bafr:accord-business-bafr. How can I resolve it?

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?

Resources