title: How can I add a classpath entry as a publish/export dependency in an Eclipse dynamic web project?
body: <p>I successfully created a project using <a href="http://wicket.apache.org/start/quickstart.html">Wicket quickstart</a> and turned it into an Eclipse dynamic web project by running</p>
  
  <blockquote>
    <p>mvn eclipse:clean eclipse:eclipse -Dwtpversion=2.0</p>
  </blockquote>
  
  <p>I imported the project to Eclipse without any issues, but got this warning for each JAR:</p>
  
  <blockquote>
    <p>Classpath entry M2_REPO/<em>*</em>*.jar will not be exported or published.<br>
    Runtime ClassNotFoundExceptions may result.</p>
  </blockquote>
  
  <p>I can fix this by using <code>right click → QuickFix</code> on each warning and selecting "Mark the associated raw classpath entry as a publish/export dependency," but this takes a lot of time and would not be possible if there were a lot of dependencies.</p>
  
  <p>There must be a way to have Maven do this for me; what is it?</p>
  
  <p>EDIT: I've found out that using <a href="http://m2eclipse.sonatype.org/installing-m2eclipse.html">m2eclipse</a> core + Maven Integration for WTP (from m2eclipse extras) resolves my issues.</p>
  
  <p>I'm still interested in how to achieve this without m2eclipse, though, just out of curiosity :p</p>