在 netbeans 中编译期间出现 Maven 错误

Maven error during the compilation in netbeans

当我在 netbeans 中执行我的第一个 java 应用程序时,我被要求安装与 maven 相关的东西,但安装自己失败了。

"Run project (F6)":

cd /home/sagecat/Documents/Study/Cross-platform_programming_tools/working_directory/Lab2/Lab2; JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 /opt/netbeans/java/maven/bin/mvn "-Dexec.args=-classpath %classpath edu.sora.lab2.Lab2_Pavlenko_KI33" -Dexec.executable=/usr/lib/jvm/java-11-openjdk-amd64/bin/java -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.
Scanning for projects...

------------------------------------------------------------------------
Building Lab2 1.0-SNAPSHOT
------------------------------------------------------------------------

--- exec-maven-plugin:1.5.0:exec (default-cli) @ Lab2 ---
??????? ?????? ?????????? ???????: 

"Clean and build (SHIFT + F11)"成功!!!
(为什么 "Run project (F6)" 效果不好???我很困惑):

cd /home/sagecat/Documents/Study/Cross-platform_programming_tools/working_directory/Lab2/Lab2; JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 /opt/netbeans/java/maven/bin/mvn -Dfile.encoding=UTF-8 clean install
Scanning for projects...

------------------------------------------------------------------------
Building Lab2 1.0-SNAPSHOT
------------------------------------------------------------------------

--- maven-clean-plugin:2.5:clean (default-clean) @ Lab2 ---
Deleting /home/sagecat/Documents/Study/Cross-platform_programming_tools/working_directory/Lab2/Lab2/target

--- maven-resources-plugin:2.6:resources (default-resources) @ Lab2 ---
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory /home/sagecat/Documents/Study/Cross-platform_programming_tools/working_directory/Lab2/Lab2/src/main/resources

--- maven-compiler-plugin:3.1:compile (default-compile) @ Lab2 ---
Changes detected - recompiling the module!
Compiling 1 source file to /home/sagecat/Documents/Study/Cross-platform_programming_tools/working_directory/Lab2/Lab2/target/classes

--- maven-resources-plugin:2.6:testResources (default-testResources) @ Lab2 ---
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory /home/sagecat/Documents/Study/Cross-platform_programming_tools/working_directory/Lab2/Lab2/src/test/resources

--- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ Lab2 ---
Nothing to compile - all classes are up to date

--- maven-surefire-plugin:2.12.4:test (default-test) @ Lab2 ---
No tests to run.

--- maven-jar-plugin:2.4:jar (default-jar) @ Lab2 ---
Building jar: /home/sagecat/Documents/Study/Cross-platform_programming_tools/working_directory/Lab2/Lab2/target/Lab2-1.0-SNAPSHOT.jar

--- maven-install-plugin:2.4:install (default-install) @ Lab2 ---
Installing /home/sagecat/Documents/Study/Cross-platform_programming_tools/working_directory/Lab2/Lab2/target/Lab2-1.0-SNAPSHOT.jar to /home/sagecat/.m2/repository/edu/sora/Lab2/1.0-SNAPSHOT/Lab2-1.0-SNAPSHOT.jar
Installing /home/sagecat/Documents/Study/Cross-platform_programming_tools/working_directory/Lab2/Lab2/pom.xml to /home/sagecat/.m2/repository/edu/sora/Lab2/1.0-SNAPSHOT/Lab2-1.0-SNAPSHOT.pom
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 1.128 s
Finished at: 2020-04-17T14:02:44+03:00
Final Memory: 13M/50M
------------------------------------------------------------------------

可能有用的信息:

"maven" 搜索的可用插件:

安装的插件:

java* 类别中的所有可用插件:

您需要在netbeans中安装maven插件。为此,请转到工具 -> 插件。 在可用的插件部分,Select JAVA 的 Maven 插件。安装它并且必须激活它。 This Plugin is must

If this is not available in Available plugin List then check in other tabs

已解决!

我不知道实际上有什么帮助...抱歉 =(

我尝试了一切并安装了很多东西,还使用 ​​synaptic 重新安装了所有 maven 包。下次我尝试时 - 它工作正常。