o adding a new maven-archetype-plugin archetype which has a better name
authorJason van Zyl <jvanzyl@apache.org>
Tue, 28 Nov 2006 14:26:25 +0000 (14:26 +0000)
committerJason van Zyl <jvanzyl@apache.org>
Tue, 28 Nov 2006 14:26:25 +0000 (14:26 +0000)
o adding a new maven-archetype-plugin-site archetype to help people get a plugin site up quickly

git-svn-id: https://svn.apache.org/repos/asf/maven/archetype/trunk/maven-archetype-bundles/maven-archetype-plugin-site@480062 13f79535-47bb-0310-9956-ffa450edef68

pom.xml [new file with mode: 0644]
src/main/resources/META-INF/archetype.xml [new file with mode: 0644]
src/main/resources/archetype-resources/pom.xml [new file with mode: 0644]
src/main/resources/archetype-resources/src/site/apt/examples/example.apt [new file with mode: 0644]
src/main/resources/archetype-resources/src/site/apt/index.apt [new file with mode: 0644]
src/main/resources/archetype-resources/src/site/apt/usage.apt [new file with mode: 0644]
src/main/resources/archetype-resources/src/site/site.xml [new file with mode: 0644]

diff --git a/pom.xml b/pom.xml
new file mode 100644 (file)
index 0000000..2822d5c
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,11 @@
+<project>
+  <parent>
+    <artifactId>maven-archetype-bundles</artifactId>
+    <groupId>org.apache.maven.archetypes</groupId>
+    <version>1-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>maven-archetype-plugin-site</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <name>Maven Plugin Site Archetype</name>
+</project>
diff --git a/src/main/resources/META-INF/archetype.xml b/src/main/resources/META-INF/archetype.xml
new file mode 100644 (file)
index 0000000..6cc4d14
--- /dev/null
@@ -0,0 +1,10 @@
+<archetype>
+  <id>plugin</id>
+  <allowPartial>true</allowPartial>
+  <siteResources>
+    <resource>src/site/site.xml</resource>
+    <resource>src/site/apt/index.apt</resource>
+    <resource>src/site/apt/usage.apt</resource>
+    <resource>src/site/apt/examples/example.apt</resource>
+  </siteResources>
+</archetype>
diff --git a/src/main/resources/archetype-resources/pom.xml b/src/main/resources/archetype-resources/pom.xml
new file mode 100644 (file)
index 0000000..26b3da2
--- /dev/null
@@ -0,0 +1,16 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>${groupId}</groupId>
+  <artifactId>${artifactId}</artifactId>
+  <version>${version}</version>
+  <name>Maven</name>
+  <url>http://maven.apache.org/maven2</url>
+  <inceptionYear>2001</inceptionYear>
+  <distributionManagement>
+    <site>
+      <id>website</id>
+      <url>file://${basedir}/target/deployed-site</url>
+    </site>
+  </distributionManagement>
+</project>
diff --git a/src/main/resources/archetype-resources/src/site/apt/examples/example.apt b/src/main/resources/archetype-resources/src/site/apt/examples/example.apt
new file mode 100644 (file)
index 0000000..de78b9b
--- /dev/null
@@ -0,0 +1,34 @@
+ ------
+ SMTP Authentication
+ ------
+ Allan Ramirez
+ ------
+ 21 October 2005
+ ------
+
+SMTP Authentication
+
+  If the SMTP host needs authentication, you can provide your username and password
+  in the <<<\<configuration\>>>> section:
+
+-------------------
+<project>
+  ...
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-changes-plugin</artifactId>
+        <configuration>
+          <smtpHost>mail.yourhost.com</smtpHost>
+          <smtpPort implementation="java.lang.Integer">25</smtpPort>
+          <username>some@email.com</username>
+          <password>somepassword</password>
+          ...
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  ...
+</project>
+-------------------
diff --git a/src/main/resources/archetype-resources/src/site/apt/index.apt b/src/main/resources/archetype-resources/src/site/apt/index.apt
new file mode 100644 (file)
index 0000000..ac497cc
--- /dev/null
@@ -0,0 +1,30 @@
+ ------
+ Introduction
+ ------
+ Jason van Zyl
+ ------
+ 27 November 2006
+ ------
+
+Maven 2 SuperDuper Plugin
+
+  This plugin is used to transform your development life. Don't bother with self-help
+  books on how to get over your build-time blues. Just use this plugin and
+  everything will miraculously change.
+
+* Goals Overview
+
+  * {{{superduper-transform.html}superduper:transform}} performs the miraculous build transformation.
+
+  []
+
+* Usage
+
+  Instructions on how to use the SuperDuper Plugin can be found {{{usage.html}here}}.
+
+* Examples
+
+  To provide you with better understanding of some usages of the SuperDuper Plugin,
+  you can take a look at the following examples:
+
+  * {{{examples/sample-example.html}Sample Example}}
diff --git a/src/main/resources/archetype-resources/src/site/apt/usage.apt b/src/main/resources/archetype-resources/src/site/apt/usage.apt
new file mode 100644 (file)
index 0000000..9ebd6e8
--- /dev/null
@@ -0,0 +1,21 @@
+ ------
+ Usage
+ ------
+ Jason van Zyl
+ ------
+ 27 November 2006
+ ------
+
+Usage
+
+ This plugin is used to create miraculously transform your build!
+*How to miraculously transform your build
+ Describe here how you miraculously transform peoples' builds! 
+
+-------------------
+
+Put your awesome example here.
+
+-------------------
\ No newline at end of file
diff --git a/src/main/resources/archetype-resources/src/site/site.xml b/src/main/resources/archetype-resources/src/site/site.xml
new file mode 100644 (file)
index 0000000..f5ec493
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+/*
+ * Copyright 2006 The Apache Software Foundation.
+ *
+ * Licensed 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.
+ */
+-->
+
+<project>
+  <body>
+    <menu name="Overview">
+      <item name="Introduction" href="index.html"/>
+      <item name="Goals" href="plugin-info.html"/>
+      <item name="Usage" href="usage.html"/>
+      <item name="FAQ" href="faq.html"/>
+    </menu>
+    <menu name="Samples">
+      <item name="Sample Changes Report" href="changes-report.html"/>
+      <item name="Live JIRA Report" href="jira-report.html"/>
+    </menu>
+
+    <menu name="Examples">
+      <item name="Alternate Location for the changes.xml File" href="examples/alternate-changes-xml-location.html"/>
+      <item name="SMTP Authentication" href="examples/smtp-authentication.html"/>
+    </menu>
+  </body>
+</project>