maven verify (sonar) fail to resolve defined argument - maven

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?

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

I have an error trying to run shopizer-inventory-xml

I am working with shopizer and I try to use https://github.com/shopizer-ecommerce/shopizer-inventory-csv to upload inventory from a csv file.
I edit . and the I run ./mvnw clean install
But I am getting this error
[ERROR] Failed to execute goal on project shopizer-inventory-csv: Could not resolve dependencies for project com.shopizer:shopizer-inventory-csv:jar:2.0.3-SNAPSHOT: The following artifacts could not be resolved: com.shopizer:sm-core-model:jar:2.0.3-SNAPSHOT, com.shopizer:sm-shop:jar:2.0.3-SNAPSHOT: Could not find artifact com.shopizer:sm-core-model:jar:2.0.3-SNAPSHOT -> [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.

Maven assembly plugin fails to execute

I'm getting this message after attempting to "mvn package". It seems like there's an issue with retrieving the google collections jar, but I'm not sure if that's the only problem.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.3:single (make-assembly) on project recommender:
Execution make-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:2.3:single failed:
Plugin org.apache.maven.plugins:maven-assembly-plugin:2.3 or one of its dependencies could not be resolved:
Failed to collect dependencies for org.apache.maven.plugins:maven-assembly-plugin:jar:2.3 ():
Failed to read artifact descriptor for com.google.collections:google-collections:jar:1.0:
Could not transfer artifact com.google.collections:google-collections:pom:1.0 from/to central (http://repo1.maven.org/maven2):
Specified destination directory cannot be created: /Users/danquach/.m2/repository/com/google/collections/google-collections/1.0 -> [Help 1]
The original error should be a local problem:
Specified destination directory cannot be created:
/Users/danquach/.m2/repository/com/google/collections/google-collections/1.0
Is your drive full?
Do you have write access to this path?
You can try to create /Users/danquach/.m2/repository/com/google/collections and call maven again.

Resources