I am creating a simple Jar project with maven (last)
When running the maven package, I load the jar file into the target directory correctly,
I would like to configure the output so that maven will copy some files and dependencies to the target along with the bank.
Current folder structure:
/
Landing page target structure:
target |
I read the custom assembly on the apache website, I added the configuration to the maven-assembly-plugin and set up the assembly.xml file but I have to do something wrong, I am not getting the correct output.
Here is the assembly.xml file
<assembly> <id/> <formats> <format>dir</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <dependencySets> <dependencySet> <outputDirectory>/lib</outputDirectory> </dependencySet> </dependencySets> <fileSets> <fileSet> <directory>target</directory> <outputDirectory>/lib</outputDirectory> <includes> <include>*.jar</include> </includes> </fileSet> <fileSet> <directory>resources</directory> <outputDirectory>/resources</outputDirectory> <includes> <include>*.*</include> </includes> </fileSet> </fileSets>
The target directory contains lib with dependencies, but it is in the folder with the name of the artifact, the resource directory is not copied at all.
Please inform Thank you
source share