Search code examples
mavenjboss-arquillianshrinkwrap

Arquillian embedded tomcat7 unfortunately includes the whole classpath


For my arquillian tests I created a WebArchive using ShrinkWrap which only includes classes which are necessary for the integrationtest.

I use embedded-tomcat7 as container adapter and start the test via maven. Unfortunately the classpath contains all classes of my project (because maven sets it so).

Can I configure (arquillian.xml) to use an other classloader or so?


Solution

  • Results after some days of search:

    Don't use an embedded container if you really want to control your classpath.