Hi Damien, Thanks for your answer. It works fine !
Arne -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Damien Lecan Sent: 12. april 2007 18:27 To: Maven Users List Subject: Re: Adding JARs and DLLs to a repository (RXTX)... Hello, Add your dll in repository without pom, as "dll" type Then, use maven-dependency-plugin to get and copy dll were you want. Exemple : <plugin> <artifactId>-maven-dependency-plugin</artifactId> <executions> <execution> <id>copy</id> <phase>process-resources</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>company</groupId> <artifactId>jni-portcomm-wince</artifactId> <version>1.0</version> <type>dll</type> <outputDirectory> ${project.build.outputDirectory} </outputDirectory> <destFileName>JNI_PortComm.dll</destFileName> </artifactItem> <artifactItem> <groupId>company</groupId> <artifactId>jni-portcommsimu-wince</artifactId> <version>1.0</version> <type>dll</type> <outputDirectory> ${project.build.outputDirectory} </outputDirectory> <destFileName>JNI_PortCommSimu.dll</destFileName> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> Damien 2007/4/12, Arne Styve <[EMAIL PROTECTED]>: > Hi, > > I'm relativly new to maven2, but have set up a company repository to > store 3rd party JARs not found (or that I haven't been able to find) > in the central repository, as well as our own JAR-files that w use > accross projects. > > This works fine for any 100% Pure Java JARs, but I have some problems > figuring out how to store JARs that comes with a DLL or two, like the > RxTx-library for serial communication (RS232). Anyone got any good > suggestions on how to store both the JAR-file (rxtx-2.1.jar) and it's > two DLLs (rxtxSerial.dll and rxtxParallell.dll) in a maven2 repository > ? Also how do I get Maven to fetch the DLLs in addition to the JAR > file from the repository ? And finally, when deploying the final > application, how do I get the DLLs to end up in the correct place ? > (Is it possible to pack the DLLs into my JAR file ? > > Any input would be of great help! > > Thanks! > > Regards > Arne Styve > > > > --------------------------------------------------------------------- > 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]
