See <a href="http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html">http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html</a>. Maven has a process-test-classes phase after test-compile and before test. You want to add a jar plugin that runs in that phase and have it create the jar you need for testing in the target directory.<br>
<br>A second alternative is to run your tests during the integration-test phase. It is possible, but tricky, to configure the surefire plugin to run in both the test and integration-test phases by disabling tests on the plugin and then configuring executions in the plugin where the tests are enabled. If you'd like to try this and have no idea what I am talking about let me know and I will post an example.<br>
<br><div class="gmail_quote">On Mon, Nov 17, 2008 at 10:12 AM, Thorbjørn Ravn Andersen <span dir="ltr"><<a href="mailto:ravn@runjva.com">ravn@runjva.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ceki Gulcu skrev:<br>
<div class="Ih2E3d">> Optional means that the artifact is not exported transitively. It should not<br>
> affect the compile or test class paths.<br>
><br>
</div>Ok, then let's take the "how to test"-debate now :)<br>
<br>
The problem is that in order to do the testing the ext.jar must be built and used, but as far as I can see the test phase happens before the installation phase. Hence I tried moving the testing to another maven project but then it needs to know which Javassist library to use to do this properly.<br>
<br>
Right now I am including the relative path to the library retrieved by maven in the built jar, but this is rather sneaky I think.<br>
<br>
Suggestions?<br>
<div class="Ih2E3d"><br>
--<br>
Thorbjørn Ravn Andersen "...plus... Tubular Bells!"<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="Wj3C7c">dev mailing list<br>
<a href="mailto:dev@slf4j.org">dev@slf4j.org</a><br>
<a href="http://www.slf4j.org/mailman/listinfo/dev" target="_blank">http://www.slf4j.org/mailman/listinfo/dev</a></div></div></blockquote></div><br>