GitHub user Jarosch created a discussion: Fresh NetBeans installation and 
issues with Maven build/clean process

### 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

GitHub link: https://github.com/apache/netbeans/discussions/9102

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to