RE: AW: How to tell Maven to put DLL dependency into java.library.path?

2013-03-28 Thread Martin Gainty

Markus
plugin-management section with a plugin config that allows you to specify 
LD_LIBRARY_PATH 
e.g maven-nar-plugin
parent-plugin  

 
maven-nar-plugin  


 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  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  wrote:
> >> My POM declared a dependency to a DLL:
> >>
> >>
> >>
> >> 
> >>
> >> net.sf.jacob-project
> >>
> >> jacob-runtime
> >>
> >> dll
> >>
> >> x64
> >>
> >> 1.17-M2
> >>
> >> runtime
> >>
> >> 
> >>
> >>
> >>
> >> (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
  

AW: How to tell Maven to put DLL dependency into java.library.path?

2013-03-26 Thread Markus Karg
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  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  wrote:
>> My POM declared a dependency to a DLL:
>>
>>
>>
>> 
>>
>> net.sf.jacob-project
>>
>> jacob-runtime
>>
>> dll
>>
>> x64
>>
>> 1.17-M2
>>
>> runtime
>>
>> 
>>
>>
>>
>> (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


AW: How to tell Maven to put DLL dependency into java.library.path?

2013-03-25 Thread Markus Karg
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  wrote:
> My POM declared a dependency to a DLL:
>
>
>
> 
>
> net.sf.jacob-project
>
> jacob-runtime
>
> dll
>
> x64
>
> 1.17-M2
>
> runtime
>
> 
>
>
>
> (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


AW: How to tell Maven to put DLL dependency into java.library.path?

2013-02-28 Thread Markus Karg
EclEmma simply runs code coverage. AFAIK it does not care about 
java.library.path at all. My actual need is one POM-centric declaration of a 
DLL dependency that works in *any* tools able to deal with POMs. :-)


-Ursprüngliche Nachricht-
Von: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] Im Auftrag 
von Anders Hammar
Gesendet: Donnerstag, 28. Februar 2013 12:25
An: Maven Users List
Betreff: Re: How to tell Maven to put DLL dependency into java.library.path?

Ok. I just assumed that the EclEmma Eclipse plugin would handle all of this in 
Eclipse. I haven't used it myself.
Any CI problems are not related to this; I was just focusing on the Eclipse 
part of the problem.

/Anders


On Thu, Feb 28, 2013 at 11:08 AM, Markus Karg  wrote:

> Who said that I do not use the EclEmma Eclipse plugin? Actually I do. 
> :-)
>
> But that does neither solve the problem that each new guy in the team 
> needs to set up his java.library.path in Eclipse again, nor the 
> problem that a CI server like Jenkins / Hudson needs to know about all 
> native libraries for running unit tests. *And* m2e clears the manual 
> native lib settings in Eclipse each time it updates from the POM.xml! 
> ;-(
>
> -Ursprüngliche Nachricht-
> Von: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] Im 
> Auftrag von Anders Hammar
> Gesendet: Donnerstag, 28. Februar 2013 08:54
> An: Maven Users List
> Betreff: Re: How to tell Maven to put DLL dependency into 
> java.library.path?
>
> Why not just use the EclEmma Eclipse plugin? It uses Jacoco from what 
> I read on their web site, despite the "emma" in the name of the plugin.
>
> /Anders
>
>
> On Thu, Feb 28, 2013 at 8:48 AM, Dan Tran  wrote:
>
> > I think that would work if you invoke 'maven install' using m2e.
> > However, if you use eclispe's unit test, that may not possible since 
> > I too could not working.  I basically configure eclispe or put the 
> > dlls in my system path
> >
> > -D
> >
> > On Wed, Feb 27, 2013 at 11:21 PM, Markus Karg  wrote:
> > > I fact these are not "my " DLLs but are ready-to-use artifacts of 
> > > the
> > JACOCO project on SourceForge. So I will *never* build them on my own.
> > But I need to have it working m2e. Do you think your solution will 
> > convince m2e to add lib to java.library.path?
> > >
> > > -Ursprüngliche Nachricht-
> > > Von: Dan Tran [mailto:dant...@gmail.com]
> > > Gesendet: Mittwoch, 27. Februar 2013 22:29
> > > An: Maven Users List
> > > Betreff: Re: How to tell Maven to put DLL dependency into
> > java.library.path?
> > >
> > > if you already have all you DLL loaded at your maven repo, Then it 
> > > make
> > sense to do so at this moment
> > >
> > > if you are required to build dll with maven, better look into NAR
> > >
> > > -D
> > >
> > > On Wed, Feb 27, 2013 at 12:35 PM, Wayne Fay 
> wrote:
> > >>> thank you for this interesting idea. I think this would be the 
> > >>> most sophisticated ("most mavenic") solution, but I have the 
> > >>> feeling that Dan's to be simpler to set up in the short term for 
> > >>> a
> Maven novice?
> > >>
> > >> Go with Dan's solution for now, but I think you'll change to the 
> > >> Nar plugin eventually.
> > >>
> > >> Wayne
> > >>
> > >> -
> > >> --
> > >> -- 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
> > >
> > > --
> > > --
> > > - 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
> >
> >
>
> -
> 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



AW: How to tell Maven to put DLL dependency into java.library.path?

2013-02-28 Thread Markus Karg
Who said that I do not use the EclEmma Eclipse plugin? Actually I do. :-)

But that does neither solve the problem that each new guy in the team needs to 
set up his java.library.path in Eclipse again, nor the problem that a CI server 
like Jenkins / Hudson needs to know about all native libraries for running unit 
tests. *And* m2e clears the manual native lib settings in Eclipse each time it 
updates from the POM.xml! ;-(

-Ursprüngliche Nachricht-
Von: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] Im Auftrag 
von Anders Hammar
Gesendet: Donnerstag, 28. Februar 2013 08:54
An: Maven Users List
Betreff: Re: How to tell Maven to put DLL dependency into java.library.path?

Why not just use the EclEmma Eclipse plugin? It uses Jacoco from what I read on 
their web site, despite the "emma" in the name of the plugin.

/Anders


On Thu, Feb 28, 2013 at 8:48 AM, Dan Tran  wrote:

> I think that would work if you invoke 'maven install' using m2e.
> However, if you use eclispe's unit test, that may not possible since I 
> too could not working.  I basically configure eclispe or put the dlls 
> in my system path
>
> -D
>
> On Wed, Feb 27, 2013 at 11:21 PM, Markus Karg  wrote:
> > I fact these are not "my " DLLs but are ready-to-use artifacts of 
> > the
> JACOCO project on SourceForge. So I will *never* build them on my own. 
> But I need to have it working m2e. Do you think your solution will 
> convince m2e to add lib to java.library.path?
> >
> > -Ursprüngliche Nachricht-
> > Von: Dan Tran [mailto:dant...@gmail.com]
> > Gesendet: Mittwoch, 27. Februar 2013 22:29
> > An: Maven Users List
> > Betreff: Re: How to tell Maven to put DLL dependency into
> java.library.path?
> >
> > if you already have all you DLL loaded at your maven repo, Then it 
> > make
> sense to do so at this moment
> >
> > if you are required to build dll with maven, better look into NAR
> >
> > -D
> >
> > On Wed, Feb 27, 2013 at 12:35 PM, Wayne Fay  wrote:
> >>> thank you for this interesting idea. I think this would be the 
> >>> most sophisticated ("most mavenic") solution, but I have the 
> >>> feeling that Dan's to be simpler to set up in the short term for a Maven 
> >>> novice?
> >>
> >> Go with Dan's solution for now, but I think you'll change to the 
> >> Nar plugin eventually.
> >>
> >> Wayne
> >>
> >> ---
> >> -- 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
> >
> > 
> > - 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
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



AW: How to tell Maven to put DLL dependency into java.library.path?

2013-02-28 Thread Markus Karg
The bad thing is that just I noticed that m2e actually *clears* already 
manually configured native library paths from  Eclipse's build path config!
So while it is unable to *set* that information, it is checky enough to 
*remove* correct, existing, wanted settings. :-(

-Ursprüngliche Nachricht-
Von: Dan Tran [mailto:dant...@gmail.com] 
Gesendet: Donnerstag, 28. Februar 2013 08:49
An: Maven Users List
Betreff: Re: How to tell Maven to put DLL dependency into java.library.path?

I think that would work if you invoke 'maven install' using m2e.
However, if you use eclispe's unit test, that may not possible since I too 
could not working.  I basically configure eclispe or put the dlls in my system 
path

-D

On Wed, Feb 27, 2013 at 11:21 PM, Markus Karg  wrote:
> I fact these are not "my " DLLs but are ready-to-use artifacts of the JACOCO 
> project on SourceForge. So I will *never* build them on my own. But I need to 
> have it working m2e. Do you think your solution will convince m2e to add lib 
> to java.library.path?

>
> -Ursprüngliche Nachricht-
> Von: Dan Tran [mailto:dant...@gmail.com]
> Gesendet: Mittwoch, 27. Februar 2013 22:29
> An: Maven Users List
> Betreff: Re: How to tell Maven to put DLL dependency into java.library.path?
>
> if you already have all you DLL loaded at your maven repo, Then it 
> make sense to do so at this moment
>
> if you are required to build dll with maven, better look into NAR
>
> -D
>
> On Wed, Feb 27, 2013 at 12:35 PM, Wayne Fay  wrote:
>>> thank you for this interesting idea. I think this would be the most 
>>> sophisticated ("most mavenic") solution, but I have the feeling that 
>>> Dan's to be simpler to set up in the short term for a Maven novice?
>>
>> Go with Dan's solution for now, but I think you'll change to the Nar 
>> plugin eventually.
>>
>> Wayne
>>
>> -
>> 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
>
> -
> 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


AW: How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Markus Karg
I fact these are not "my " DLLs but are ready-to-use artifacts of the JACOCO 
project on SourceForge. So I will *never* build them on my own. But I need to 
have it working m2e. Do you think your solution will convince m2e to add lib to 
java.library.path?

-Ursprüngliche Nachricht-
Von: Dan Tran [mailto:dant...@gmail.com] 
Gesendet: Mittwoch, 27. Februar 2013 22:29
An: Maven Users List
Betreff: Re: How to tell Maven to put DLL dependency into java.library.path?

if you already have all you DLL loaded at your maven repo, Then it make sense 
to do so at this moment

if you are required to build dll with maven, better look into NAR

-D

On Wed, Feb 27, 2013 at 12:35 PM, Wayne Fay  wrote:
>> thank you for this interesting idea. I think this would be the most 
>> sophisticated ("most mavenic") solution, but I have the feeling that 
>> Dan's to be simpler to set up in the short term for a Maven novice?
>
> Go with Dan's solution for now, but I think you'll change to the Nar 
> plugin eventually.
>
> Wayne
>
> -
> 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

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


AW: How to tell Maven to put DLL dependency into java.library.path?

2013-02-27 Thread Markus Karg
Possibly. Because in fact, I need other tools to understand the need for 
java.library.path, too, mosty the m2e Eclipse plugin, which I doubt will 
understand any manual PATH changes in the surefire config (does it?).

-Ursprüngliche Nachricht-
Von: Wayne Fay [mailto:wayne...@gmail.com] 
Gesendet: Mittwoch, 27. Februar 2013 21:35
An: Maven Users List
Betreff: Re: How to tell Maven to put DLL dependency into java.library.path?

> thank you for this interesting idea. I think this would be the most 
> sophisticated ("most mavenic") solution, but I have the feeling that 
> Dan's to be simpler to set up in the short term for a Maven novice?

Go with Dan's solution for now, but I think you'll change to the Nar plugin 
eventually.

Wayne

-
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