Hi

just added to ziplock an integration with mvn:
http://svn.apache.org/repos/asf/tomee/tomee/trunk/arquillian/ziplock/src/test/java/org/apache/ziplock/maven/MvnTest.java

The idea is to provide a simple method allowing to get out of the box a war
representing the current module (war/jar - both are represented by a war
because of deps).

The usage is Mvn.war() for client tests (where only "main" needs to be
packaged) and Mvn.testWar().addClasses(MyTest.class.getPackage()) for tests
(same as previously + test dependencies).

It matches a lot of cases (I'd say 60% of real use cases) and what is
missing is configuration (only war name, classes base package and
dependency scope ATM). I think creating a MvnArchiveBuilder would be
relevant in this case instead of params in a static method

Not sure the link with existing Archive (which seems to have a too low
granularity compared to Mvn).

Wdyt?

Side note: i added a hack for shiro-web since that's a common Apache
project which use a filter which could prevent to access Arquillian servlet
in web mode. If you know any other framework using it we can add hack if
doable (for Tapestry we can't without doing something really hacky since it
would need to be done in Tapestry AppModule itself).

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*

Reply via email to