There is a jar file with following structure:
/--
|-dir1
|-file1
|-file2
|-file3
|-dir2
|-dir3
I set filter to take files only from dir1
<includes>dir1/*</includes>
it successfully takes files only from that directory, but in target directory copied files are placed in dir1, how can remove path from files that are copied and leave there only name. So file1
will be copied to target/file1
and not to target/dir1/file1
<build>
<finalName>${project.build.finalName}</finalName>
<plugins>
<plugin>
<inherited>true</inherited>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>compile</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>groupId</groupId>
<artifactId>artifactId</artifactId>
<version>version</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>target/natives</outputDirectory>
<includes>dir1/*</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>