You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/05/28 09:16:06 UTC
svn commit: r1796483 - in /maven/site/trunk/content: apt/pom.apt
fml/general.fml
Author: hboutemy
Date: Sun May 28 09:16:06 2017
New Revision: 1796483
URL: http://svn.apache.org/viewvc?rev=1796483&view=rev
Log:
added typical properties keys
Modified:
maven/site/trunk/content/apt/pom.apt
maven/site/trunk/content/fml/general.fml
Modified: maven/site/trunk/content/apt/pom.apt
URL: http://svn.apache.org/viewvc/maven/site/trunk/content/apt/pom.apt?rev=1796483&r1=1796482&r2=1796483&view=diff
==============================================================================
--- maven/site/trunk/content/apt/pom.apt (original)
+++ maven/site/trunk/content/apt/pom.apt Sun May 28 09:16:06 2017
@@ -683,7 +683,21 @@ mvn install:install-file -Dfile=non-mave
Properties are the last required piece in understanding POM basics. Maven properties
are value placeholder, like properties in Ant. Their values are accessible anywhere
- within a POM by using the notation <<<$\{X\}>>>, where <<<X>>> is the property.
+ within a POM by using the notation <<<$\{X\}>>>, where <<<X>>> is the property. Or they can be used by plugins
+ as default values, for example:
+
++-----------------------+
+<project>
+ ...
+ <properties>
+ <maven.compiler.source>1.7<maven.compiler.source>
+ <maven.compiler.target>1.7<maven.compiler.target>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+ </properties>
+ ...
+</project>
++-----------------------+
They come in five different styles:
Modified: maven/site/trunk/content/fml/general.fml
URL: http://svn.apache.org/viewvc/maven/site/trunk/content/fml/general.fml?rev=1796483&r1=1796482&r2=1796483&view=diff
==============================================================================
--- maven/site/trunk/content/fml/general.fml (original)
+++ maven/site/trunk/content/fml/general.fml Sun May 28 09:16:06 2017
@@ -280,7 +280,7 @@ Where: <path-to-file> the path to the f
<source><![CDATA[<project>
...
<properties>
- <project.reporting.outputDirectory>UTF-8</project.reporting.outputDirectory>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
...
</project>]]></source>