title: Maven error during the compilation in netbeans
body: <p>When i was executing my first java app in netbeans, i was asked to install something related to maven and the installation failed on it's own.</p>
  
  <p>"Run project (F6)":</p>
  
  <pre><code>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 ---
  ??????? ?????? ?????????? ???????: 
  </code></pre>
  
  <hr>
  
  <p>"Clean and build (SHIFT + F11)" SUCCESS!!!<br>
  (WHY "Run project (F6)" works badly??? I'm confused):</p>
  
  <pre><code>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
  ------------------------------------------------------------------------
  </code></pre>
  
  <hr>
  
  <p>Maybe useful info:</p>
  
  <p><a href="https://i.stack.imgur.com/zSt1W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zSt1W.png" alt="problem"></a></p>
  
  <p>Available plugins for a "maven" search:</p>
  
  <p><a href="https://i.stack.imgur.com/KFVWX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KFVWX.png" alt="search"></a></p>
  
  <p>Installed plugins:
  <a href="https://i.stack.imgur.com/ujFnb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ujFnb.png" alt="installed"></a></p>
  
  <p>All available plugins in java* categories:</p>
  
  <p><a href="https://i.stack.imgur.com/PyUmg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PyUmg.png" alt="all"></a></p>