Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6008279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:48:07+00:00 2026-05-23T01:48:07+00:00

I often getting the following error when compiling a maven project with NetBeans: Failed

  • 0

I often getting the following error when compiling a maven project with NetBeans:

Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-install) on project xxx: Failed to install artifact yyyy: C:\...\.m2\repository\...\yyyy-1.0.0.jar (Access is denied) -> [Help 1]

I don’t know what is causing it. Solution is to erase the problematic .m2 content manually and the issue goes. But it is annoying.

Anyone has a permanent solution?

EDIT

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-install-plugin:2.3.1:install
(default-install) on project Plasma:
Failed to install artifact
net.dwst:Plasma:jar:1.0.0:
C:….m2\repository\net\dwst\Plasma\1.0.0\Plasma-1.0.0.jar
(Access is denied) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException:
Failed to execute goal
org.apache.maven.plugins:maven-install-plugin:2.3.1:install
(default-install) on project Plasma:
Failed to install artifact
net.dwst:Plasma:jar:1.0.0:
C:….m2\repository\net\dwst\Plasma\1.0.0\Plasma-1.0.0.jar
(Access is denied) at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
at
org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
at
org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
at
org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by:
org.apache.maven.plugin.MojoExecutionException:
Failed to install artifact
net.dwst:Plasma:jar:1.0.0:
C:….m2\repository\net\dwst\Plasma\1.0.0\Plasma-1.0.0.jar
(Access is denied) at
org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:139)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
… 19 more Caused by:
org.apache.maven.artifact.installer.ArtifactInstallationException:
Failed to install artifact
net.dwst:Plasma:jar:1.0.0:
C:….m2\repository\net\dwst\Plasma\1.0.0\Plasma-1.0.0.jar
(Access is denied) at
org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:110)
at
org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:103)
… 21 more Caused by:
org.sonatype.aether.installation.InstallationException:
Failed to install artifact
net.dwst:Plasma:jar:1.0.0:
C:….m2\repository\net\dwst\Plasma\1.0.0\Plasma-1.0.0.jar
(Access is denied) at
org.sonatype.aether.impl.internal.DefaultInstaller.install(DefaultInstaller.java:279)
at
org.sonatype.aether.impl.internal.DefaultInstaller.install(DefaultInstaller.java:190)
at
org.sonatype.aether.impl.internal.DefaultRepositorySystem.install(DefaultRepositorySystem.java:322)
at
org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:106)
… 22 more Caused by:
java.io.FileNotFoundException:
C:….m2\repository\net\dwst\Plasma\1.0.0\Plasma-1.0.0.jar
(Access is denied) at
java.io.FileOutputStream.open(Native
Method) at
java.io.FileOutputStream.(FileOutputStream.java:179)
at
java.io.FileOutputStream.(FileOutputStream.java:131)
at
org.sonatype.aether.impl.internal.DefaultFileProcessor.copy(DefaultFileProcessor.java:120)
at
org.sonatype.aether.impl.internal.DefaultInstaller.install(DefaultInstaller.java:255)
… 25 more [ERROR] [ERROR] [ERROR]
For more information about the errors
and possible solutions, please read
the following articles: [ERROR] [Help
1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:48:08+00:00Added an answer on May 23, 2026 at 1:48 am

    This issue started to happen after a NetBeans crash. I finally deleted the content of .m2 and re-installed NetBeans from scratch. The issue disappeared. I am still unclear what would cause it, but it is now gone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What do the following error messages mean? I'm validating my website, but I'm getting
I'm getting the following error in xcode. error for object 0x4e18d00: pointer being freed
I am often getting confused with the image sizes and button sizes that I
Often while editing config files, I'll open one with vi and then when I
Often, I find myself wanting to write a unit test for a portion of
Often I find myself interacting with files in some way but after writing the
Often we need to add a non-nullable column to a table, and it is
Often, I found OutOfMemoryException on IBM Websphere Application Server. I think this exception occur
Often time I need to add a control to a dialog after the dialog
Often WinDbg will enter a state where it is *Busy* performing an operation. Often

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.