You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2018/02/24 21:27:54 UTC

maven-archetype git commit: improved documentation on maven-archetype packaging

Repository: maven-archetype
Updated Branches:
  refs/heads/master 985465e59 -> 6116cd981


improved documentation on maven-archetype packaging

Project: http://git-wip-us.apache.org/repos/asf/maven-archetype/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-archetype/commit/6116cd98
Tree: http://git-wip-us.apache.org/repos/asf/maven-archetype/tree/6116cd98
Diff: http://git-wip-us.apache.org/repos/asf/maven-archetype/diff/6116cd98

Branch: refs/heads/master
Commit: 6116cd98118f9fcf599a0c27f74525ac1f2bb7fb
Parents: 985465e
Author: Hervé Boutemy <hb...@apache.org>
Authored: Sat Feb 24 22:16:14 2018 +0100
Committer: Hervé Boutemy <hb...@apache.org>
Committed: Sat Feb 24 22:16:14 2018 +0100

----------------------------------------------------------------------
 .../resources/META-INF/plexus/components.xml    |  2 ++
 .../src/site/apt/archetype-packaging.apt.vm     | 35 ++++++++++++++++++++
 archetype-packaging/src/site/apt/index.apt.vm   |  3 ++
 archetype-packaging/src/site/site.xml           |  4 +++
 4 files changed, 44 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/6116cd98/archetype-packaging/src/main/resources/META-INF/plexus/components.xml
----------------------------------------------------------------------
diff --git a/archetype-packaging/src/main/resources/META-INF/plexus/components.xml b/archetype-packaging/src/main/resources/META-INF/plexus/components.xml
index fc252cd..0ed0df4 100644
--- a/archetype-packaging/src/main/resources/META-INF/plexus/components.xml
+++ b/archetype-packaging/src/main/resources/META-INF/plexus/components.xml
@@ -24,6 +24,7 @@
       <role-hint>maven-archetype</role-hint>
       <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
       <configuration>
+        <!-- START SNIPPET: maven-archetype-lifecycle -->
         <phases>
           <process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
           <process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
@@ -35,6 +36,7 @@
           <!-- Update the local catalog -->
           <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
         </phases>
+        <!-- END SNIPPET: maven-archetype-lifecycle -->
       </configuration>
     </component>
 

http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/6116cd98/archetype-packaging/src/site/apt/archetype-packaging.apt.vm
----------------------------------------------------------------------
diff --git a/archetype-packaging/src/site/apt/archetype-packaging.apt.vm b/archetype-packaging/src/site/apt/archetype-packaging.apt.vm
new file mode 100644
index 0000000..a4fb3ff
--- /dev/null
+++ b/archetype-packaging/src/site/apt/archetype-packaging.apt.vm
@@ -0,0 +1,35 @@
+ ------
+Maven Archetype Packaging Reference
+ ------
+Hervé Boutemy
+ ------
+2018-02-24
+ ------
+
+~~ Licensed to the Apache Software Foundation (ASF) under one
+~~ or more contributor license agreements.  See the NOTICE file
+~~ distributed with this work for additional information
+~~ regarding copyright ownership.  The ASF licenses this file
+~~ to you under the Apache License, Version 2.0 (the
+~~ "License"); you may not use this file except in compliance
+~~ with the License.  You may obtain a copy of the License at
+~~
+~~   http://www.apache.org/licenses/LICENSE-2.0
+~~
+~~ Unless required by applicable law or agreed to in writing,
+~~ software distributed under the License is distributed on an
+~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+~~ KIND, either express or implied.  See the License for the
+~~ specific language governing permissions and limitations
+~~ under the License.
+
+~~ NOTE: For help with the syntax of this file, see:
+~~ http://maven.apache.org/doxia/references/apt-format.html
+
+Maven Archetype Packaging Reference
+
+* Plugin bindings for <<<maven-archetype>>> packaging
+
+%{snippet|id=maven-archetype-lifecycle|file=${project.basedir}/src/main/resources/META-INF/plexus/components.xml}
+
+  (see {{{/ref/current/maven-core/default-bindings.html}} plugin bindings for Maven-provided packagings})

http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/6116cd98/archetype-packaging/src/site/apt/index.apt.vm
----------------------------------------------------------------------
diff --git a/archetype-packaging/src/site/apt/index.apt.vm b/archetype-packaging/src/site/apt/index.apt.vm
index 7110db9..20aff6a 100644
--- a/archetype-packaging/src/site/apt/index.apt.vm
+++ b/archetype-packaging/src/site/apt/index.apt.vm
@@ -39,6 +39,9 @@ Maven Archetype Packaging
 
    []
 
+   in addition to classical resource/jar/install/deploy. See {{{./archetype-packaging.html}} Archetype Packaging Reference}
+   for details.
+
 Usage
 
    Declaring <<<maven-archetype>>> packaging to your pom is not the only step required:

http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/6116cd98/archetype-packaging/src/site/site.xml
----------------------------------------------------------------------
diff --git a/archetype-packaging/src/site/site.xml b/archetype-packaging/src/site/site.xml
index d8fdce1..bcdea33 100644
--- a/archetype-packaging/src/site/site.xml
+++ b/archetype-packaging/src/site/site.xml
@@ -24,5 +24,9 @@ under the License.
   xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd">
   <body>
     <menu ref="parent" inherit="top" />
+
+    <menu name="Reference">
+      <item name="Plugin Bindings" href="archetype-packaging.html"/>
+    </menu>
   </body>
 </project>
\ No newline at end of file