broadleafcommerce demo site maven install - build fail - maven

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?

Related

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?

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 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.

How can I get Restlet via Maven when I am behind a proxy?

I tried their official sample pom at here and got the following error:
[ERROR] Failed to execute goal on project myproject: Could not resolve
dependencies for project com.example:myproject:jar:1.0-SNAPSHOT:
Failed to collect dependencies at org.restlet.jse:org.restlet:ja
r:2.3.4: Failed to read artifact descriptor for
org.restlet.jse:org.restlet:jar:2.3.4: Could not transfer artifact
org.restlet.jse:org.restlet:pom:2.3.4 from/to maven-restlet
(http://maven.restlet.com ): Not authorized ,
ReasonPhrase:Unauthorized. -> [Help 1]
Some investigation I have done:
I am not using a company mirror. I used to use but to debug this I disabled it, because our company mirror does not have this.
Non-Restlet components works fine with the proxy configuration I put in settings.xml. I am trying Camel examples btw.
Non-Restlet components will get a similar error if I use a incorrect password for the proxy.
I tried a mirror mentioned here and it does not work.
So it seems restlet specific, but I have run out of ideas.

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