RE: JNI, freehep-nar-plugin and assembly plugin question

2008-02-25 Thread Brian E. Fox
Googling returns both of the correct pages as the first hit

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 24, 2008 11:41 AM
To: Maven Users List
Subject: Re: JNI, freehep-nar-plugin and assembly plugin question

Could you provide specifics on where to obtain maven-assembly-plugin?
I did'nt see any information in maven distro on NAR...could you provide
any
relevant information on use and configuration?

Thanks
Martin--

- Original Message -
From: Brian E. Fox [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Sunday, February 24, 2008 11:09 AM
Subject: RE: JNI, freehep-nar-plugin and assembly plugin question


You can use the dependency plugin to unpack your zip. It's not clear
though if you are trying to include the .so's into the NAR or something
else. If it's something else, you can use the assembly plugin to pick up
what you need. If it's the nar, then you'll have to experiment with
where to unpack the files so they get included.

-Original Message-
From: Eugeny N Dzhurinsky [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 23, 2008 10:56 AM
To: users@maven.apache.org
Subject: JNI, freehep-nar-plugin and assembly plugin question

Hello, everybody!

I need some help with this task:

We have a project which consists of several modules, and now we need to
add the new one - but this module has a binding to JNI, which requires
to compile and link native code. After the research I've found there is
a plugin at FreeHEP (freehep-nar-plugin) which seems to perform such
kind of task and is able to compile and link native sources within
Maven. This works fine until we tried to assemble the application in
single ZIP archive - we need to include the *.so files in this archive,
however the nar plugin does create a some archive (*.nar) which includes
these SO files, and the question now - how is it possible to unpack this
archive (looks like it is a regular ZIP file?) BEFORE assembling and
then include the *.so files into resulting archive.


Thank you in advance!

--
Eugene N Dzhurinsky

-
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]


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



Re: JNI, freehep-nar-plugin and assembly plugin question

2008-02-25 Thread Haim Ashkenazi
On Sat, Feb 23, 2008 at 5:56 PM, Eugeny N Dzhurinsky [EMAIL PROTECTED] wrote:
 Hello, everybody!

  I need some help with this task:

  We have a project which consists of several modules, and now we need to add
  the new one - but this module has a binding to JNI, which requires to compile
  and link native code. After the research I've found there is a plugin at
  FreeHEP (freehep-nar-plugin) which seems to perform such kind of task and is
  able to compile and link native sources within Maven. This works fine until 
 we
  tried to assemble the application in single ZIP archive - we need to include
  the *.so files in this archive, however the nar plugin does create a some
  archive (*.nar) which includes these SO files, and the question now - how is
  it possible to unpack this archive (looks like it is a regular ZIP file?)
  BEFORE assembling and then include the *.so files into resulting archive.

The nar plugin generates it's binary artifacts (in my case jni .so
libraries) in target/nar/lib/arch/jni. In this case (JNI binary
libs) the only thing that could change from one build to another is
the arch. I'm sure you can find in their documentation how to
reference that. If you produce some other artifacts (e.g. binary
executables) the path would be different, slightly different. You can
just add that to a custom assembly file.

Bye



  Thank you in advance!

  --
  Eugene N Dzhurinsky




-- 
Haim

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



RE: JNI, freehep-nar-plugin and assembly plugin question

2008-02-24 Thread Brian E. Fox
You can use the dependency plugin to unpack your zip. It's not clear
though if you are trying to include the .so's into the NAR or something
else. If it's something else, you can use the assembly plugin to pick up
what you need. If it's the nar, then you'll have to experiment with
where to unpack the files so they get included.

-Original Message-
From: Eugeny N Dzhurinsky [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 23, 2008 10:56 AM
To: users@maven.apache.org
Subject: JNI, freehep-nar-plugin and assembly plugin question

Hello, everybody!

I need some help with this task:

We have a project which consists of several modules, and now we need to
add the new one - but this module has a binding to JNI, which requires
to compile and link native code. After the research I've found there is
a plugin at FreeHEP (freehep-nar-plugin) which seems to perform such
kind of task and is able to compile and link native sources within
Maven. This works fine until we tried to assemble the application in
single ZIP archive - we need to include the *.so files in this archive,
however the nar plugin does create a some archive (*.nar) which includes
these SO files, and the question now - how is it possible to unpack this
archive (looks like it is a regular ZIP file?) BEFORE assembling and
then include the *.so files into resulting archive.


Thank you in advance!

--
Eugene N Dzhurinsky

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



Re: JNI, freehep-nar-plugin and assembly plugin question

2008-02-24 Thread Martin Gainty
Could you provide specifics on where to obtain maven-assembly-plugin?
I did'nt see any information in maven distro on NAR...could you provide any
relevant information on use and configuration?

Thanks
Martin--

- Original Message -
From: Brian E. Fox [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Sunday, February 24, 2008 11:09 AM
Subject: RE: JNI, freehep-nar-plugin and assembly plugin question


You can use the dependency plugin to unpack your zip. It's not clear
though if you are trying to include the .so's into the NAR or something
else. If it's something else, you can use the assembly plugin to pick up
what you need. If it's the nar, then you'll have to experiment with
where to unpack the files so they get included.

-Original Message-
From: Eugeny N Dzhurinsky [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 23, 2008 10:56 AM
To: users@maven.apache.org
Subject: JNI, freehep-nar-plugin and assembly plugin question

Hello, everybody!

I need some help with this task:

We have a project which consists of several modules, and now we need to
add the new one - but this module has a binding to JNI, which requires
to compile and link native code. After the research I've found there is
a plugin at FreeHEP (freehep-nar-plugin) which seems to perform such
kind of task and is able to compile and link native sources within
Maven. This works fine until we tried to assemble the application in
single ZIP archive - we need to include the *.so files in this archive,
however the nar plugin does create a some archive (*.nar) which includes
these SO files, and the question now - how is it possible to unpack this
archive (looks like it is a regular ZIP file?) BEFORE assembling and
then include the *.so files into resulting archive.


Thank you in advance!

--
Eugene N Dzhurinsky

-
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]