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:
3
java/.cvsignore
Normal file
3
java/.cvsignore
Normal file
@@ -0,0 +1,3 @@
|
||||
target
|
||||
velocity.log
|
||||
maven.log
|
||||
283
java/plugin.jelly
Normal file
283
java/plugin.jelly
Normal file
@@ -0,0 +1,283 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<project
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:maven="jelly:maven"
|
||||
xmlns:deploy="deploy"
|
||||
xmlns:resources="resources"
|
||||
xmlns:m="maven">
|
||||
|
||||
<j:choose>
|
||||
<j:when test="${!pom.build.resources.includes.isEmpty()}">
|
||||
<property name="maven.has.jar.resource.patterns" value="true"/>
|
||||
</j:when>
|
||||
<j:when test="${!pom.build.resources.excludes.isEmpty()}">
|
||||
<property name="maven.has.jar.resource.patterns" value="true"/>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
<property name="maven.has.jar.resource.patterns" value="false"/>
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
|
||||
<patternset id="maven.jar.resources.set">
|
||||
<j:forEach var="res" items="${pom.build.resources.includes}">
|
||||
<include name="${res}"/>
|
||||
</j:forEach>
|
||||
<j:forEach var="res" items="${pom.build.resources.excludes}">
|
||||
<exclude name="${res}"/>
|
||||
</j:forEach>
|
||||
</patternset>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- P R E P A R E F I L E S Y S T E M -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal name="java:prepare-filesystem"
|
||||
description="Create the directory structure needed to compile">
|
||||
<mkdir dir="${maven.build.dest}"/>
|
||||
</goal>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- C O M P I L E -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal name="java:compile"
|
||||
description="Compile the project"
|
||||
prereqs="java:prepare-filesystem">
|
||||
|
||||
<j:choose>
|
||||
<j:when test="${sourcesPresent == 'true'}">
|
||||
<javac
|
||||
destdir="${maven.build.dest}"
|
||||
excludes="**/package.html"
|
||||
debug="${maven.compile.debug}"
|
||||
deprecation="${maven.compile.deprecation}"
|
||||
optimize="${maven.compile.optimize}">
|
||||
<src>
|
||||
<path refid="maven.compile.src.set"/>
|
||||
</src>
|
||||
|
||||
<!--
|
||||
|
|
||||
| Source Modifications.
|
||||
|
|
||||
-->
|
||||
|
||||
<j:forEach var="sm" items="${pom.build.sourceModifications}">
|
||||
<available property="classPresent" classname="${sm.className}"/>
|
||||
<j:if test="${classPresent != 'true'}">
|
||||
<j:forEach var="exclude" items="${sm.excludes}">
|
||||
<exclude name="${exclude}"/>
|
||||
</j:forEach>
|
||||
<j:forEach var="include" items="${sm.includes}">
|
||||
<include name="${include}"/>
|
||||
</j:forEach>
|
||||
</j:if>
|
||||
</j:forEach>
|
||||
|
||||
<classpath>
|
||||
<path refid="maven.dependency.classpath"/>
|
||||
<pathelement path="${maven.build.dest}"/>
|
||||
</classpath>
|
||||
<j:if test="${context.getVariable('maven.compile.compilerargs') != null}">
|
||||
<compilerarg line="${maven.compile.compilerargs}" />
|
||||
</j:if>
|
||||
|
||||
<j:if test="${context.getVariable('maven.compile.encoding') != null}">
|
||||
<setProperty name="encoding" value="${maven.compile.encoding}" />
|
||||
</j:if>
|
||||
|
||||
<j:if test="${context.getVariable('maven.compile.executable') != null}">
|
||||
<setProperty name="executable" value="${maven.compile.executable}" />
|
||||
</j:if>
|
||||
|
||||
<j:if test="${context.getVariable('maven.compile.fork') != null}">
|
||||
<setProperty name="fork" value="${maven.compile.fork}" />
|
||||
</j:if>
|
||||
|
||||
<j:if test="${context.getVariable('maven.compile.source') != null}">
|
||||
<setProperty name="source" value="${maven.compile.source}" />
|
||||
</j:if>
|
||||
|
||||
<j:if test="${context.getVariable('maven.compile.target') != null}">
|
||||
<setProperty name="target" value="${maven.compile.target}" />
|
||||
</j:if>
|
||||
</javac>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
<echo>No java source files to compile.</echo>
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
|
||||
</goal>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- J A R R E S O U R C E S -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal name="java:jar-resources"
|
||||
description="Copy any resources that must be present in the deployed JAR file">
|
||||
|
||||
<j:if test="${!pom.build.resources.isEmpty()}">
|
||||
<resources:copy
|
||||
resources="${pom.build.resources}"
|
||||
todir="${maven.build.dest}"
|
||||
/>
|
||||
</j:if>
|
||||
</goal>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- J A R -->
|
||||
<!-- ================================================================== -->
|
||||
<goal name="jar" prereqs="java:jar"
|
||||
description="Create the deliverable jar file."/>
|
||||
<goal name="java:jar"
|
||||
description="Create the deliverable jar file."
|
||||
prereqs="test:test">
|
||||
|
||||
<available property="maven.jar.manifest.available"
|
||||
file="${maven.jar.manifest}"/>
|
||||
|
||||
<jar
|
||||
jarfile="${maven.build.dir}/${maven.final.name}.jar"
|
||||
basedir="${maven.build.dest}"
|
||||
excludes="${maven.jar.excludes}">
|
||||
|
||||
<j:if test="${maven.jar.manifest.available}">
|
||||
<setProperty name="manifest" value="${maven.jar.manifest}" />
|
||||
</j:if>
|
||||
|
||||
<metainf dir="${basedir}">
|
||||
<include name="LICENSE.txt"/>
|
||||
</metainf>
|
||||
<manifest>
|
||||
<attribute name="Built-By" value="${user.name}"/>
|
||||
<attribute name="Created-By" value="Apache Jakarta Maven"/>
|
||||
<attribute name="Package" value="${pom.package}"/>
|
||||
<attribute name="Build-Jdk" value="${java.version}"/>
|
||||
<section name="${pom.package}">
|
||||
<attribute name="Specification-Title" value="${pom.artifactId}"/>
|
||||
<attribute name="Specification-Version" value="${pom.currentVersion}"/>
|
||||
<attribute name="Specification-Vendor" value="${pom.organization.name}"/>
|
||||
<attribute name="Implementation-Title" value="${pom.package}"/>
|
||||
<attribute name="Implementation-Version" value="${pom.currentVersion}"/>
|
||||
<attribute name="Implementation-Vendor" value="${pom.organization.name}"/>
|
||||
</section>
|
||||
</manifest>
|
||||
</jar>
|
||||
</goal>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- S N A P S H O T J A R -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal
|
||||
name="jar:snapshot"
|
||||
description="Create a snapshot jar, ie 'id-YYYYMMDD.hhmmss.jar'">
|
||||
|
||||
<maven:snapshot project="${pom}"/>
|
||||
|
||||
<j:set var="maven.final.name" value="${snapshotSignature}"/>
|
||||
<echo>Building snapshot JAR: ${maven.final.name}</echo>
|
||||
|
||||
<attainGoal name="java:jar"/>
|
||||
|
||||
</goal>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- D E P L O Y S N A P S H O T -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal
|
||||
name="jar:deploy-snapshot"
|
||||
description="Deploy a snapshot jar to the remote repository">
|
||||
|
||||
<m:user-check user="${maven.username}"/>
|
||||
<attainGoal name="jar:snapshot"/>
|
||||
<property name="maven.jar.to.deploy" value="${maven.final.name}.jar"/>
|
||||
<property name="dir" value="${maven.repo.central.directory}/${pom.artifactDirectory}/jars"/>
|
||||
|
||||
<deploy:artifact
|
||||
artifact="${maven.build.dir}/${maven.jar.to.deploy}"
|
||||
type="jars"
|
||||
assureDirectoryCommand="mkdir -p"
|
||||
siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp maven ${maven.jar.to.deploy}; ln -sf ${maven.jar.to.deploy} ${pom.artifactId}-SNAPSHOT.jar"
|
||||
/>
|
||||
|
||||
</goal>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- D E P L O Y J A R -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal
|
||||
name="jar:deploy"
|
||||
description="Deploy a jar to the remote repository">
|
||||
|
||||
<m:user-check user="${maven.username}"/>
|
||||
<attainGoal name="java:jar"/>
|
||||
<property name="maven.jar.to.deploy" value="${maven.final.name}.jar"/>
|
||||
|
||||
<j:set var="sl" value="/"/>
|
||||
|
||||
<deploy:artifact
|
||||
artifact="${maven.build.dir}/${maven.jar.to.deploy}"
|
||||
type="jars"
|
||||
assureDirectoryCommand="mkdir -p"
|
||||
siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}"
|
||||
/>
|
||||
|
||||
</goal>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- I N S T A L L J A R -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal name="jar:install" prereqs="java:jar"
|
||||
description="Install the jar in the local repository">
|
||||
|
||||
<echo>
|
||||
id = '${pom.artifactId}'
|
||||
groupId = '${pom.groupId}'
|
||||
artifactDirectory = '${pom.artifactDirectory}'
|
||||
</echo>
|
||||
|
||||
<property name="jardir__" value="${maven.repo.local}/${pom.artifactDirectory}/jars"/>
|
||||
<mkdir dir="${jardir__}"/>
|
||||
<copy
|
||||
file="${maven.build.dir}/${maven.final.name}.jar"
|
||||
todir="${jardir__}"
|
||||
overwrite="true"
|
||||
/>
|
||||
</goal>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- I N S T A L L S N A P S H O T -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal
|
||||
name="jar:install-snapshot" prereqs="jar:snapshot"
|
||||
description="Install a snapshot jar in the local repository">
|
||||
|
||||
<property name="jardir__" value="${maven.repo.local}/${pom.artifactDirectory}/jars"/>
|
||||
<mkdir dir="${jardir__}"/>
|
||||
<copy
|
||||
file="${maven.build.dir}/${maven.final.name}.jar"
|
||||
tofile="${jardir__}/${pom.artifactId}-SNAPSHOT.jar"
|
||||
overwrite="true"
|
||||
/>
|
||||
<copy
|
||||
file="${maven.build.dir}/${maven.final.name}.jar"
|
||||
tofile="${jardir__}/${maven.final.name}.jar"
|
||||
/>
|
||||
</goal>
|
||||
|
||||
<goal name="clean" description="Remove all project artifacts"
|
||||
prereqs="clean:clean"/>
|
||||
|
||||
<goal name="clean:clean"
|
||||
description="Remove all project artifacts">
|
||||
<delete dir="${maven.build.dir}"/>
|
||||
</goal>
|
||||
|
||||
</project>
|
||||
5
java/plugin.properties
Normal file
5
java/plugin.properties
Normal file
@@ -0,0 +1,5 @@
|
||||
# -------------------------------------------------------------------
|
||||
# P L U G I N P R O P E R T I E S
|
||||
# -------------------------------------------------------------------
|
||||
|
||||
maven.jar.manifest = ${maven.conf.dir}/Manifest.mf
|
||||
7
java/project.properties
Normal file
7
java/project.properties
Normal file
@@ -0,0 +1,7 @@
|
||||
# -------------------------------------------------------------------
|
||||
# P R O J E C T P R O P E R T I E S
|
||||
# -------------------------------------------------------------------
|
||||
|
||||
#maven.jarResources.basedir = src
|
||||
maven.xdoc.date=left
|
||||
maven.xdoc.version=${pom.currentVersion}
|
||||
87
java/project.xml
Normal file
87
java/project.xml
Normal file
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project>
|
||||
|
||||
<extend>${basedir}/../project.xml</extend>
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>maven-java-plugin</id>
|
||||
<name>Maven Java Plug-in</name>
|
||||
<currentVersion>1.2-SNAPSHOT</currentVersion>
|
||||
|
||||
<description>
|
||||
</description>
|
||||
|
||||
<shortDescription>Java Project Management Tools</shortDescription>
|
||||
|
||||
<url>http://jakarta.apache.org/turbine/maven/reference/plugins/java/</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/java/</siteDirectory>
|
||||
<distributionDirectory>/www/jakarta.apache.org/builds/jakarta-turbine-maven/</distributionDirectory>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<name>dIon Gillard</name>
|
||||
<id>dion</id>
|
||||
<email>dion@multitask.com.au</email>
|
||||
<organization>Multitask Consulting</organization>
|
||||
<roles>
|
||||
<role>Documentation</role>
|
||||
<role>Jelly Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
|
||||
<developer>
|
||||
<name>Bob McWhirter</name>
|
||||
<id>werken</id>
|
||||
<email>bob@werken.com</email>
|
||||
<organization>The Werken Company</organization>
|
||||
<roles>
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
|
||||
<developer>
|
||||
<name>Vincent Massol</name>
|
||||
<id>vmassol</id>
|
||||
<email>vmassol@octo.com</email>
|
||||
<organization>Octo Technology</organization>
|
||||
<roles>
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
|
||||
<developer>
|
||||
<name>St?phane Mor</name>
|
||||
<id>smor</id>
|
||||
<email>stephanemor@yahoo.fr</email>
|
||||
<organization>Hasgard Syst?mes et R?seaux</organization>
|
||||
<roles>
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
|
||||
<developer>
|
||||
<name>Kurt Schrader</name>
|
||||
<id>kschrader</id>
|
||||
<email>kschrader@karmalab.org</email>
|
||||
<organization>University of Michigan</organization>
|
||||
<roles>
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
|
||||
<developer>
|
||||
<name>Jason van Zyl</name>
|
||||
<id>jvanzyl</id>
|
||||
<email>jason@zenplex.com</email>
|
||||
<organization>Zenplex</organization>
|
||||
<roles>
|
||||
<role>Architect</role>
|
||||
<role>Release Manager</role>
|
||||
</roles>
|
||||
</developer>
|
||||
|
||||
</developers>
|
||||
|
||||
</project>
|
||||
|
||||
1
java/xdocs/.cvsignore
Normal file
1
java/xdocs/.cvsignore
Normal file
@@ -0,0 +1 @@
|
||||
stylesheets
|
||||
61
java/xdocs/changes.xml
Normal file
61
java/xdocs/changes.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0"?>
|
||||
<document>
|
||||
<properties>
|
||||
<title>Changes</title>
|
||||
<author email="dion@multitask.com.au">dIon Gillard</author>
|
||||
<author email="kschrader@karmalab.org">Kurt Schrader</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<release version="1.2" date="in cvs">
|
||||
<action dev="kschrader" type="add">
|
||||
Added the jar:install-snapshot goal to install a SNAPSHOT
|
||||
version jar in the local repository.
|
||||
</action>
|
||||
<action dev="dion" type="add" due-to="Daigo Moriwaki">
|
||||
Added maven.compile.encoding property
|
||||
</action>
|
||||
<action dev="dion" type="fix">
|
||||
Added docs on properties
|
||||
</action>
|
||||
</release>
|
||||
<release version="1.1" date="2002-10-06">
|
||||
<action dev="dion" type="fix">
|
||||
Added <a href="goals.html">goals documentation</a>
|
||||
</action>
|
||||
<action dev="dion" type="add">
|
||||
Added maven.compile.source, maven.compile.target,
|
||||
maven.compile.executable, maven.compile.fork and maven.compile.compilerargs
|
||||
properties to allow people with generics to build with Maven
|
||||
</action>
|
||||
<action dev="vmassol" type="fix">
|
||||
Compilation now only happens if java source is present
|
||||
</action>
|
||||
<action dev="dion" type="fix">
|
||||
Applied fix for MAVEN-102, which allows a manifest file to be
|
||||
specified, as well as the defaults when jar'ing.
|
||||
</action>
|
||||
<action dev="smor" type="update">
|
||||
Added goals installing and deploying the plugin:
|
||||
<ol>
|
||||
<li>plugin:install installs the plugin in Maven's plugins dir</li>
|
||||
<li>
|
||||
plugin:deploy installs an unpacked version of the plugin in
|
||||
Maven's plugins dir
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
This is meant to ease the installation of plugins without having
|
||||
to bootstrap or manually copy the generated plugin to Maven's
|
||||
plugins dir.
|
||||
</p>
|
||||
</action>
|
||||
</release>
|
||||
<release version="1.0" date="2002-08-04">
|
||||
<action dev="jvanzyl" type="add">
|
||||
Initial plugin created
|
||||
</action>
|
||||
</release>
|
||||
</body>
|
||||
</document>
|
||||
|
||||
118
java/xdocs/goals.xml
Normal file
118
java/xdocs/goals.xml
Normal file
@@ -0,0 +1,118 @@
|
||||
<?xml version="1.0"?>
|
||||
<document>
|
||||
|
||||
<properties>
|
||||
<title>Maven Java Plug-in Goals</title>
|
||||
<author email="dion@multitask.com.au">dIon Gillard</author>
|
||||
<author email="kschrader@karmalab.org">Kurt Schrader</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section name="Goals">
|
||||
<table>
|
||||
<tr><th>Goal</th><th>Description</th></tr>
|
||||
<tr>
|
||||
<td>java:prepare-filesystem</td>
|
||||
<td>
|
||||
Creates the directories necessary for compilation
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>java:compile</td>
|
||||
<td>
|
||||
<p>
|
||||
Compiles the Java source code for the project
|
||||
</p>
|
||||
<p>
|
||||
The source code directory is specified in the
|
||||
<a href="http://jakarta.apache.org/turbine/maven/reference/project-descriptor.html#build">build</a>
|
||||
element of your <code>project.xml</code>
|
||||
file.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>java:jar-resources</td>
|
||||
<td>
|
||||
<p>
|
||||
Copies any resources that must be present in the deployed JAR
|
||||
file, from the directory specified by
|
||||
<a href="properties.html">maven.jarResources.basedir</a> to the
|
||||
build directory, where class files are stored.
|
||||
</p>
|
||||
<p>
|
||||
The <a href="properties.html">maven.jar.resources.set</a>
|
||||
property is used to determine which files from the base directory
|
||||
are included
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>java:jar</td>
|
||||
<td>
|
||||
Creates a jar file in the Maven build directory with the
|
||||
form <code>${project.id}-${project.currentVersion}.jar</code> where
|
||||
the id and currentVersion are taken from the <code>project.xml</code>
|
||||
of the project being built.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>jar:snapshot</td>
|
||||
<td>
|
||||
Creates a jar file in the Maven build directory with the
|
||||
form <code>${project.id}-YYYYMMDD.hhmmss.jar</code> where
|
||||
<ul>
|
||||
<li>
|
||||
id - taken from the <code>project.xml</code>
|
||||
of the project being built
|
||||
</li>
|
||||
<li>YYYYMMDD - The current year in 8 digit format</li>
|
||||
<li>hhmmss - the current time in 6 digit format</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>jar:deploy-snapshot</td>
|
||||
<td>
|
||||
Deploy a snapshot jar to the remote repository
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>jar:deploy</td>
|
||||
<td>
|
||||
Deploy a jar to the remote repository. The jar is built using
|
||||
the <code>java:jar</code> goal
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>jar:install</td>
|
||||
<td>
|
||||
Install a jar into the local repository. The jar is built using
|
||||
the <code>java:jar</code> goal
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>jar:install-snapshot</td>
|
||||
<td>
|
||||
Install a jar into the local repository. The jar is built using
|
||||
the <code>jar:snapshot</code> goal and copied into the local
|
||||
repository as the -SNAPSHOT version.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>clean</td>
|
||||
<td>
|
||||
This goal is a shortcut to the <code>clean:clean</code> goal
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>clean:clean</td>
|
||||
<td>
|
||||
Removes the <a href="properties.html">maven.build.dir</a> and
|
||||
<a href="properties.html">maven.test.reportsDirectory</a> directories
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
25
java/xdocs/index.xml
Normal file
25
java/xdocs/index.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0"?>
|
||||
<document>
|
||||
|
||||
<properties>
|
||||
<title>Maven Java Plug-in</title>
|
||||
<author email="jason@zenplex.com">Jason van Zyl</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section name="Maven Java Plug-in">
|
||||
<p>
|
||||
This plug-in provides your basic Javac and Jar facilities.
|
||||
</p>
|
||||
<p>
|
||||
For more information on the functionality provided by this plugin,
|
||||
please see the <a href="goals.html">Goals</a> document.
|
||||
</p>
|
||||
<p>
|
||||
For more information on how to customise the functionality provided
|
||||
by this plugin, please see the <a href="properties.html">properties</a>
|
||||
document.
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
16
java/xdocs/navigation.xml
Normal file
16
java/xdocs/navigation.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<project name="Maven Java Plugin">
|
||||
|
||||
<title>Maven Java Plugin</title>
|
||||
|
||||
<body>
|
||||
<links>
|
||||
<item name="Maven" href="http://jakarta.apache.org/turbine/maven/"/>
|
||||
<item name="Java" href="http://java.sun.com/"/>
|
||||
</links>
|
||||
<menu name="Overview">
|
||||
<item name="Goals" href="/goals.html" />
|
||||
<item name="Properties" href="/properties.html" />
|
||||
</menu>
|
||||
</body>
|
||||
</project>
|
||||
317
java/xdocs/properties.xml
Normal file
317
java/xdocs/properties.xml
Normal file
@@ -0,0 +1,317 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<document>
|
||||
|
||||
<properties>
|
||||
<title>Properties</title>
|
||||
<author email="smor@apache.org">Stéphane MOR</author>
|
||||
<author email="dion@multitask.com.au">dIon Gillard</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section name="Compile Settings">
|
||||
<table>
|
||||
<tr><th>Property</th><th>Optional?</th><th>Description</th></tr>
|
||||
<tr>
|
||||
<td>maven.compile.aspects</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies that Aspects are included during compilation.
|
||||
Used by the "java:compile" goal.
|
||||
The default value is <code>false</code>. Please
|
||||
refer to the <a href="http://www.aspectj.org/">AspectJ</a>
|
||||
web site for more information on Aspect-Oriented
|
||||
Programming.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.compile.compilerargs</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
<p>
|
||||
Provides arguments to a compiler when <code>maven.compile.fork</code>
|
||||
is set to true
|
||||
</p>
|
||||
<p>
|
||||
Corresponds to the nested <code>compilerarg</code> element for the ant
|
||||
<a href="http://jakarta.apache.org/ant/manual/CoreTasks/javac.html">javac</a>
|
||||
task.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.compile.debug</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies wether to include debugging information in the compiled
|
||||
class files; the default value is <code>on</code>.
|
||||
Used by the "java:compile" goal.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.compile.deprecation</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies wether source should be compiled with deprecation
|
||||
information; the default value is <code>off</code>.
|
||||
Used by the "java:compile" goal.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.compile.encoding</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
<p>
|
||||
Sets the encoding of the .java files being compiled
|
||||
</p>
|
||||
<p>
|
||||
Corresponds to the <code>encoding</code> attribute for the ant
|
||||
<a href="http://jakarta.apache.org/ant/manual/CoreTasks/javac.html">javac</a>
|
||||
task.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.compile.executable</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
<p>
|
||||
Names the program to be invoked as the java compiler
|
||||
</p>
|
||||
<p>
|
||||
Corresponds to the <code>executable</code> attribute for the ant
|
||||
<a href="http://jakarta.apache.org/ant/manual/CoreTasks/javac.html">javac</a>
|
||||
task.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.compile.fork</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
<p>
|
||||
Runs the compiler in a separate process
|
||||
</p>
|
||||
<p>
|
||||
Corresponds to the <code>fork</code> attribute for the ant
|
||||
<a href="http://jakarta.apache.org/ant/manual/CoreTasks/javac.html">javac</a>
|
||||
task.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.compile.optimize</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies whether source should be compiled with optimization; the
|
||||
default value is <code>off</code>.
|
||||
Used by the "java:compile" goal.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.compile.source</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
<p>
|
||||
Provide source compatibility with a specific release
|
||||
</p>
|
||||
<p>
|
||||
Corresponds to the <code>source</code> attribute for the ant
|
||||
<a href="http://jakarta.apache.org/ant/manual/CoreTasks/javac.html">javac</a>
|
||||
task.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.compile.src.set</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
The source directories maven uses to compile java code.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.compile.target</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
<p>
|
||||
Generate class files for a specific JVM version
|
||||
</p>
|
||||
<p>
|
||||
Corresponds to the <code>target</code> attribute for the ant
|
||||
<a href="http://jakarta.apache.org/ant/manual/CoreTasks/javac.html">javac</a>
|
||||
task.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>pom.build.sourceModifications</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
This property is the list of the
|
||||
<source><![CDATA[
|
||||
<build>
|
||||
<sourceModification>
|
||||
<sourceModification>
|
||||
<className></className>
|
||||
<excludes>
|
||||
<exclude></exclude>
|
||||
</excludes>
|
||||
</sourceModification>
|
||||
</sourceModification>
|
||||
</build>
|
||||
]]></source>
|
||||
source modifications in your
|
||||
<a href="http://jakarta.apache.org/turbine/maven/reference/project-descriptor.html">
|
||||
project descriptor</a>. This property is used during compilation to exclude or
|
||||
include classes from compilation depending on whether a named class is available
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
<section name="Jar Settings">
|
||||
<table>
|
||||
<tr>
|
||||
<td>maven.has.jar.resource.patterns</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
This is a calculated property based on the value of the
|
||||
<source><![CDATA[
|
||||
<build>
|
||||
<resources>
|
||||
</resources>
|
||||
</build>
|
||||
]]></source>
|
||||
section of your
|
||||
<a href="http://jakarta.apache.org/turbine/maven/reference/project-descriptor.html">
|
||||
project descriptor</a>. If there are <code>includes</code> or <code>excludes</code>
|
||||
elements, this property will be set to true
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.jar.excludes</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies a list of patterns to exclude from the jar process.
|
||||
The default value is <code>**/package.html</code>, and is used
|
||||
by the "java:jar" goal.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.jar.manifest</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies the manifest to be used in the creation of a jar.
|
||||
This file is 'merged' with the default manifest created by
|
||||
Maven. Any values specified in the file referenced by this
|
||||
property will override Maven's defaults.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.jarResources.basedir</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
The base directory from which resources to be included in a jar can be found.
|
||||
Defaults to the base directory of the project.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.jar.resources.set</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
This is the Ant <code>patternset</code> of all the <code>include</code>s and
|
||||
<code>exclude</code>s from the
|
||||
<source><![CDATA[
|
||||
<build>
|
||||
<resources>
|
||||
</resources>
|
||||
</build>
|
||||
]]></source>
|
||||
section of your
|
||||
<a href="http://jakarta.apache.org/turbine/maven/reference/project-descriptor.html">
|
||||
project descriptor</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
<section name="Deploy Settings">
|
||||
<table>
|
||||
<tr><th>Property</th><th>Optional?</th><th>Description</th></tr>
|
||||
<tr>
|
||||
<td>maven.repo.central</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Central repository for maven artifacts
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.repo.central.directory</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Directory to deploy jars into on the remote repository
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.repo.local</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
The local repository to store maven artifacts, including jar file
|
||||
dependencies
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.username</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
This is the user name used to log in to the remote repository
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
<section name="Other Settings">
|
||||
<table>
|
||||
<tr><th>Property</th><th>Optional?</th><th>Description</th></tr>
|
||||
<tr>
|
||||
<td>maven.build.dest</td>
|
||||
<td>Yes</td>
|
||||
<td>The directory for compiled classes</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.build.dir</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Used by the <code>java:jar</code> goal for
|
||||
<ul>
|
||||
<li>a temporary manifest file, if one is not specified</li>
|
||||
<li>the assembled jar file</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.dependency.classpath</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
This property holds the Ant <code>path</code> of all the dependent jar
|
||||
files listed in the <code>dependencies</code> block of your
|
||||
<a href="http://jakarta.apache.org/turbine/maven/reference/project-descriptor.html">
|
||||
project descriptor</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.final.name</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Usually this property is set to <code>${project.id}-${project.currentVersion}</code>
|
||||
but the snapshot goal overwrites it to be the snapshot signature
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>user.name</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Used by the <code>java:jar</code> goal as the default value of the
|
||||
<code>Built-By</code> attribute of the manifest if one is not specified.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
Reference in New Issue
Block a user