Skip to content

Instantly share code, notes, and snippets.

@bradfordw
Created April 7, 2010 15:36
Show Gist options
  • Save bradfordw/359023 to your computer and use it in GitHub Desktop.
Save bradfordw/359023 to your computer and use it in GitHub Desktop.
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: Specified destination directory cannot be created: /Users/winfrebs/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.4.1
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.DefaultMavenPluginManager.resolvePluginArtifact(DefaultMavenPluginManager.java:173)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:144)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:280)
at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:194)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.calculateExecutionPlan(DefaultLifecycleExecutor.java:825)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.calculateExecutionPlan(DefaultLifecycleExecutor.java:989)
at org.maven.ide.eclipse.internal.embedder.MavenImpl.calculateExecutionPlan(MavenImpl.java:249)
at org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.getExecutionPlan(AbstractJavaProjectConfigurator.java:381)
at org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.collectOptions(AbstractJavaProjectConfigurator.java:348)
at org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.configure(AbstractJavaProjectConfigurator.java:102)
at org.maven.ide.eclipse.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:57)
at org.maven.ide.eclipse.internal.project.GenericLifecycleMapping.configure(GenericLifecycleMapping.java:48)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:332)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.configureNewMavenProject(ProjectConfigurationManager.java:267)
at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:175)
at org.maven.ide.eclipse.wizards.MavenImportWizard$1.runInWorkspace(MavenImportWizard.java:94)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException: Specified destination directory cannot be created: /Users/winfrebs/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.4.1
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.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:268)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:507)
at org.apache.maven.repository.legacy.LegacyRepositorySystem.resolve(LegacyRepositorySystem.java:325)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.resolvePluginArtifact(DefaultMavenPluginManager.java:165)
... 17 more
Caused by: org.apache.maven.wagon.TransferFailedException: Specified destination directory cannot be created: /Users/winfrebs/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.4.1
at org.apache.maven.wagon.AbstractWagon.createParentDirectories(AbstractWagon.java:253)
at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:291)
at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:276)
at org.apache.maven.wagon.providers.http.JettyClientHttpWagon.getIfNewer(JettyClientHttpWagon.java:434)
at org.apache.maven.wagon.providers.http.JettyClientHttpWagon.getIfNewer(JettyClientHttpWagon.java:302)
at org.apache.maven.wagon.providers.http.JettyClientHttpWagon.get(JettyClientHttpWagon.java:292)
at org.apache.maven.repository.legacy.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:310)
at org.apache.maven.repository.legacy.DefaultWagonManager.getArtifact(DefaultWagonManager.java:99)
at org.apache.maven.repository.legacy.DefaultWagonManager.getArtifact(DefaultWagonManager.java:130)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:251)
... 20 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment