Hello,
You got it right, your solution looks fine. Just check for typos, just like
how you declared the native library as a dependency of your jar artifact.
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.domain</groupId>
<artifactId>libraryx-api</artifactId>
<packaging>jar</packaging>
<name>libraryx</name>
<version>1.0</version>
<description>libraryx</description>
<dependencies>
<dependency>
<groupId>com.domain</groupId> <!-- should be com.hugin -->
<artifactId>libraryx-native</artifactId> <!-- should be hugin-native
-->
<version>1.0</version> <!-- should be 6.3 -->
<type>dll</type>
</dependency>
</dependencies>
</project>
Cheers!
Nap
On 1/12/06, Piotr Bzdyl <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> In my war project I use java library which requires native dll library.
> I created following:
>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.domain</groupId>
> <artifactId>libraryx-api</artifactId>
> <packaging>jar</packaging>
> <name>libraryx</name>
> <version>1.0</version>
> <description>libraryx</description>
> <dependencies>
> <dependency>
> <groupId>com.domain</groupId>
> <artifactId>libraryx-native</artifactId>
> <version>1.0</version>
> <type>dll</type>
> </dependency>
> </dependencies>
> </project>
>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.hugin</groupId>
> <artifactId>hugin-native</artifactId>
> <packaging>dll</packaging>
> <name>Hugin native library</name>
> <version>6.3</version>
> <description>Hugin native library</description>
> </project>
>
> I reference this library in my war project as:
> <dependency>
> <groupId>com.domain</groupId>
> <artifactId>libraryx-api</artifactId>
> <version>1.0</version>
> </dependency>
>
> Is this solution correct? What is the correct way to handle native
> libraries dependencies?
>
> Best regards,
> Piotrek
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>