Alan D. Cabrera a écrit :

On Jan 4, 2010, at 5:29 AM, Shawn Pearce wrote:

Emmanuel L?charny <[email protected]> wrote:
Shawn Pearce a écrit :
You have to download and install the Tomcat native library [1].
On my Linux desktop I had to inject the library into my JVM via a
wrapper script for Maven:

 #!/bin/sh
 export JAVA_HOME=/usr/lib/jvm/java-6-openjdk &&
 export LD_LIBRARY_PATH=/home/sop/sw-tcnative1.1.18/lib &&
 exec mvn "$@"

[1] http://tomcat.apache.org/native-doc/

Can't we define a profile to handle such a situation ? Most of the
people won't need this native lib, aren't they ?

That's true, we should actually be able to define a profile for
the native tests.

This native library is only used to enable agent forwarding on the
server side, and if the library loading fails, I think we simply
disable agent forwarding.

Please file a JIRA issue for it, and feel free to assign it to me.

I wonder how, or if, we could automatically d/l the native artifact from maven and put it into somewhere like target/native and spawn the tests. Just thinking out loud.


Regards,
Alan


Will investigate with some Maven gurus...

Reply via email to