Author: sebb
Date: Fri Jan 9 16:36:38 2015
New Revision: 1650592
URL: http://svn.apache.org/r1650592
Log:
Bring docs up to date regarding maven.compile[r].* properties
Modified:
commons/cms-site/trunk/content/xdoc/commons-parent-pom.xml
Modified: commons/cms-site/trunk/content/xdoc/commons-parent-pom.xml
URL:
http://svn.apache.org/viewvc/commons/cms-site/trunk/content/xdoc/commons-parent-pom.xml?rev=1650592&r1=1650591&r2=1650592&view=diff
==============================================================================
--- commons/cms-site/trunk/content/xdoc/commons-parent-pom.xml (original)
+++ commons/cms-site/trunk/content/xdoc/commons-parent-pom.xml Fri Jan 9
16:36:38 2015
@@ -198,11 +198,8 @@
<a
href="http://svn.apache.org/repos/asf/commons/proper/commons-parent/trunk/pom.xml">commons-parent</a>
configures the <code>source</code> and <code>target</code> options
in the
<a
href="http://maven.apache.org/plugins/maven-compiler-plugin/">maven-compiler-plugin</a>
to use the
- <code>${maven.compile.source}</code> and
<code>${maven.compile.target}</code> properties
- respectively. [<b>NOTE:</b> the Maven compiler plugin defaults to
- <code>${maven.compiler.source}</code> and
<code>${maven.compiler.target}</code>; however for
- some (historical?) reason the Commons Parent POM has always used
".compile." rather than ".compiler."
- See https://issues.apache.org/jira/browse/COMMONSSITE-69].
+ <code>${maven.compiler.source}</code> and
<code>${maven.compiler.target}</code> properties
+ respectively.
</p>
<p>
So, for example, to configure a component to have
<i>source/target</i> set to <i>1.4</i> add the following
@@ -210,18 +207,23 @@
</p>
<source><![CDATA[
<properties>
- <maven.compile.source>1.4</maven.compile.source>
- <maven.compile.target>1.4</maven.compile.target>
+ <maven.compiler.source>1.4</maven.compiler.source>
+ <maven.compiler.target>1.4</maven.compiler.target>
</properties>
]]></source>
- </subsection>
+ <b>NOTE:</b> the Maven compiler plugin defaults to
+ <code>${maven.compiler.source}</code> and
<code>${maven.compiler.target}</code>; however the
+ Commons Parent POM originally incorrectly used ".compile." rather
than ".compiler."
+ This was fixed in version 31 of the Commons Parent pom.
+ See https://issues.apache.org/jira/browse/COMMONSSITE-69
+ </subsection>
<subsection name="MANIFEST.MF">
<p>
In order to help check what source/target options were used when
building a release, the property values used to
configure the <i>source/target</i> options in the
<a
href="http://maven.apache.org/plugins/maven-compiler-plugin/">maven-compiler-plugin</a>
- (i.e. <code>${maven.compile.source}</code> and
<code>${maven.compile.target}</code>) are also written
+ (i.e. <code>${maven.compiler.source}</code> and
<code>${maven.compiler.target}</code>) are also written
out to the component jar's <code>MANIFEST.MF</code> file with the
following values:
</p>
<source>