title: Getting errors while building Maven project in Netbeans?
body: <p>I get these errors while trying to build a Java EE(Maven) project in Netbeans (Also got the same error building from cmd with <code>mvn clean install -U</code>)</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project myproject: There are test failures.
  </code></pre>
  
  <p>The wierd thing is, I get the same error while trying on my other PC, but, when I tried building at school there was no error and it worked fine . There is zero test errors in school.</p>
  
  <p>Why is this happening? Does anyone have any idea? </p>
  
  <p>And sorry if this question is a "bad" stackoverflow question, but I have nowhere to turn to get help.</p>
  
  <p>EDIT:</p>
  
  <p>Now Im getting this:</p>
  
  <p><code>Tests run: 10, Failures: 0, Errors: 0, Skipped: 0</code></p>
  
  <p>which is good, but Im still getting this error and build failure: </p>
  
  <p><code>Failed to execute goal org.apache.maven.plugins:maven-source-plugin:2.4:jar (attach-sources) on project backend: Execution attach-sources of goal org.apache.maven.plugins:maven-source-plugin:2.4:jar failed: Plugin org.apache.maven.plugins:maven-source-plugin:2.4 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-source-plugin:jar:2.4 (): Failed to read artifact descriptor for org.apache.maven:maven-archiver:jar:2.5: Could not transfer artifact org.apache.maven:maven-archiver:pom:2.5 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.maven.apache.org -&gt; [Help 1]</code></p>
  
  <p>And at the beginning of the build I am getting these warnings:</p>
  
  <pre><code>Some problems were encountered while building the effective model for edu.cth.myproject:backend:ejb:1.0-SNAPSHOT
  </code></pre>
  
  <p><code>build.plugins.plugin.version for org.apache.maven.plugins:maven-source-plugin is missing.
  build.plugins.plugin.version for org.apache.maven.plugins:maven-javadoc-plugin is missing.
  build.plugins.plugin.version for org.apache.maven.plugins:maven-deploy-plugin is missing.
  It is highly recommended to fix these problems because they threaten the stability of your build.
  For this reason, future Maven versions might no longer support building such malformed projects.</code></p>
  
  <p>I dont know what to do?</p>