title: m2eclipse : Maven dependencies as JAR's not projects
body: <p>I'm having maven project on Eclipse with m2eclipse plugin. This project has some dependencies. Some of them are libraries as slf4j, apache-commons etc. But there are also mine libraries, that I'm developing simultaneously in eclipse. Unfortunately m2eclipse creates build path in such a way that my libraries are added to the classpath not as a JAR archives from M2 repository but as class files from <code>/target/classes</code> directory. For that reason I can not use maven-shade-plugin beacuse I'm gettin a message:</p>
  
  <p>" <code>Error creating shaded jar: error in opening zip file /home/user/workspace/my-project/project-a/target/classes</code>". </p>
  
  <p>When I'm building <code>project-a</code> from command line using <code>mvn clean install</code> everything works well - shaded JAR is generated. How to fix it?</p>