From be9219f24b9d81e94287ed35dffe0c69f4acb44c Mon Sep 17 00:00:00 2001 From: dion Date: Mon, 15 Mar 2004 11:09:09 +0000 Subject: [PATCH] - Document maven.ear.src property - Document maven.ear.resources property - Add FAQ on including resources in an EAR - Add FAQ to navigation - Add FAQ to project reports git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114910 13f79535-47bb-0310-9956-ffa450edef68 --- ear/project.xml | 2 +- ear/xdocs/faq.fml | 46 ++++++++++++++++++++++++++++++++++++++++ ear/xdocs/navigation.xml | 1 + ear/xdocs/properties.xml | 24 +++++++++++++++++++-- 4 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 ear/xdocs/faq.fml diff --git a/ear/project.xml b/ear/project.xml index c03cc3ad..a8d89281 100644 --- a/ear/project.xml +++ b/ear/project.xml @@ -98,7 +98,7 @@ maven-changelog-plugin maven-file-activity-plugin maven-developer-activity-plugin - maven-file-activity-plugin + maven-faq-plugin maven-license-plugin maven-linkcheck-plugin diff --git a/ear/xdocs/faq.fml b/ear/xdocs/faq.fml new file mode 100644 index 00000000..ae7213c5 --- /dev/null +++ b/ear/xdocs/faq.fml @@ -0,0 +1,46 @@ + + + + + + + Resources + + + How do I include other files in my EAR? + +

There are two ways to include other resources in the EAR file

+
    +
  1. + Using the maven.ear.src + property, you can specify an entire directory to include, or +
  2. +
  3. + Alternatively, you can use the + resources element + of the project.xml to specify resource across various + directory, just as you would for a jar or war project. +
  4. +
+
+
+ +
+ +
\ No newline at end of file diff --git a/ear/xdocs/navigation.xml b/ear/xdocs/navigation.xml index 9fcdddc6..92776bae 100644 --- a/ear/xdocs/navigation.xml +++ b/ear/xdocs/navigation.xml @@ -29,6 +29,7 @@ + diff --git a/ear/xdocs/properties.xml b/ear/xdocs/properties.xml index e4416e4b..a913aa52 100644 --- a/ear/xdocs/properties.xml +++ b/ear/xdocs/properties.xml @@ -35,7 +35,7 @@ Location of the manifest file to be used within the ear file. - src/application/META-INF/MANIFEST.MF + ${maven.src.dir}/application/META-INF/MANIFEST.MF @@ -46,7 +46,7 @@ to be used within the ear file. - src/application/META-INF/application.xml + ${maven.src.dir}/application/META-INF/application.xml @@ -81,6 +81,26 @@ ${pom.id} + + maven.ear.resources + Yes + + Directory that resources are copied to during the build + + + ${maven.build.dir}/ear + + + + maven.ear.src + Yes + + Single directory for extra files to include in the EAR + + + ${maven.src.dir}/application + +