Markus
plugin-management section with a plugin config that allows you to specify 
LD_LIBRARY_PATH 
e.g maven-nar-plugin
<artifactId>parent-plugin</artifactId>  <build>
    <pluginManagement>
    <plugins>   <plugin>  
<artifactId>maven-nar-plugin</artifactId><configuration> <linker>  <lib>       
<name/>
        <type/>
        <directory/> http://duns.github.com/maven-nar-plugin/configuration.html?
Martin ______________________________________________ 
Verzicht und Vertraulichkeitanmerkung 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen. > Subject: AW: How to tell Maven to put DLL 
dependency into java.library.path?
> Date: Tue, 26 Mar 2013 08:16:58 +0100
> From: k...@quipsy.de
> To: users@maven.apache.org
> 
> �Maybe you like to vote or comment: http://jira.codehaus.org/browse/MNG-5448 
> ? :-)
> 
> Regards
> -Markus
> 
> -----Ursprüngliche Nachricht-----
> Von: Dan Tran [mailto:dant...@gmail.com] 
> Gesendet: Montag, 25. März 2013 17:04
> An: Maven Users List
> Betreff: Re: How to tell Maven to put DLL dependency into java.library.path?
> 
> dont think maven can do that ( surefire understand jars but not dll/so ). I 
> am facing the same issue and the best I can come up ATM is to configure every 
> single project
> 
> -D
> 
> On Mon, Mar 25, 2013 at 12:58 AM, Markus Karg <k...@quipsy.de> wrote:
> > Dan,
> >
> > thank you for this tip. I is working very well. But one question I still do 
> > have: If I have a second project which needs the same native dependency, 
> > obviously I have to tell configure maven-surefire-plugin again. This is a 
> > bit strange, as obviously the fact that the configuration is needed is 
> > related to the dependency, not to the dependent project. I wonder if Maven 
> > has a solution that roughly spoken does the same but is configured inside 
> > oft he dependency's POM, not inside oft he dependent POM? That would allow 
> > to use the dependency as "any other" dependency without having to remember 
> > that it actually is a DLL...
> >
> > Thanks!
> > -Markus
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Dan Tran [mailto:dant...@gmail.com]
> > Gesendet: Mittwoch, 27. Februar 2013 17:41
> > An: Maven Users List
> > Betreff: Re: How to tell Maven to put DLL dependency into java.library.path?
> >
> > - Use maven profile to detect OS arch and set it into a maven property
> >
> > - Use maven-dependcy-plugin to down all requires dll.  Make sure to 
> > take advantage of the property set in step 1
> >
> > - Configure maven-surefire-plugin to set PATH env variable into the 
> > download directory
> >
> > Good luck
> >
> > -D
> >
> > On Wed, Feb 27, 2013 at 6:58 AM, Markus Karg <k...@quipsy.de> wrote:
> >> My POM declared a dependency to a DLL:
> >>
> >>
> >>
> >> <dependency>
> >>
> >>                 <groupId>net.sf.jacob-project</groupId>
> >>
> >>                 <artifactId>jacob-runtime</artifactId>
> >>
> >>                 <type>dll</type>
> >>
> >>                 <classifier>x64</classifier>
> >>
> >>                 <version>1.17-M2</version>
> >>
> >>                 <scope>runtime</scope>
> >>
> >> </dependency>
> >>
> >>
> >>
> >> (1)    How can I tell Maven that when doing "mvn test", that DLL shall
> >> be found on java.library.path, so that the JVM can load native 
> >> classes from it (using JNI)?
> >>
> >>
> >>
> >> (2)    How can I tell Maven that it shall not statically be "x64", but
> >> instead it depends on the architecture of the system actually 
> >> executing "mvn test" (e. g. "x86")?
> >>
> >>
> >>
> >> Thanks! J
> >>
> >> -Markus
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> Т���������������������������������������������������������������������ХF�V�7V'67&�&R�R���âW6W'2�V�7V'67&�&T�fV��6�R��&pФf�"FF�F����6����G2�R���âW6W'2ֆV��fV��6�R��&p
                                          

Reply via email to