title: Problem with compilation for maven project
body: <p>I have two maven projects - a library and a small program. They are in  different folders and use different <code>pom.xml</code> and the library's jar files are included in the small program's <code>pom.xml</code> using the following plugin:</p>
  
  <pre><code>&lt;groupId&gt;com.googlecode.addjars-maven-plugin&lt;/groupId&gt;
  &lt;artifactId&gt;addjars-maven-plugin&lt;/artifactId&gt;
  </code></pre>
  
  <p>and an absolute path:</p>
  
  <pre><code>&lt;resource&gt;&lt;directory&gt;/path/to/jars&lt;/directory&gt;&lt;/resource&gt;
  </code></pre>
  
  <p>This worked correctly, but then suddenly with same code as before in both projects, the small program does not compile anymore. The library still compiles fine.
  (Using <code>mvn package -Dmaven.test.skip=true</code>)</p>
  
  <p>The error message is not very clear:</p>
  
  <pre><code>[ERROR] error: error while loading &lt;root&gt;, error in opening zip file
  [ERROR] error: scala.reflect.internal.MissingRequirementError: object scala.runtime in compiler mirror not found.
  [ERROR]     at scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:16)
  [ERROR]     at scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:17)
  ...
  [ERROR] error: fatal error: object scala.runtime in compiler mirror not found.
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 9.935s
  [INFO] Finished at: Fri Nov 15 22:39:11 CET 2013
  [INFO] Final Memory: 9M/67M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.scala-tools:maven-scala-plugin:2.15.0:compile (default) on project testprogram: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1(Exit value: 1) -&gt; [Help 1]
  </code></pre>
  
  <p>I did some researches on Google about the error message and it seems that this can be caused by a missing or damaged .jar file. I do not see the relation to this case tho, because I had the same code and imports in both the working and the not working case. </p>
  
  <p>EDIT: to add some more information: the library is using <a href="http://code.google.com/p/junixsocket/" rel="nofollow noreferrer">junixsocket</a> and is including the .jar in the same way as the program includes the library. It seems that the problem appears only when this part is there.</p>