Hi,
Are these empty folders? If not: They should be included in the jar
automatically.
You could also have a look at this page:
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html
Regards,
Bram
On Fri, Sep 30, 2011 at 16:21, motes motes mort.mo...@gmail.com wrote:
I have created some sub folders in src/main/resources that I would
like to include in the final artifact.jar file.
build
resources
resource
directorysrc/main/resources//directory
/resource
resource
directorysrc/main/resources/logs/directory
/resource
resource
directorysrc/main/resources/data/directory
/resource
/resources
...
Next I copy these resources to the target folder:
plugin
artifactIdmaven-resources-plugin/artifactId
configuration
outputDirectory${target.basedir}/outputDirectory
includeEmptyDirstrue/includeEmptyDirs
resources
resource
directorysrc/main/resources/directory
/resource
/resources
/configuration
executions
execution
idcopy-resources/id
phasepackaging/phase
goals
goalcopy-resources/goal
/goals
/execution
/executions
/plugin
Further I use the maven-dependency-plugin during compile time to fetch
some dependencies from nexus and copy those the /target folder.
plugin
artifactIdmaven-dependency-plugin/artifactId
executions
execution
idcopy-and-unpack/id
phasegenerate-sources/phase
goals
goalunpack/goal
/goals
configuration
artifactItems
artifactItem
groupIdcom.test/groupId
artifactIdassembly/artifactId
version1.0.1/version
typezip/type
overWritetrue/overWrite
outputDirectory${target.basedir}/outputDirectory
/artifactItem
/artifactItems
/configuration
/execution
/executions
/plugin
These dependencies should also be included in the final artifact.jar
file. But after I have run mvn clean install the artifact.jar file
only contains the manifest file.
How do I include resources from the project and target folder i the
final artifact.jar file?
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org