I have a situation where in I have to unzip some resources into the source jar during packaging. Here is the sample project structure:
SampleProject
|__ src
|__ resources
|__ test1.jar [contains test1.xml, test1.*]
|__ test2.jar [contains test2.xml, test2.*]
Expected output:
sampleProject-sources.jar
|__ src
|__ resources
|__ test1
|__test1.xml
|__ test1.*
|__ test2
|__test2.xml
|__test2.*
My pom.xml to generate sources:
<plugin>
<groupId>${maven-groupid}</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-version}</version>
<configuration>
<strictSrcIncludes>false</strictSrcIncludes>
</configuration>
</plugin>
What additional configuration should be included into pom.xml