you can configure surefire plugin to handle the setting of java.library.path
      <dependencies>
      <dependency>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <systemProperties>
            <property>
              <name>java.library.path</name>
              <value>target/lib/</value>
            </property>
          </systemProperties>
        </configuration>
      </plugin>
http://buildanddeploy.com/node/14

i have a PHP project which i would like to mavenize
PHP's apect which is most bothersome is that i am forced to compile native 
binaries to get PHP so/dlls to load to Apache

the reliability of maven is ensured by the adherence that every distro is a 
plugin which has groupId,artifactId and version
i can enforce C/C++ groupId thru namespace specification..artifactId thru 
filename and version as __VERSION macro
my Microsoft nmake tools are horribly out of date and consistently break ...not 
so for unix platforms
where a OS provider provides you with C,LINK and MAKE tools that are guaranteed 
to work with supplied OS

does maven have a makefile plugin available?
can we add a feature to ensure the supplied makefile produces maven mavenised 
(groupId,artifactId,version) plugins?
Takk!
Martin Gainty 
______________________________________________ 
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> To: [email protected]
> Subject: Handling JNI projects
> From: [email protected]
> Date: Sun, 14 Jun 2009 13:28:48 +0200
> 
> Hello, I have a multiproject application that I want to port to maven. 
> I've managed to mavenize several of the projects that are pure Java with 
> apparently no error. So, my first impression is great. Now, I'm facing a 
> new challenge. One of the projects is using JNI and I have no idea about 
> if maven can handle this. I have seen several plugins supposed to do this 
> job, but I'm not sure after reading the one-page documentation about how 
> to proceed.
> 
> In a first phase, it is enough for me if I can make Maven to download the 
> compiled dll's, just because they are dll and no so. The libraries are 
> windows meant, so that is why I can go on using them as regular files.
> 
> In this matter, my question is how to make maven to download them. Is it 
> in the "package" goal?
> 
> Once this is fixed, in order to run tests I need to pass the 
> -Djava.library.path=/path/to/dll argument to the JVM. Is there any way to 
> have maven to compose this automatically? since they can be several, and 
> according to the maven repository layout they can be stored in different 
> folders. It would be nice if all the folder paths can be automatically 
> passed to the java.library.path argument.
> 
> 
> If I achieve this then I'll feel very happy. But if can also port the 
> build of the native libraries to maven it would be perfect. Does anyone 
> have some tips for me? I would specially appreciate examples because I 
> have already read the yet-another-only-one-page documentation of the 
> native and the freehep plugins.
> 
> Please, keep in mind that my experience in Maven is only for 4 days.
> Thank you all in advance.

_________________________________________________________________
Insert movie times and more without leaving Hotmail®. 
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009

Reply via email to