This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch MEAR-263
in repository https://gitbox.apache.org/repos/asf/maven-ear-plugin.git

commit 15230462e9477d3ef7a1976499d06723088fa286
Author: Karl Heinz Marbaise <[email protected]>
AuthorDate: Thu Mar 8 21:20:23 2018 +0100

    [MEAR-263] - Wrong docs in examples/customize-file-name-mapping.html
---
 .../examples/customize-file-name-mapping.apt.vm    | 38 +++++++++++++++++++---
 1 file changed, 33 insertions(+), 5 deletions(-)

diff --git a/src/site/apt/examples/customize-file-name-mapping.apt.vm 
b/src/site/apt/examples/customize-file-name-mapping.apt.vm
index a099050..24e0dc9 100644
--- a/src/site/apt/examples/customize-file-name-mapping.apt.vm
+++ b/src/site/apt/examples/customize-file-name-mapping.apt.vm
@@ -3,6 +3,7 @@
   ------
   Stephane Nicoll
   <[email protected]>
+  Karl Heinz Marbaise <[email protected]>
   ------
   November 19, 2006
 
@@ -26,8 +27,14 @@
 
 Customizing The File Name Mapping
 
-  It might happen that your project has the same artifactId for different 
groups. To avoid file name
-  clashing, specify the <<<full>>> file name mapping.
+
+    @Parameter( defaultValue = 
"@{groupId}@-@{artifactId}@-@{version}@@{dashClassifier?}@.@{extension}@", 
required = true )
+    private String outputFileNameMapping;
+
+
+  It might happen that you need to change the naming of the artifacts within 
the EAR file. 
+  This can be achieved by using the <<<outputFileNameMapping>>>. The following 
shows how it could be 
+  configured in your pom file. In this example the default value is given as a 
starting point.
 
 +--------
   <build>
@@ -38,12 +45,33 @@ Customizing The File Name Mapping
         <version>${project.version}</version>
         <configuration>
            [...]
-           <fileNameMapping>full</fileNameMapping>
+           
<outputFileNameMapping>@{groupId}@-@{artifactId}@-@{version}@@{dashClassifier?}@.@{extension}@</outputFileNameMapping>
         </configuration>
       </plugin>
     </plugins>
   </build>
 +---------
 
-  As a result, each artifact file name will be prefixed by the groupId to 
avoid clashes. There is also a
-  <<<no-version>>> file name mapping if you do not want to get the version in 
the file names.
+  Based on the given things you can influence the resulting naming based on 
your wishes. For example you
+  want to have all artifacts within your ear file without a version you can 
change the configuration like the 
+  following:
+
++--------
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-ear-plugin</artifactId>
+        <version>${project.version}</version>
+        <configuration>
+           [...]
+           
<outputFileNameMapping>@{groupId}@-@{artifactId}@@{dashClassifier?}@.@{extension}@</outputFileNameMapping>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
++---------
+  
+  Just a some words about the <<<@{dashClassifier?}@>>> which expands to a 
classifier including the preceding
+  dash which is needed to separate it from other parts of the artifact.
+  
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to