Could not calculate build plan
Any idea about how can I solve this? Thanks in advance.
org.apache.maven.plugin.PluginResolutionException: 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.1
Try 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/file
Alternatively, 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.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
at org.apache.maven.plugin.internal.DefaultMavenPlugi nManager.resolvePluginArtifact(DefaultMavenPluginM anager.java:173)
at org.apache.maven.plugin.internal.DefaultMavenPlugi nManager.getPluginDescriptor(DefaultMavenPluginMan ager.java:144)
at org.apache.maven.plugin.internal.DefaultMavenPlugi nManager.getMojoDescriptor(DefaultMavenPluginManag er.java:280)
at org.apache.maven.plugin.DefaultBuildPluginManager. getMojoDescriptor(DefaultBuildPluginManager.java:1 94)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.calculateExecutionPlan(DefaultLifecycleExecutor. java:825)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.calculateExecutionPlan(DefaultLifecycleExecutor. java:989)
at org.maven.ide.eclipse.internal.embedder.MavenImpl. calculateExecutionPlan(MavenImpl.java:249)
at org.maven.ide.eclipse.jdt.internal.AbstractJavaPro jectConfigurator.getExecutionPlan(AbstractJavaProj ectConfigurator.java:381)
at org.maven.ide.eclipse.jdt.internal.AbstractJavaPro jectConfigurator.collectOptions(AbstractJavaProjec tConfigurator.java:348)
at org.maven.ide.eclipse.jdt.internal.AbstractJavaPro jectConfigurator.configure(AbstractJavaProjectConf igurator.java:102)
at org.maven.ide.eclipse.project.configurator.Abstrac tLifecycleMapping.configure(AbstractLifecycleMappi ng.java:57)
at org.maven.ide.eclipse.internal.project.GenericLife cycleMapping.configure(GenericLifecycleMapping.jav a:48)
at org.maven.ide.eclipse.internal.project.ProjectConf igurationManager.updateProjectConfiguration(Projec tConfigurationManager.java:332)
at org.maven.ide.eclipse.internal.project.ProjectConf igurationManager.configureNewMavenProject(ProjectC onfigurationManager.java:267)
at org.maven.ide.eclipse.internal.project.ProjectConf igurationManager.enableMavenNature(ProjectConfigur ationManager.java:343)
at org.maven.ide.eclipse.internal.project.ProjectConf igurationManager.createSimpleProject(ProjectConfig urationManager.java:439)
at org.maven.ide.eclipse.wizards.MavenProjectWizard$4 .runInWorkspace(MavenProjectWizard.java:255)
at org.eclipse.core.internal.resources.InternalWorksp aceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:55)
Caused by: org.apache.maven.artifact.resolver.MultipleArtifac tsNotFoundException: Missing:
----------
1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.1
Try 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/file
Alternatively, 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.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
at org.apache.maven.artifact.resolver.DefaultResoluti onErrorHandler.throwErrors(DefaultResolutionErrorH andler.java:71)
at org.apache.maven.plugin.internal.DefaultMavenPlugi nManager.resolvePluginArtifact(DefaultMavenPluginM anager.java:169)
... 18 more
Download the maven-resources-plugin:2.4.1.jar
I was experiencing the same problem.
Try these steps
1.Look into your repository for the plugin, you might see this:
ls ~/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.4.1/
maven-resources-plugin-2.4.1.maven-plugin.lastUpdated
Note that there is no jar file here.
2. Try downloading " maven-resources-plugin:2.4.1.jar "
3. Paste " maven-resources-plugin:2.4.1.jar " into /2.4.1/ folder.
4. Then in eclipse
run maven->Update Dependencies.
That is it. :) ;)
Hope this solves your issue.
Quote:
Originally Posted by
gdintino
Any idea about how can I solve this? Thanks in advance.
org.apache.maven.plugin.PluginResolutionException: 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.1
Try 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/file
Alternatively, 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.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
at org.apache.maven.plugin.internal.DefaultMavenPlugi nManager.resolvePluginArtifact(DefaultMavenPluginM anager.java:173)
at org.apache.maven.plugin.internal.DefaultMavenPlugi nManager.getPluginDescriptor(DefaultMavenPluginMan ager.java:144)
at org.apache.maven.plugin.internal.DefaultMavenPlugi nManager.getMojoDescriptor(DefaultMavenPluginManag er.java:280)
at org.apache.maven.plugin.DefaultBuildPluginManager. getMojoDescriptor(DefaultBuildPluginManager.java:1 94)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.calculateExecutionPlan(DefaultLifecycleExecutor. java:825)
at org.apache.maven.lifecycle.DefaultLifecycleExecuto r.calculateExecutionPlan(DefaultLifecycleExecutor. java:989)
at org.maven.ide.eclipse.internal.embedder.MavenImpl. calculateExecutionPlan(MavenImpl.java:249)
at org.maven.ide.eclipse.jdt.internal.AbstractJavaPro jectConfigurator.getExecutionPlan(AbstractJavaProj ectConfigurator.java:381)
at org.maven.ide.eclipse.jdt.internal.AbstractJavaPro jectConfigurator.collectOptions(AbstractJavaProjec tConfigurator.java:348)
at org.maven.ide.eclipse.jdt.internal.AbstractJavaPro jectConfigurator.configure(AbstractJavaProjectConf igurator.java:102)
at org.maven.ide.eclipse.project.configurator.Abstrac tLifecycleMapping.configure(AbstractLifecycleMappi ng.java:57)
at org.maven.ide.eclipse.internal.project.GenericLife cycleMapping.configure(GenericLifecycleMapping.jav a:48)
at org.maven.ide.eclipse.internal.project.ProjectConf igurationManager.updateProjectConfiguration(Projec tConfigurationManager.java:332)
at org.maven.ide.eclipse.internal.project.ProjectConf igurationManager.configureNewMavenProject(ProjectC onfigurationManager.java:267)
at org.maven.ide.eclipse.internal.project.ProjectConf igurationManager.enableMavenNature(ProjectConfigur ationManager.java:343)
at org.maven.ide.eclipse.internal.project.ProjectConf igurationManager.createSimpleProject(ProjectConfig urationManager.java:439)
at org.maven.ide.eclipse.wizards.MavenProjectWizard$4 .runInWorkspace(MavenProjectWizard.java:255)
at org.eclipse.core.internal.resources.InternalWorksp aceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:55)
Caused by: org.apache.maven.artifact.resolver.MultipleArtifac tsNotFoundException: Missing:
----------
1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.1
Try 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/file
Alternatively, 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.1
from the specified remote repositories:
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
at org.apache.maven.artifact.resolver.DefaultResoluti onErrorHandler.throwErrors(DefaultResolutionErrorH andler.java:71)
at org.apache.maven.plugin.internal.DefaultMavenPlugi nManager.resolvePluginArtifact(DefaultMavenPluginM anager.java:169)
... 18 more