Skip to content

Fresh NetBeans installation and issues with Maven build/clean process #9101

Closed

Description

@Jarosch

Apache NetBeans version

Apache NetBeans 28

What happened

Hi.

I'm an absolute novice and I'm not able to help myself. For any reason NetBeans does not allow to run my project a second time, because Maven wants to make a clean. This "clean" process seems to fail for an unknown reason.

Here the output in NetBeans:

cd C:\Users\jaros\OneDrive\Dokumente\NetBeansProjects\mavenproject1; "JAVA_HOME=C:\\Program Files\\Apache NetBeans\\jdk" cmd /c "\"C:\\Program Files\\Apache NetBeans\\java\\maven\\bin\\mvn.cmd\" -Dexec.vmArgs= -Dexec.appArgs= \"-Dmaven.ext.class.path=C:\\Program Files\\Apache NetBeans\\java\\maven-nblib\\netbeans-eventspy.jar\" --no-transfer-progress clean javafx:run"
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::staticFieldBase has been called by com.google.inject.internal.aop.HiddenClassDefiner (file:/C:/Program%20Files/Apache%20NetBeans/java/maven/lib/guice-5.1.0-classes.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.inject.internal.aop.HiddenClassDefiner
WARNING: sun.misc.Unsafe::staticFieldBase will be removed in a future release
Scanning for projects...

--------------------< com.mycompany:mavenproject1 >---------------------
Building mavenproject1 1.0-SNAPSHOT
  from pom.xml
--------------------------------[ jar ]---------------------------------

--- clean:3.2.0:clean (default-clean) @ mavenproject1 ---
Deleting C:\Users\jaros\OneDrive\Dokumente\NetBeansProjects\mavenproject1\target
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time:  1.382 s
Finished at: 2025-12-23T09:58:27+01:00
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.2.0:clean (default-clean) on project mavenproject1: Failed to clean project: Failed to delete C:\Users\jaros\OneDrive\Dokumente\NetBeansProjects\mavenproject1\target\maven-status\maven-compiler-plugin\compile\default-compile -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Language / Project Type / NetBeans Component

No response

How to reproduce

Make an Apache Netbeans installation on Windows 11, create a JavaFX Maven project and run it.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 11

JDK

JDK 25

Apache NetBeans packaging

Community provided installer

Anything else

No response

Are you willing to submit a pull request?

No

Activity

  1. added
    kind:bugBug report or fix
    needs:triageRequires attention from one of the committers
    on Dec 23, 2025
  2. locked and limited conversation to collaborators on Dec 23, 2025
  3. converted this issue into a discussion #9102 on Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions