Maven assembly plugin fails to execute - maven

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.

Related

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

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.

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 ;)

Maven build issues - can anyone help me in knowing why I see this error when I do run as maven install

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project resteasy: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.10 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-surefire-plugin:jar:2.10 (): Failed to read artifact descriptor for org.apache.maven.shared:maven-common-artifact-filters:jar:1.3: Could not transfer artifact org.apache.maven.shared:maven-common-artifact-filters:pom:1.3 from/to central (http://repo.maven.apache.org/maven2): Remotely Closed [id: 0x3004ed34, /192.168.200.22:59080 :> repo.maven.apache.org/93.184.215.223:80] -> [Help 1]
You can try a couple of options:
Use the debugging options. This will produce a lot of output, and probably you'll be able to understand whats really going on.
mvn -X test
In case you're running some kind of proxy on the repository (Nexus, Artifactory, and so on), you can try to disable it in your settings.xml and try to bring the artifact directly from the central repository.
Its theoretically possible that something went wrong in your local repository (by default ~/.m2) In this case try to remove all the packages from ''org.apache.maven.shared:maven-common-artifact-filters:jar:1.3'' and rerun the build.
How this helps

Resources