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:
1
examples/xdocs/.cvsignore
Normal file
1
examples/xdocs/.cvsignore
Normal file
@@ -0,0 +1 @@
|
||||
stylesheets
|
||||
13
examples/xdocs/goals.xml
Normal file
13
examples/xdocs/goals.xml
Normal 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
examples/xdocs/index.xml
Normal file
93
examples/xdocs/index.xml
Normal 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
examples/xdocs/navigation.xml
Normal file
17
examples/xdocs/navigation.xml
Normal 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
examples/xdocs/properties.xml
Normal file
13
examples/xdocs/properties.xml
Normal 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>
|
||||
Reference in New Issue
Block a user