apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.62k stars 841 forks source link

Failed to execute goal on every maven project #6978

Open ricky129 opened 7 months ago

ricky129 commented 7 months ago

Apache NetBeans version

Apache NetBeans 20

What happened

Everytime I run a java maven project, I get this error:

cd C:\Users\ricca\Documents\NetBeansProjects\mavenproject1; "JAVA_HOME=C:\\Program Files\\Java\\jdk-21" cmd /c "\"C:\\Program Files\\NetBeans-20\\netbeans\\java\\maven\\bin\\mvn.cmd\" -Dexec.vmArgs= \"-Dexec.args=${exec.vmArgs} -classpath %classpath ${exec.mainClass} ${exec.appArgs}\" -Dexec.appArgs= -Dexec.mainClass=com.mycompany.mavenproject1.Mavenproject1 \"-Dexec.executable=C:\\Program Files\\Java\\jdk-21\\bin\\java.exe\" \"-Dmaven.ext.class.path=C:\\Program Files\\NetBeans-20\\netbeans\\java\\maven-nblib\\netbeans-eventspy.jar\" --no-transfer-progress process-classes org.codehaus.mojo:exec-maven-plugin:3.1.0:exec"
Scanning for projects...

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

--- resources:3.3.1:resources (default-resources) @ mavenproject1 ---
skip non existing resourceDirectory C:\Users\ricca\Documents\NetBeansProjects\mavenproject1\src\main\resources

--- compiler:3.11.0:compile (default-compile) @ mavenproject1 ---
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time:  1.882 s
Finished at: 2024-01-20T16:58:03+01:00
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project mavenproject1: Error while storing the mojo status: C:\Users\ricca\Documents\NetBeansProjects\mavenproject1\target\maven-status\maven-compiler-plugin\compile\default-compile\inputFiles.lst -> [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

I already tried to reinstall netbeans multiple times, not resetting previous settings and plugins but nothing changes

Language / Project Type / NetBeans Component

No response

How to reproduce

I created a Java Maven Project in Netbeans and run it

Did this work correctly in an earlier version?

No / Don't know

Operating System

Edizione Windows 11 Pro Versione 23H2 Data installazione: ‎14/‎11/‎2023 Build sistema operativo 22631.3007 Esperienza Windows Feature Experience Pack 1000.22681.1000.0

JDK

21

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

matthiasblaesing commented 7 months ago

Grab debug info:

image

  1. Choose rerun with different parameters
  2. Choose "Show debug output"

Also show a minimal project that reproduces the problem for you.

Kong-Pepper commented 6 months ago

I'm having the same issue. Here's my Debug Log and Different Parameters debug log Debug Log.txt altParamDebugLog.txt @matthiasblaesing

LautaroRodriguezBase commented 2 months ago

Tuve exacto el mismo problema en Netbeans, lo solucioné con esto: I have the same problem in Netbeans and it worked when I pressed here: Captura de pantalla (98)