Привет, хочу, чтобы некоторые файлы, которые находятся внутри jar, копировались в корневую папку моего проекта java.Не воспроизводить путь во время maven-dependency-plugin unpack goal
Я использовал это:
<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>
проблема, я получаю это
javaProject
src
target
win32-x86/dll1.dll
win32-x86/dll2.dll
Я хочу, чтобы это
javaProject
src
target
dll1.dll
dll2.dll
Я не хочу, чтобы путь к папке с внутри jar, который нужно воспроизвести, я просто хочу, чтобы файлы были сброшены в корень моего проекта.
Любые идеи?
Спасибо.
perfect thanks: D – Eildosa
20 строк XML, где я мог бы сделать это с помощью двух строк сценария bash :( И даже не мог заставить его работать :( Я ненавижу maven. –