I am unable to update my maven project. I have seen a few others have posted this error to but I still could not resolve this error.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-
plugin:2.4 or one of its dependencies could not be resolved: Failed to read
artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.4
Plugin org.apache.maven.plugins:maven-war-plugin:2.4 or one of its
dependencies could not be resolved: Failed to read artifact descriptor for
org.apache.maven.plugins:maven-war-plugin:jar:2.4
Enter "open" then the below in the terminal:
(Unix/Mac) OS X – ~/.m2
(Windows) C:\Documents and Settings\{your-username}\.m2
Then delete everything in the folder. Go back to your project right click it - maven-> update project.
This worked for me...
Related
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.
Error thrown is
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
I have checked maven installation using cmd and it shows there. I think some issue with pom.xml or settings.xml is there but not sure. I am new to Maven.
I am trying to add the source jar files to a project on which I am working.
I have added the dependency into the pom file for the project.
I have manually added two repos into the om file. This the maven central and also the maven.google.
I have tried a forced an update but still not able to get the source for the SDK. The SDK-provider is fine.
The following artifacts could not be resolved:
com.dji:dji-sdk:jar:4.7.1, com.android.support:appcompat-
v7:jar:25.3.1, com.android.support.constraint:constraint-layout:jar:1.0.2: Could not find artifact com.dji:dji-sdk:jar:4.7.1 in my-repo1
(https://maven.google.com) -> [Help 1]
Am I missing something obvious?
I am having a problem while creating a spring roo project in spring tool suite..
the problem is it says "building workspace has encountered a problem.error occured during the build.
on viewing details:
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'first'.
Could not calculate build plan: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:aspectj-maven-plugin:jar:1.4
Plugin org.codehaus.mojo:aspectj-maven-plugin:1.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:aspectj-maven-plugin:jar:1.4
Could not calculate build plan: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:aspectj-maven-plugin:jar:1.4
Plugin org.codehaus.mojo:aspectj-maven-plugin:1.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:aspectj-maven-plugin:jar:1.4
It seems your downloaded dependencies got corrupted somehow.
Try running:
mvn -U clean install
I do answer beacuse I do not have enough reputation to make comment.So;
In STS I got the same error then found #dhamibirendra's answer and I tried and it worked in different way. (Right Clik On Project -->Run as Maven Build(not 3dot)) then write U- clean install on goal and run.(Do not forget to set Maven Runtime to external) After is done I got same error again on same project. Then I delete existing project and create new one and works with no problem. Maybe it helps someone.
Right Click On Project -->Run as Maven Build and click on the option on build clean and install one by one and also run this command in the Goal section U- clean install and click on Run.And refresh the project if you still see the problem then please delete the old project and create new one.
Delete the pom.xml file and paste it again in web content folder.This worked for me.
I imported a maven project onto my eclipse. I clicked on Run As->Maven Install. But I got the following build error. Please help
plugin org.apache.maven.plugins:maven-jar-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar 2.3.2:Could not transfer artifact org.apache.maven.plugins:maven-jar-plugin:pom: 2.3.2 from/to central(http://repo1.maven.org/maven2):Error transferring file: repo1.maven.org: Unknown host repo1.maven.org
I checked /m2/repository. But could not find anything related.
Somehow it is not able to download the required artifacts from the Maven Central repo.
A suggestion please check your network connectivity, are you behind any firewall or try to change your proxysettings.
Otherwise in the worst case try to download required artifacts manually and put them in .m2/repository (as per ur local system) and try to install again.
http://search.maven.org/#browse|672389075
It should work.
Thanks