Hi want some files that are inside a jar copied to the root folder of my java project.
I used this :
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>net.sourceforge.tess4j</groupId>
<artifactId>tess4j</artifactId>
<version>1.4.1</version>
<type>jar</type>
<includes>win32-x86/*.dll</includes>
<overWrite>true</overWrite>
<outputDirectory>${basedir}</outputDirectory> <!-- project root directory -->
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
problem is I get this
javaProject
src
target
win32-x86/dll1.dll
win32-x86/dll2.dll
I want to get this
javaProject
src
target
dll1.dll
dll2.dll
I don't want the folder path from inside the jar to be reproduced, I just want the files dumped in my project's root.
Any ideas?
Thanks.