Initial revision

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jvanzyl committed 2003-01-24 03:44:26 +00:00
1 parent 66e44f2734
commit 530c640d4f
821 files changed
+55754

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
target
maven.log
velocity.log
+1
View File
@@ -0,0 +1 @@
maven.log
+1
View File
@@ -0,0 +1 @@
mung beans
+161
View File
@@ -0,0 +1,161 @@
<?xml version="1.0" encoding="UTF-8"?>
<project default="jar" name="exampleear" basedir=".">
<property name="defaulttargetdir" value="target"></property>
<property name="classesdir" value="target/classes"></property>
<property name="testclassesdir" value="target/test-classes"></property>
<property name="testreportdir" value="target/test-reports"></property>
<property name="distdir" value="dist"></property>
<property name="javadocdir" value="target/docs/apidocs"></property>
<property name="final.name" value="exampleear-1.0"></property>
<target name="init" description="o Initializes some properties">
<condition property="noget">
<equals arg2="only" arg1="${build.sysclasspath}"></equals>
</condition>
</target>
<target name="compile" description="o Compile the code" depends="get-deps">
<mkdir dir="${classesdir}"></mkdir>
<javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
<src>
<pathelement location="src"></pathelement>
</src>
<classpath>
<fileset dir="lib">
<include name="*.jar"></include>
</fileset>
</classpath>
</javac>
</target>
<target name="jar" description="o Create the jar" depends="compile,test">
<jar jarfile="target/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}"></jar>
</target>
<target name="clean" description="o Clean up the generated directories">
<delete dir="${defaulttargetdir}"></delete>
<delete dir="${distdir}"></delete>
</target>
<target name="dist" description="o Create a distribution" depends="jar, javadoc">
<mkdir dir="dist"></mkdir>
<copy todir="dist">
<fileset dir="${defaulttargetdir}"></fileset>
</copy>
</target>
<target name="test" description="o Run the test cases" depends="compile-tests">
<mkdir dir="${testreportdir}"></mkdir>
<junit dir="./" printSummary="yes" fork="true" haltonerror="true">
<sysproperty key="basedir" value="src/test"></sysproperty>
<formatter type="xml"></formatter>
<formatter usefile="true" type="plain"></formatter>
<classpath>
<fileset dir="lib">
<include name="*.jar"></include>
</fileset>
<pathelement location="target/${final.name}.jar"></pathelement>
<pathelement path="${testclassesdir}"></pathelement>
</classpath>
<batchtest todir="${testreportdir}">
<fileset dir="src/test">
</fileset>
</batchtest>
</junit>
</target>
<target name="compile-tests" depends="compile">
<mkdir dir="${testclassesdir}"></mkdir>
<javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
<src>
<pathelement location="src/test"></pathelement>
</src>
<classpath>
<fileset dir="lib">
<include name="*.jar"></include>
</fileset>
<pathelement location="target/${final.name}.jar"></pathelement>
</classpath>
</javac>
<copy todir="${testclassesdir}">
<fileset dir="src/test">
</fileset>
</copy>
</target>
<target name="javadoc" description="o Generate javadoc" depends="jar">
<mkdir dir="${javadocdir}"></mkdir>
<tstamp>
<format pattern="2002-yyyy" property="year"></format>
</tstamp>
<property name="copyright" value="Copyright &amp;copy; Nettec. All Rights Reserved."></property>
<property name="title" value="exampleear 1.0 API"></property>
<javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src" packagenames="net.nettec.marsh.begin.*">
<classpath>
<fileset dir="lib">
<include name="*.jar"></include>
</fileset>
<pathelement location="target/${final.name}.jar"></pathelement>
</classpath>
</javadoc>
</target>
<target name="get-deps" unless="noget" depends="init">
<mkdir dir="lib"></mkdir>
<get dest="lib/commons-logging-1.0.2.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.2.jar"></get>
<get dest="lib/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar"></get>
</target>
<target name="install-maven">
<get dest="${user.home}/maven-install-latest.jar" usetimestamp="true" src="${maven.repo.remote}/maven/maven-install-latest.jar"></get>
<unjar dest="${maven.home}" src="${user.home}/maven-install-latest.jar"></unjar>
</target>
</project>
+9
View File
@@ -0,0 +1,9 @@
<project default="begin:dist">
<goal name="begin:dist"
description="Build each component">
<attainGoal name="ear:install"/>
</goal>
</project>
@@ -0,0 +1,10 @@
maven.deployable.component=${maven.final.name}.ear
maven.j2ee.ear.appxml=${maven.conf.dir}/application.xml
maven.weblogic.home=C:\\bea\\wlserver6.1
maven.weblogic.host=localhost
maven.weblogic.port=7001
maven.weblogic.server=myserver
maven.weblogic.username=system
maven.weblogic.password=weblogic
maven.weblogic.component=${maven.final.name}
maven.weblogic.debug=true
+103
View File
@@ -0,0 +1,103 @@
<?xml version="1.0"?>
<project>
<pomVersion>3</pomVersion>
<name>exampleear</name>
<id>exampleear</id>
<currentVersion>1.0</currentVersion>
<organization>
<name>Nettec</name>
<url>http://www.nettec.net</url>
</organization>
<inceptionYear>2002</inceptionYear>
<package>net.nettec.marsh.begin</package>
<shortDescription>Marsh Begin TTS Maven</shortDescription>
<!-- Gump integration -->
<gumpRepositoryId/>
<description>
TTS Begin
</description>
<url/>
<issueTrackingUrl>
http://bugzilla
</issueTrackingUrl>
<siteAddress>www.nettec.net</siteAddress>
<siteDirectory/>
<distributionDirectory/>
<repository>
<connection>
scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-turbine-maven
</connection>
<url>
http://cvs.apache.org/viewcvs/jakarta-turbine-maven/
</url>
</repository>
<versions/>
<mailingLists/>
<developers>
<developer>
<name>Nathan Coast</name>
<id>nathanc</id>
<email>nathan.coast@blueyonder.co.uk</email>
<organization>Shadow Solutions</organization>
<role>Java Developer</role>
</developer>
</developers>
<dependencies>
<dependency>
<id>commons-logging</id>
<version>1.0.2</version>
<url>http://jakarta.apache.org/commons/logging.html</url>
<properties>
<ear.bundle.jar>true</ear.bundle.jar>
</properties>
</dependency>
</dependencies>
<build>
<nagEmailAddress>
nathan.coast@nettec.net
</nagEmailAddress>
<sourceDirectory>src</sourceDirectory>
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
<integrationUnitTestSourceDirectory/>
<aspectSourceDirectory/>
<!-- Unit test cases -->
<!--unitTest>
<includes>
<include>**/*Test.java</include>
</includes>
<excludes>
<exclude>**/RepositoryTest.java</exclude>
</excludes>
</unitTest-->
<!-- J A R R E S O U R C E S -->
<!-- Resources that are packaged up inside the JAR file -->
<resources>
<!--includes>
<include>*.xsd</include>
<include>log4j.properties</include>
</includes-->
</resources>
<!-- Integration unit test cases -->
<integrationUnitTest/>
<jars>
</jars>
</build>
</project>
@@ -0,0 +1 @@
mung: beans
@@ -0,0 +1,15 @@
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
<application>
<display-name>workflow ejb app</display-name>
<module>
<ejb>workflow.jar</ejb>
</module>
<module>
<ejb>business.jar</ejb>
</module>
<module>
<ejb>begin_workflow.jar</ejb>
</module>
</application>
+1
View File
@@ -0,0 +1 @@
maven.log
+1
View File
@@ -0,0 +1 @@
foo
+204
View File
@@ -0,0 +1,204 @@
<?xml version="1.0"?>
<project name="maven" default="maven:jar" basedir=".">
<!-- Give user a chance to override without editing this file
(and without typing -D each time they invoke a target) -->
<!-- Allow any user specific values to override the defaults -->
<property file="${user.home}/build.properties" />
<!-- Allow user defaults for this build -->
<property file="build.properties" />
<!-- Set default values for the project -->
<property file="project.properties" />
<!-- maven:start -->
<!-- ================================================================== -->
<!-- D E L E G A T O R S -->
<!-- ================================================================== -->
<target name="maven:site">
<ant antfile="${maven.home}/plugins/docs/build.xml" target="site"/>
</target>
<target name="maven:dist">
<ant antfile="${maven.home}/plugins/core/build.xml" target="dist"/>
</target>
<target name="maven:env">
<ant antfile="${maven.home}/plugins/core/build.xml" target="env"/>
</target>
<target name="maven:test">
<ant antfile="${maven.home}/plugins/test/build.xml" target="test"/>
</target>
<target name="maven:announce">
<ant antfile="${maven.home}/plugins/core/build.xml" target="announce"/>
</target>
<target name="maven:activity-log">
<ant antfile="${maven.home}/plugins/docs/build.xml" target="activity-log"/>
</target>
<target name="maven:compile">
<ant antfile="${maven.home}/plugins/core/build.xml" target="compile"/>
</target>
<target name="maven:validate-war">
<ant antfile="${maven.home}/plugins/j2ee/build.xml" target="validate-war"/>
</target>
<target name="maven:pdf">
<ant antfile="${maven.home}/plugins/docs/build.xml" target="pdf"/>
</target>
<target name="maven:iutest">
<ant antfile="${maven.home}/plugins/iutest/build.xml" target="iutest"/>
</target>
<target name="maven:deploy-site">
<ant antfile="${maven.home}/plugins/docs/build.xml" target="deploy-site"/>
</target>
<target name="maven:deploy-dist">
<ant antfile="${maven.home}/plugins/core/build.xml" target="deploy-dist"/>
</target>
<target name="maven:war">
<ant antfile="${maven.home}/plugins/j2ee/build.xml" target="war"/>
</target>
<target name="maven:verify-project">
<ant antfile="${maven.home}/plugins/core/build.xml" target="verify-project"/>
</target>
<target name="maven:cvs-change-log">
<ant antfile="${maven.home}/plugins/docs/build.xml" target="cvs-change-log"/>
</target>
<target name="maven:ear">
<ant antfile="${maven.home}/plugins/j2ee/build.xml" target="ear"/>
</target>
<target name="maven:cross-ref">
<ant antfile="${maven.home}/plugins/docs/build.xml" target="cross-ref"/>
</target>
<target name="maven:update-jars">
<ant antfile="${maven.home}/plugins/core/build.xml" target="update-jars"/>
</target>
<target name="maven:validate-pom">
<ant antfile="${maven.home}/plugins/core/build.xml" target="validate-pom"/>
</target>
<target name="maven:install-jar">
<ant antfile="${maven.home}/plugins/core/build.xml" target="install-jar"/>
</target>
<target name="maven:fo">
<ant antfile="${maven.home}/plugins/docs/build.xml" target="fo"/>
</target>
<target name="maven:javadocs">
<ant antfile="${maven.home}/plugins/docs/build.xml" target="javadocs"/>
</target>
<target name="maven:validate-struts-war">
<ant antfile="${maven.home}/plugins/struts/build.xml" target="validate-struts-war"/>
</target>
<target name="maven:task-list">
<ant antfile="${maven.home}/plugins/docs/build.xml" target="task-list"/>
</target>
<target name="maven:ejb">
<ant antfile="${maven.home}/plugins/j2ee/build.xml" target="ejb"/>
</target>
<target name="maven:docs">
<ant antfile="${maven.home}/plugins/docs/build.xml" target="docs"/>
</target>
<target name="maven:clean">
<ant antfile="${maven.home}/plugins/core/build.xml" target="clean"/>
</target>
<target name="maven:dist-build">
<ant antfile="${maven.home}/plugins/core/build.xml" target="dist-build"/>
</target>
<target name="maven:metrics">
<ant antfile="${maven.home}/plugins/metrics/build.xml" target="metrics"/>
</target>
<target name="maven:docs-quick">
<ant antfile="${maven.home}/plugins/docs/build.xml" target="docs-quick"/>
</target>
<target name="maven:run-singletest">
<ant antfile="${maven.home}/plugins/test/build.xml" target="run-singletest"/>
</target>
<target name="maven:check-source">
<ant antfile="${maven.home}/plugins/core/build.xml" target="check-source"/>
</target>
<target name="maven:generate-reactor">
<ant antfile="${maven.home}/plugins/reactor/build.xml" target="generate-reactor"/>
</target>
<target name="maven:jar">
<ant antfile="${maven.home}/plugins/core/build.xml" target="jar"/>
</target>
<target name="maven:maven-update">
<ant antfile="${maven.home}/plugins/core/build.xml" target="maven-update"/>
</target>
<target name="maven:gump-descriptor">
<ant antfile="${maven.home}/plugins/core/build.xml" target="gump-descriptor"/>
</target>
<!-- maven:end -->
</project>
@@ -0,0 +1 @@
maven.jarResources.basedir=${pom.build.SourceDirectory}
+103
View File
@@ -0,0 +1,103 @@
<?xml version="1.0"?>
<project>
<version>3</version>
<name>exampleejb</name>
<id>exampleejb</id>
<currentVersion>1.0</currentVersion>
<organization>
<name>Apache Software Foundation</name>
<url>http://jakarta.apache.org/</url>
</organization>
<inceptionYear>2001</inceptionYear>
<package>org.apache.maven</package>
<shortDescription>Project Management Tools</shortDescription>
<!-- Gump integration -->
<gumpRepositoryId>jakarta</gumpRepositoryId>
<description>
</description>
<url>http://jakarta.apache.org/turbine/maven/</url>
<cvsWebUrl>http://cvs.apache.org/viewcvs/jakarta-turbine-maven/</cvsWebUrl>
<issueTrackingUrl>http://nagoya.apache.org/scarab/servlet/scarab/</issueTrackingUrl>
<siteAddress>jakarta.apache.org</siteAddress>
<siteDirectory>/www/jakarta.apache.org/turbine/maven/</siteDirectory>
<distributionDirectory>/www/jakarta.apache.org/builds/jakarta-turbine-maven/</distributionDirectory>
<cvsRoot>:pserver:anoncvs@cvs.apache.org:/home/cvspublic</cvsRoot>
<cvsModule>jakarta-turbine-maven</cvsModule>
<distributions>
</distributions>
<branches>
</branches>
<mailingLists>
<mailingList>
</mailingList>
</mailingLists>
<developers>
</developers>
<!-- Need to mark these as compile-time/run-time -->
<dependencies>
<dependency>
<id>commons-logging</id>
<version>1.0.2</version>
<url>http://jakarta.apache.org/commons/logging.html</url>
<properties>
<ejb.manifest.classpath>true</ejb.manifest.classpath>
<ejb.bundle.jar>true</ejb.bundle.jar>
</properties>
</dependency>
<dependency>
<id>ejb</id>
<jar>ejb.jar</jar>
</dependency>
</dependencies>
<build>
<nagEmailAddress>turbine-maven-dev@jakarta.apache.org</nagEmailAddress>
<sourceDirectory>src/java</sourceDirectory>
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
<integrationUnitTestSourceDirectory/>
<aspectSourceDirectories>
</aspectSourceDirectories>
<!-- Unit test classes -->
<unitTestPatterns>
<unitTestPattern>include = **/*Test.java</unitTestPattern>
</unitTestPatterns>
<!-- Integration unit test classes -->
<integrationUnitTestPatterns>
</integrationUnitTestPatterns>
<!-- J A R R E S O U R C E S -->
<!-- Resources that are packaged up inside the JAR file -->
<resources>
<includes>
<include>**/*.xml</include>
</includes>
</resources>
<jars>
</jars>
</build>
</project>
@@ -0,0 +1 @@
mung: beans
@@ -0,0 +1,22 @@
<?xml version="1.0" ?>
<!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by Prashant Purkar (LevelSeas) -->
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<description>reuters ejbs</description>
<display-name>Reuters EJBs</display-name>
<enterprise-beans>
<!-- ********************** Session Bean Example ********************* -->
<session>
<display-name>Example Session Bean</display-name>
<ejb-name>ExampleEJB</ejb-name>
<home>org.apache.maven.ejb.example.ExampleEJBHome</home>
<remote>org.apache.maven.ejb.example.ExampleEJBRemote</remote>
<ejb-class>org.apache.maven.ejb.example.ExampleEJBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
</assembly-descriptor>
</ejb-jar>
+1
View File
@@ -0,0 +1 @@
zfvczxcv
@@ -0,0 +1,30 @@
package org.apache.maven.ejb.example;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import javax.ejb.EJBException;
/**
* @author Nathan Coast
*/
public class ExampleEJBBean implements SessionBean{
private SessionContext mSessionContext;
public boolean exampleMethod(){
return true;
}
public void setSessionContext(SessionContext context)
{
mSessionContext = context;
}
public void ejbCreate(){}
public void ejbActivate() {}
public void ejbPassivate() {}
public void ejbRemove(){}
}
@@ -0,0 +1,11 @@
package org.apache.maven.ejb.example;
import javax.ejb.EJBHome;
import javax.ejb.CreateException;
import java.rmi.RemoteException;
public interface ExampleEJBHome
extends EJBHome
{
public ExampleEJBRemote create() throws CreateException, RemoteException;
}
@@ -0,0 +1,16 @@
package org.apache.maven.ejb.example;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
/**
*/
public interface ExampleEJBRemote
extends EJBObject
{
public boolean exampleMethod()
throws RemoteException;
}
@@ -0,0 +1 @@
really useful file
+52
View File
@@ -0,0 +1,52 @@
<project default="plugin">
<goal name="plugin">
<!-- set up the directory the jar will be assembled to -->
<property name="assemblyDir" value="target/assemblyDir"/>
<mkdir dir="${assemblyDir}"/>
<!-- copy the plugin files to the assembly directory -->
<copy todir="${assemblyDir}">
<fileset dir=".">
<exclude name="**/target/**"/>
<exclude name="src/**"/>
<exclude name="maven.xml"/>
<exclude name="maven.log"/>
<exclude name="**/velocity.log"/>
<exclude name="**/.cvsignore"/>
</fileset>
</copy>
<!-- jar the files up -->
<jar jarfile="${maven.build.dir}/${maven.final.name}.jar">
<fileset dir="${assemblyDir}"/>
</jar>
<!-- copy the jar to the local repository as a maven jar -->
<copy
file="${maven.build.dir}/${maven.final.name}.jar"
todir="${maven.repo.local}/maven/jars"/>
</goal>
<!-- install the plugin in the maven home directory -->
<goal name="plugin:install" prereqs="plugin"
description="Install the plugin in Maven's plugins dir">
<copy file="${maven.build.dir}/${maven.final.name}.jar"
todir="${maven.home}/plugins"/>
</goal>
<!-- unzip the jar file into a plugin directory -->
<goal name="plugin:deploy" prereqs="plugin"
description="Install an unpacked version of the plugin">
<mkdir dir="${maven.home}/plugins/${maven.final.name}"/>
<unzip src="${maven.build.dir}/${maven.final.name}.jar"
dest="${maven.home}/plugins/${maven.final.name}"/>
</goal>
</project>
+2
View File
@@ -0,0 +1,2 @@
target
maven.log
+52
View File
@@ -0,0 +1,52 @@
<project default="plugin">
<goal name="plugin">
<!-- set up the directory the jar will be assembled to -->
<property name="assemblyDir" value="target/assemblyDir"/>
<mkdir dir="${assemblyDir}"/>
<!-- copy the plugin files to the assembly directory -->
<copy todir="${assemblyDir}">
<fileset dir=".">
<exclude name="**/target/**"/>
<exclude name="src/**"/>
<exclude name="maven.xml"/>
<exclude name="maven.log"/>
<exclude name="**/velocity.log"/>
<exclude name="**/.cvsignore"/>
</fileset>
</copy>
<!-- jar the files up -->
<jar jarfile="${maven.build.dir}/${maven.final.name}.jar">
<fileset dir="${assemblyDir}"/>
</jar>
<!-- copy the jar to the local repository as a maven jar -->
<copy
file="${maven.build.dir}/${maven.final.name}.jar"
todir="${maven.repo.local}/maven/jars"/>
</goal>
<!-- install the plugin in the maven home directory -->
<goal name="plugin:install" prereqs="plugin"
description="Install the plugin in Maven's plugins dir">
<copy file="${maven.build.dir}/${maven.final.name}.jar"
todir="${maven.home}/plugins"/>
</goal>
<!-- unzip the jar file into a plugin directory -->
<goal name="plugin:deploy" prereqs="plugin"
description="Install an unpacked version of the plugin">
<mkdir dir="${maven.home}/plugins/${maven.final.name}"/>
<unzip src="${maven.build.dir}/${maven.final.name}.jar"
dest="${maven.home}/plugins/${maven.final.name}"/>
</goal>
</project>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<project
xmlns:j="jelly:core"
xmlns:bsh="jelly:beanshell">
<goal name="plugin-script:script" description="Run a script">
<bsh:script>
Properties sysprops = System.getProperties();
System.out.println("-testsysprop = " + sysprops.get("testsysprop"));
</bsh:script>
</goal>
</project>
+3
View File
@@ -0,0 +1,3 @@
# -------------------------------------------------------------------
# P L U G I N P R O P E R I E S
# -------------------------------------------------------------------
@@ -0,0 +1,2 @@
maven.xdoc.date=left
maven.xdoc.version=${pom.currentVersion}
+70
View File
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<!-- the version of maven's project object model -->
<pomVersion>3</pomVersion>
<!-- a unique name for this project -->
<id>maven-examples-plugin-script</id>
<!-- a short but descriptive name for the project -->
<name>A plugin using the script tag</name>
<!-- The version of the project under development, e.g.
1.1, 1.2, 2.0-dev -->
<currentVersion>1.0-SNAPSHOT</currentVersion>
<!-- details about the organization that 'owns' the project -->
<organization>
<name>Apache Software Foundation</name>
<url>http://jakarta.apache.org/</url>
</organization>
<!-- the year the project started -->
<inceptionYear>2002</inceptionYear>
<!-- the top level of java packages that this project defines
e.g. if your project contains the packages
com.mycompany.accounts.reports, com.mycompany.accounts.reports
and com.mycompany.accounts.utils, the package would be
'com.mycompany.accounts' -->
<package>org.apache.maven.examples.pluginscript</package>
<!-- a short description of what the project does -->
<shortDescription>
A plugin that does it's processing in a script tag
</shortDescription>
<!-- the project home page -->
<url>http://jakarta.apache.org/turbine/maven/</url>
<!-- the version control repository and http url for online access
the connection element has the form:
scm:<system>:<system specific connection string> -->
<repository>
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-turbine-maven/src/plugins-build/examples/plugin-script</connection>
<url>http://cvs.apache.org/viewcvs/jakarta-turbine-maven/src/plugins-build/examples/plugin-script/</url>
</repository>
<!-- any mailing lists for the project -->
<mailingLists/>
<!-- who the developers are for the project -->
<developers />
<!-- jar files the project is dependent on -->
<dependencies>
<dependency>
<id>bsh</id>
<version>1.2-b3</version>
<properties>
<classloader>root</classloader>
</properties>
</dependency>
</dependencies>
<!-- build information for the project -->
<build />
</project>
+2
View File
@@ -0,0 +1,2 @@
maven.xdoc.date=left
maven.xdoc.version=${pom.currentVersion}
+92
View File
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<!-- the version of maven's project object model -->
<pomVersion>3</pomVersion>
<!-- a unique name for this project -->
<id>maven-examples-plugin</id>
<!-- a short but descriptive name for the project -->
<name>Maven example projects</name>
<!-- the 'group' to which the 'artifacts' belong -->
<groupId>maven</groupId>
<!-- The version of the project under development, e.g.
1.1, 1.2, 2.0-dev -->
<currentVersion>1.1-SNAPSHOT</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>org.apache.maven.examples</package>
<logo>http://jakarta.apache.org/turbine/maven/images/maven.jpg</logo>
<!-- a short description of what the project does -->
<shortDescription>
A collection of example projects showing how to use maven in different
situations
</shortDescription>
<!-- the project home page -->
<url>http://jakarta.apache.org/turbine/maven/reference/plugins/examples/</url>
<issueTrackingUrl>http://jira.werken.com/BrowseProject.jspa?id=10030</issueTrackingUrl>
<siteAddress>jakarta.apache.org</siteAddress>
<siteDirectory>/www/jakarta.apache.org/turbine/maven/reference/plugins/examples/</siteDirectory>
<distributionDirectory>/www/jakarta.apache.org/builds/jakarta-turbine-maven/</distributionDirectory>
<!-- the version control repository and http url for online access
the connection element has the form:
scm:<system>:<system specific connection string> -->
<repository>
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-turbine-maven/src/plugins-build/examples</connection>
<url>http://cvs.apache.org/viewcvs/jakarta-turbine-maven/src/plugins-build/examples/</url>
</repository>
<!-- any mailing lists for the project -->
<mailingLists/>
<!-- who the developers are for the project -->
<developers>
<developer>
<name>dIon Gillard</name>
<id>dion</id>
<email>dion@multitask.com.au</email>
<organization>Multitask Consulting</organization>
<roles>
<role>Java Developer</role>
</roles>
</developer>
</developers>
<!-- jar files the project is dependent on -->
<dependencies/>
<!-- build information for the project -->
<build>
<resources>
<resource>
<directory>${basedir}</directory>
<excludes>
<exclude>target/**</exclude>
<exclude>src/**</exclude>
<exclude>xdocs/**</exclude>
<exclude>maven.xml</exclude>
<exclude>maven.log</exclude>
<exclude>velocity.log</exclude>
<exclude>.cvsignore</exclude>
</excludes>
</resource>
</resources>
</build>
</project>
+4
View File
@@ -0,0 +1,4 @@
maven.log
target
lib
velocity.log
+17
View File
@@ -0,0 +1,17 @@
This project is a simple project that generates an EAR.
It illustrates what Maven can do for a developer with the addition of
a single file - project.xml
To try it out:
- Make sure Maven is installed on your machine
- change to this directory (e.g. cd "Program Files\Maven\examples\simple-java" )
- Try some Maven goals:
maven ear (builds a jar file)
maven site (creates a web site of documentation based on the project)
etc...
For a full list of goals, use:
maven -g
+68
View File
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<!-- the version of maven's project object model -->
<pomVersion>3</pomVersion>
<!-- a unique name for this project -->
<id>maven-examples-simple-ear</id>
<!-- a short but descriptive name for the project -->
<name>Simple Ear</name>
<!-- The version of the project under development, e.g.
1.1, 1.2, 2.0-dev -->
<currentVersion>1.0-SNAPSHOT</currentVersion>
<!-- details about the organization that 'owns' the project -->
<organization>
<name>Apache Software Foundation</name>
<url>http://jakarta.apache.org/</url>
</organization>
<!-- the year the project started -->
<inceptionYear>2002</inceptionYear>
<!-- the top level of java packages that this project defines
e.g. if your project contains the packages
com.mycompany.accounts.reports, com.mycompany.accounts.reports
and com.mycompany.accounts.utils, the package would be
'com.mycompany.accounts' -->
<package>org.apache.maven.examples.simpleear</package>
<!-- a short description of what the project does -->
<shortDescription>A simple ear generating project</shortDescription>
<!-- the project home page -->
<url>http://jakarta.apache.org/turbine/maven/</url>
<!-- the version control repository and http url for online access
the connection element has the form:
scm:<system>:<system specific connection string> -->
<repository>
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-turbine-maven</connection>
<url>http://cvs.apache.org/viewcvs/jakarta-turbine-maven/</url>
</repository>
<!-- any mailing lists for the project -->
<mailingLists/>
<!-- who the developers are for the project -->
<developers />
<!-- jar files the project is dependent on -->
<dependencies>
<dependency>
<id>checkstyle</id>
<version>2.4</version>
<properties>
<ear.bundle.jar>true</ear.bundle.jar>
</properties>
</dependency>
</dependencies>
<!-- build information for the project -->
<build/>
</project>
+12
View File
@@ -0,0 +1,12 @@
<!DOCTYPE application PUBLIC
"-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/application_1_2.dtd">
<application>
<display-name>Sample EAR</display-name>
<description>Sample EAR file's application</description>
<module>
<!-- let's pretend it's an ejb jar -->
<ejb>checkstyle-2.4</ejb>
</module>
</application>
+4
View File
@@ -0,0 +1,4 @@
maven.log
target
lib
velocity.log
+17
View File
@@ -0,0 +1,17 @@
This project is a simple set of java classes.
It illustrates what Maven can do for a developer with the addition of
a single file - project.xml
To try it out:
- Make sure Maven is installed on your machine
- change to this directory (e.g. cd "Program Files\Maven\examples\simple-java" )
- Try some Maven goals:
maven jar (builds a jar file)
maven site (creates a web site of documentation based on the project)
etc...
For a full list of goals, use:
maven -g
+62
View File
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<!-- the version of maven's project object model -->
<pomVersion>3</pomVersion>
<!-- a unique name for this project -->
<id>maven-examples-simple-java</id>
<!-- a short but descriptive name for the project -->
<name>Simple Java</name>
<!-- The version of the project under development, e.g.
1.1, 1.2, 2.0-dev -->
<currentVersion>1.0-SNAPSHOT</currentVersion>
<!-- details about the organization that 'owns' the project -->
<organization>
<name>Apache Software Foundation</name>
<url>http://jakarta.apache.org/</url>
</organization>
<!-- the year the project started -->
<inceptionYear>2002</inceptionYear>
<!-- the top level of java packages that this project defines
e.g. if your project contains the packages
com.mycompany.accounts.reports, com.mycompany.accounts.reports
and com.mycompany.accounts.utils, the package would be
'com.mycompany.accounts' -->
<package>org.apache.maven.examples.simplejava</package>
<!-- a short description of what the project does -->
<shortDescription>A simple java project</shortDescription>
<!-- the project home page -->
<url>http://jakarta.apache.org/turbine/maven/</url>
<!-- the version control repository and http url for online access
the connection element has the form:
scm:<system>:<system specific connection string> -->
<repository>
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-turbine-maven</connection>
<url>http://cvs.apache.org/viewcvs/jakarta-turbine-maven/</url>
</repository>
<!-- any mailing lists for the project -->
<mailingLists/>
<!-- who the developers are for the project -->
<developers />
<!-- jar files the project is dependent on -->
<dependencies/>
<!-- build information for the project -->
<build>
<sourceDirectory>src/java</sourceDirectory>
</build>
</project>
@@ -0,0 +1,15 @@
package org.apache.maven.examples.simplejava;
/**
* A really simple java class
* @author dIon
*/
public class SimpleJava {
/**
* Print a message
* @param args unused
*/
public static void main(String[] args) {
System.out.println("Hello from Maven's SimpleJava");
}
}
+3
View File
@@ -0,0 +1,3 @@
maven.log
target
velocity.log
+16
View File
@@ -0,0 +1,16 @@
This project is a simple web application.
It illustrates how Maven can help in the development of web apps.
To try it out:
- Make sure Maven is installed on your machine
- change to this directory (e.g. cd "Program Files\Maven\examples\simple-webapp" )
- Try some Maven goals:
maven war (builds a jar file)
maven site (documentation based on the project)
etc...
For a full list of goals, use:
maven -g
+62
View File
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<!-- the version of maven's project object model -->
<pomVersion>3</pomVersion>
<!-- a unique name for this project -->
<id>maven-examples-simple-webapp</id>
<!-- a short but descriptive name for the project -->
<name>Simple Web App</name>
<!-- The version of the project under development, e.g.
1.1, 1.2, 2.0-dev -->
<currentVersion>1.0-SNAPSHOT</currentVersion>
<!-- details about the organization that 'owns' the project -->
<organization>
<name>Apache Software Foundation</name>
<url>http://jakarta.apache.org/</url>
</organization>
<!-- the year the project started -->
<inceptionYear>2002</inceptionYear>
<!-- the top level of java packages that this project defines
e.g. if your project contains the packages
com.mycompany.accounts.reports, com.mycompany.accounts.reports
and com.mycompany.accounts.utils, the package would be
'com.mycompany.accounts' -->
<package>org.apache.maven.examples.simplewebapp</package>
<!-- a short description of what the project does -->
<shortDescription>A simple web app project</shortDescription>
<!-- the project home page -->
<url>http://jakarta.apache.org/turbine/maven/</url>
<!-- the version control repository and http url for online access
the connection element has the form:
scm:<system>:<system specific connection string> -->
<repository>
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:jakarta-turbine-maven/src/examples/simple-webapp</connection>
<url>http://cvs.apache.org/viewcvs/jakarta-turbine-maven/src/examples/simple-webapp/</url>
</repository>
<!-- any mailing lists for the project -->
<mailingLists/>
<!-- who the developers are for the project -->
<developers />
<!-- jar files the project is dependent on -->
<dependencies/>
<!-- build information for the project. We have no source, tests,
resources etc
-->
<build />
</project>
@@ -0,0 +1,8 @@
<html>
<body>
<h1>Simple WebApp Home</h1>
<p>
This is a html page for Simple Web App
</p>
</body>
</html>
+1
View File
@@ -0,0 +1 @@
stylesheets
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<document>
<properties>
<title>Maven examples Plug-in Goals</title>
<author email="dion@apache.org">dIon Gillard</author>
</properties>
<body>
<section name="examples Goals">
<p>This plugin defines no goals</p>
</section>
</body>
</document>
+93
View File
@@ -0,0 +1,93 @@
<?xml version="1.0"?>
<document>
<properties>
<title>Maven Examples</title>
<author email="dion@multitask.com.au">dIon Gillard</author>
</properties>
<body>
<section name="Maven Examples">
<p>
This plug-in provides examples of using maven for various types of
projects
</p>
<p>
The following samples are provided:
<ul>
<li>
<a href="#Simple Java Example">A Simple Java Example</a>
</li>
<li>
<a href="#Simple WebApp Example">A Simple Web Application Example</a>
</li>
<li>
<a href="#Example Ear">A Simple Enterprise Application Example</a>
</li>
<li>
<a href="#Example EJB">A Simple EJB Jar Example</a>
</li>
<li>
<a href="#Plugin Script">A Maven plugin which uses a scripting language like BeanShell</a>
</li>
</ul>
</p>
</section>
<section name="Simple Java Example">
<p>
This example project shows how easy it is to 'Mavenize' a set of
Java classes that are built into a jar file.
</p>
<p>
You can find this example in your
<code>${maven.home}/plugins/maven-examples-plugin-1.0/simple-java</code>
directory.
</p>
<p>
It consists of
<ul>
<li>A single java source file:
<code>src/java/org/apache/maven/examples/simplejava/SimpleJava.java</code>
</li>
<li>and a Maven project definition, <code>project.xml</code></li>
</ul>
</p>
<p>
With just the addition of the Maven project.xml file, the wide array
of built-in maven functionality is now available for use in this
project.
</p>
<p>
Maven packages its functionality as <code>plugins</code>
and each plugin adds one or more <code>goals</code> that may be
executed. For example, the <code>java</code> plugin provides a
<code>jar</code> goal for compiling code and bundling it into a
jar file.
</p>
<p>
To build the java code into a jar, type the following from the
command prompt:
</p>
<source>
maven jar
</source>
</section>
<section name="Simple WebApp Example">
<p>Under construction</p>
</section>
<section name="Example Ear">
<p>Under construction</p>
</section>
<section name="Example EJB">
<p>Under construction</p>
</section>
<section name="Plugin Script">
<p>Under construction</p>
</section>
</body>
</document>
+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="Maven examples Plugin">
<title>Maven examples Plugin</title>
<body>
<links>
<item href="http://jakarta.apache.org/turbine/maven/" name="Maven">
</item>
</links>
<menu name="Overview">
<item href="/goals.html" name="Goals">
</item>
<item href="/properties.html" name="Properties">
</item>
</menu>
</body>
</project>
+13
View File
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<document>
<properties>
<title>examples Properties</title>
<author email="dion@apache.org">dIon Gillard</author>
</properties>
<body>
<section name="examples Settings">
<p>There are no settings to customize this plugin</p>
</section>
</body>
</document>