mpoeschl 2003/02/09 23:55:42
Modified: src/maven-plugin plugin.jelly project.xml
src/maven-plugin/src/plugin-resources/src/pom project.xml
Added: src/maven-plugin maven.xml project.properties
src/maven-plugin/src/plugin-resources/src/conf web.xml
src/maven-plugin/xdocs goals.xml index.xml navigation.xml
properties.xml
Log:
more maven-plugin stuff
Revision Changes Path
1.2 +11 -8 jakarta-turbine-2/src/maven-plugin/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/maven-plugin/plugin.jelly,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- plugin.jelly 7 Feb 2003 19:27:11 -0000 1.1
+++ plugin.jelly 10 Feb 2003 07:55:41 -0000 1.2
@@ -43,18 +43,21 @@
<mkdir dir="${weppappDirectory}/templates/app/navigations"/>
<mkdir dir="${weppappDirectory}/templates/app/layouts"/>
- <copy todir="${weppappDirectory}" filtering="true">
- <fileset dir="${plugin.resources}/src/test"/>
- </copy>
+ <copy todir="${weppappDirectory}/WEB-INF" filtering="true"
+ file="${plugin.resources}/src/conf/web.xml"
+ />
+ <copy tofile="${weppappDirectory}/WEB-INF/conf/TurbineResources.properties"
+ filtering="true"
+ file="${plugin.resources}/src/conf/TurbineResources.master"
+ />
+ <copy tofile="${weppappDirectory}/WEB-INF/conf/Torque.properties"
+ filtering="true"
+ file="${plugin.resources}/src/conf/Torque.master"
+ />
<!-- Starter POM and POM properties. -->
<copy todir="${basedir}" filtering="true">
<fileset dir="${plugin.resources}/src/pom"/>
- </copy>
-
- <!-- Starter conf files to be placed in the JAR. -->
- <copy todir="${basedir}/src/conf">
- <fileset dir="${plugin.resources}/src/conf"/>
</copy>
</goal>
1.2 +14 -27 jakarta-turbine-2/src/maven-plugin/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/maven-plugin/project.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- project.xml 7 Feb 2003 19:27:11 -0000 1.1
+++ project.xml 10 Feb 2003 07:55:41 -0000 1.2
@@ -1,27 +1,13 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
-<!--
- <extend>${basedir}/../project.xml</extend>
--->
- <!-- the version of maven's project object model -->
<pomVersion>3</pomVersion>
-
- <!-- a unique name for this project -->
<id>maven-turbine-plugin</id>
-
- <!-- a short but descriptive name for the project -->
<name>Maven Turbine Plugin</name>
-
- <!-- The version of the project under development, e.g.
- 1.1, 1.2, 2.0-dev -->
<currentVersion>2.3-dev</currentVersion>
-
- <!-- a short description of what the project does -->
<shortDescription>
Maven Turbine Plugin
</shortDescription>
- <!-- the project home page -->
<url>http://jakarta.apache.org/turbine/turbine-2/maven-plugin/</url>
<issueTrackingUrl>http://jira.werken.com/BrowseProject.jspa?id=10030</issueTrackingUrl>
<siteAddress>jakarta.apache.org</siteAddress>
@@ -33,20 +19,22 @@
<url>http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/maven-plugin/</url>
</repository>
- <!-- any mailing lists for the project -->
- <mailingLists/>
+ <mailingLists>
+ <mailingList>
+ <name>Turbine User List</name>
+ <subscribe>[EMAIL PROTECTED]</subscribe>
+ <unsubscribe>[EMAIL PROTECTED]</unsubscribe>
+
<archive>http://archives.apache.org/eyebrowse/SummarizeList?[EMAIL PROTECTED]</archive>
+ </mailingList>
+ <mailingList>
+ <name>Turbine Developer List</name>
+ <subscribe>[EMAIL PROTECTED]</subscribe>
+ <unsubscribe>[EMAIL PROTECTED]</unsubscribe>
+
<archive>http://archives.apache.org/eyebrowse/SummarizeList?[EMAIL PROTECTED]</archive>
+ </mailingList>
+ </mailingLists>
- <!-- who the developers are for the project -->
<developers>
- <developer>
- <name>dIon Gillard</name>
- <id>dion</id>
- <email>[EMAIL PROTECTED]</email>
- <organization>Multitask Consulting</organization>
- <roles>
- <role>Java Developer</role>
- </roles>
- </developer>
<developer>
<name>Martin Poeschl</name>
<id>mpoeschl</id>
@@ -58,7 +46,6 @@
</developer>
</developers>
- <!-- jar files the project is dependent on -->
<dependencies/>
<build>
1.1 jakarta-turbine-2/src/maven-plugin/maven.xml
Index: maven.xml
===================================================================
<project>
<postGoal name="java:compile">
<!-- copy database.dtd to the right place -->
<copy
file="${maven.src.dir}/../../../conf/master/TurbineResources.master"
todir="${maven.build.dest}/plugin-resources/src/conf"
/>
<copy
file="${torque.cvs.dir}/src/conf/master/Torque.master"
todir="${maven.build.dest}/plugin-resources/src/conf"
/>
<!-- copy default.properties to the right place -->
<!--
<copy
file="${maven.src.dir}/conf/default.properties"
todir="${maven.build.dest}/org/apache/torque"
/>
<copy todir="${maven.build.dest}">
<fileset dir="${maven.src.dir}/templates" />
</copy>
-->
</postGoal>
</project>
1.1 jakarta-turbine-2/src/maven-plugin/project.properties
Index: project.properties
===================================================================
torque.cvs.dir = ../../../db-torque
1.2 +11 -14
jakarta-turbine-2/src/maven-plugin/src/plugin-resources/src/pom/project.xml
Index: project.xml
===================================================================
RCS file:
/home/cvs/jakarta-turbine-2/src/maven-plugin/src/plugin-resources/src/pom/project.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- project.xml 7 Feb 2003 19:27:11 -0000 1.1
+++ project.xml 10 Feb 2003 07:55:41 -0000 1.2
@@ -3,24 +3,24 @@
<!-- the version of maven's project object model -->
<pomVersion>3</pomVersion>
-
+
<!-- a unique name for this project -->
<id>app</id>
-
+
<!-- a short but descriptive name for the project -->
<name>Maven example projects</name>
-
+
<!-- The version of the project under development, e.g.
1.1, 1.2, 2.0-dev -->
<currentVersion>1.0</currentVersion>
-
+
<!-- details about the organization that 'owns' the project -->
<organization>
<name>Apache Software Foundation</name>
<url>http://jakarta.apache.org/</url>
<logo>http://jakarta.apache.org/turbine/maven/images/jakarta-logo-blue.gif</logo>
</organization>
-
+
<!-- the year the project started -->
<inceptionYear>2002</inceptionYear>
<package>@PACKAGE@</package>
@@ -48,14 +48,14 @@
<!-- any mailing lists for the project -->
<mailingLists/>
-
+
<!-- who the developers are for the project -->
<developers>
<developer>
- <name>Jason van Zyl</name>
- <id>jvanzyl</id>
- <email>[EMAIL PROTECTED]</email>
- <organization>Zenplex</organization>
+ <name>Full Name</name>
+ <id>userId</id>
+ <email>me@mycompany</email>
+ <organization>mycompany</organization>
<roles>
<role>Java Developer</role>
</roles>
@@ -64,7 +64,7 @@
<!-- jar files the project is dependent on -->
<dependencies/>
-
+
<!-- build information for the project -->
<build>
<nagEmailAddress>[EMAIL PROTECTED]</nagEmailAddress>
@@ -89,7 +89,4 @@
</resource>
</resources>
</build>
-
-
</project>
-
1.1
jakarta-turbine-2/src/maven-plugin/src/plugin-resources/src/conf/web.xml
Index: web.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<servlet-name>@PROJECT@</servlet-name>
<servlet-class>org.apache.turbine.Turbine</servlet-class>
<init-param>
<param-name>applicationRoot</param-name>
<param-value>@APP_ROOT@</param-value>
</init-param>
<init-param>
<param-name>properties</param-name>
<param-value>@APP_PROPERTIES@</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<security-constraint>
<web-resource-collection>
<web-resource-name>templates</web-resource-name>
<url-pattern>/templates/*</url-pattern>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>logs</web-resource-name>
<url-pattern>/logs/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Templates</realm-name>
</login-config>
</web-app>
1.1 jakarta-turbine-2/src/maven-plugin/xdocs/goals.xml
Index: goals.xml
===================================================================
<?xml version="1.0"?>
<document>
<properties>
<title>Maven Turbine Plug-in Goals</title>
<author email="[EMAIL PROTECTED]">Martin Poeschl</author>
</properties>
<body>
<goals>
<goal>
<name>turbine:base</name>
<description>
Setup the environment to start developing a Turbine base application
from scratch.
</description>
</goal>
<goal>
<name>turbine:sample</name>
<description>
Generate an simple application (like the TDK).
</description>
</goal>
</goals>
</body>
</document>
1.1 jakarta-turbine-2/src/maven-plugin/xdocs/index.xml
Index: index.xml
===================================================================
<?xml version="1.0"?>
<document>
<properties>
<title>Maven Turbine Plug-in</title>
<author email="[EMAIL PROTECTED]">Martin Poeschl</author>
</properties>
<body>
<section name="Maven Turbine Generator Plug-in">
<p>
This plugin is a replacement for the TDK.
</p>
<p>
It should help to setup the environment to develop Turbine based
applications.
</p>
<p>
You must specify the package that you want the code to be
generated into, e.g.
</p>
<source>maven -Dpackage=com.mycompany.project genapp</source>
</section>
</body>
</document>
1.1 jakarta-turbine-2/src/maven-plugin/xdocs/navigation.xml
Index: navigation.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="Maven Turbine Plugin">
<title>Maven Turbine Plugin</title>
<body>
<links>
<item name="Turbine" href="http://jakarta.apache.org/turbine/"/>
</links>
<menu name="Overview">
<item name="Goals" href="/goals.html" />
<item name="Properties" href="/properties.html" />
</menu>
</body>
</project>
1.1 jakarta-turbine-2/src/maven-plugin/xdocs/properties.xml
Index: properties.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<document>
<properties>
<title>Maven Turbine Plug-in Properties</title>
<author email="[EMAIL PROTECTED]">Martin Poeschl</author>
</properties>
<body>
<section name="Application Generation Settings">
<table>
<tr><th>Property</th><th>Optional?</th><th>Description</th><th>Default</th></tr>
<tr>
<td>package</td>
<td>No</td>
<td>
Specifies the name of the Java package that code will be
generated for.
</td>
</tr>
</table>
</section>
</body>
</document>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]