- This topic has 1 reply, 2 voices, and was last updated 11 years, 9 months ago by
support-swapna.
-
AuthorPosts
-
ImranAliMemberi’ve created simple project with Maven Support.
It’s showing the error:
Could not calculate build plan
Could not calculate build plan
Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.1 or one of its dependencies could not be resolved: Missing:
———-
1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.1Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.1 -Dpackaging=maven-plugin -Dfile=/path/to/fileAlternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.1 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]———-
1 required artifact is missing.for artifact:
org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.1from the specified remote repositories:
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)Error on console:
5/3/13 12:07:17 PM PKT: Missing artifact org.apache.openejb:javaee-api:jar:5.0-1:provided
5/3/13 12:07:17 PM PKT: Missing artifact javax.faces:jsf-api:jar:1.2_04:provided
5/3/13 12:07:17 PM PKT: Missing artifact javax.servlet:jstl:jar:1.2:provided
5/3/13 12:07:17 PM PKT: Missing artifact javax.servlet.jsp:jsp-api:jar:2.1:provided
5/3/13 12:07:17 PM PKT: Missing artifact javax.faces:jsf-impl:jar:1.2_04:providedPom.xml
Multiple annotations found at this line:
– Missing artifact javax.servlet:jstl:jar:1.2:provided
– Missing artifact org.apache.openejb:javaee-api:jar:
5.0-1:provided
– Missing artifact javax.faces:jsf-impl:jar:1.2_04:provided
– Missing artifact javax.faces:jsf-api:jar:1.2_04:provided
– Missing artifact javax.servlet.jsp:jsp-api:jar:2.1:providedQuick reply will be highly appreciated.
Thanks.
support-swapnaModeratorImranAli,
This can happen if you aren’t connected to the Internet (or there are proxy issues getting to the central repository) and don’t have all the required maven plug-ins already in your own local maven repository (which gets populated as you use maven).
Could you please check that you have an internet connection when doing this and that any proxy you have to use allows you to get to the central maven repository (http://repo1.maven.org/maven2)?
Apart from setting the proxy settings at Window>properties>General>Network Connections, there are additional proxy settings for maven.
Go to MyEclipse->Preferences->Maven4Myeclipse->User Settings. There you will see the file used for user settings (named, settings.xml). That file (which may not yet exist, in which case, create it) should look something like this, when configuring the proxy:
<settings> <proxies> <proxy> <active>true</active> <protocol>http</protocol> <host>proxy.somewhere.com</host> <port>8080</port> <username>proxyuser</username> <password>somepassword</password> <nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts> </proxy> </proxies> </settings>
Of course, you need to set the elements for your particular situation; the above is just an example.
If you are still seeing issues, please share the Installation Details from MyEclipse > Installation Summary > Installation Details.
-
AuthorPosts