Hi

the freehep-nar-plugin does exactly what you describe.

http://java.freehep.org/freehep-nar-plugin

Regards
Mark Donszelmann

On Apr 6, 2007, at 5:33 PM, [EMAIL PROTECTED] wrote:

Its probably better to zip the natives up and then use the zip file as the artifact, and then hook up support to extract them to some tmp dir for inclusion in the library path.

Would also be nice to have a standard artifact type/ext to use for all share library types.

And perhaps allow multipule arch files in the same artifact, probably including some descriptor to configure while bits get loaded for which platform.

--jason




-----Original Message-----
From: Joerg Hohwiller <[EMAIL PROTECTED]>
Date: Fri, 06 Apr 2007 21:24:53
To:Maven Developers List <dev@maven.apache.org>
Subject: dependency on system library (java.library.path)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

I have already used SWT and GWT together with maven. Both need native system libraries at some specific point. This causes trouble when running code (e.g.
test-cases) with maven.

Are there any plans to add dependencies with <type>dll</type> (or
<type>so</type>) to java.library.path?

For system libraries however the name cares when it is loaded from something that I can not control (foo-1.0.jar loads foo.dll and it can not be named
foo-1.0.dll).
Is there a way to put various artifacts with different versions but the same file-name into a maven repository? In other words: The filename of an artifact is automatically derived from artifactId, version, classifier and type. Is there
a way to override this default behaviour and specify an explicit name?
Example:

org/eclipse/swt/swt-win32/3.2.1/swt-win32.dll
org/eclipse/swt/swt-win32/3.2.2/swt-win32.dll

<dependency>
  <groupId>org.eclipse.swt</groupdId>
  <artifactId>swt-win32</artifactId>
  <version>3.2.2</version>
  <type>dll</type>
  <scope>runtime</scope>
  <!-- something like this -->
  <filename>swt-win32.dll</filename>
</dependency>

Thanks
  Jörg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGFp6EmPuec2Dcv/8RAoDjAKCJrr0xdI3iXUvYzLYiE2RLi45XLgCfThMo
1ecdAOdt55WlfcTYfE7AS+k=
=W5G2
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to