Hi Maven guru,

I've got a project with e.g. jar packaging. All my dependencies have
"provided" scope. My problem is that Maven compiler plugin adds unnecessary
classes from dependent library to output folder - e.g. if I have a class
mypack.MyServlet extends HttpServlet, javax.servlet package will be present
in compile output directory and therefore will be added to resulting JAR.
This is undesirable, of course. Strange, I have such problems with only
several dependent artifacts (in fact, javax.servlet:servlet-api and my own
artifacts). What could cause that? I've already disabled all plugins, but
jar keeps to be created too fat. I'm using Maven 2.2.0

Thanks in advance,
Andrey

Reply via email to