You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-commits@maven.apache.org by bu...@apache.org on 2017/05/28 08:59:07 UTC
svn commit: r1013029 - in /websites/staging/maven/trunk/content: ./
general.html maven-site-1.0-site.jar
Author: buildbot
Date: Sun May 28 08:59:07 2017
New Revision: 1013029
Log:
Staging update by buildbot for maven
Modified:
websites/staging/maven/trunk/content/ (props changed)
websites/staging/maven/trunk/content/general.html
websites/staging/maven/trunk/content/maven-site-1.0-site.jar
Propchange: websites/staging/maven/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun May 28 08:59:07 2017
@@ -1 +1 @@
-1796478
+1796481
Modified: websites/staging/maven/trunk/content/general.html
==============================================================================
--- websites/staging/maven/trunk/content/general.html (original)
+++ websites/staging/maven/trunk/content/general.html Sun May 28 08:59:07 2017
@@ -129,7 +129,7 @@
<li><a href="#plugin-version">How do I determine what version of a plugin I am using?</a></li>
<li><a href="#using-ant-tasks">How can I use Ant tasks in a Maven build?</a></li>
<li><a href="#maven-ant-tasks">How can I use Maven features in an Ant build?</a></li>
-<li><a href="#Compiling-J2SE-5">How do I set up Maven so it will compile with a target and source JVM of my choice?</a></li>
+<li><a href="#Compiling-Java-7">How do I set up Maven so it will compile with a target and source JVM of my choice?</a></li>
<li><a href="#dir-struct">Is it possible to create my own directory structure?</a></li>
<li><a href="#m2-source-code">Where is the source code? I couldn't seem to find a link anywhere on the Maven site.</a></li>
<li><a href="#proxy-needed">Maven can't seem to download the dependencies. Is my installation correct?</a></li>
@@ -186,7 +186,7 @@
<p>
The "Available Plugins" page lists them and provides additional information.
- See <a class="externalLink" href="https://maven.apache.org/plugins/">https://maven.apache.org/plugins</a>
+ See <a href="/plugins/">https://maven.apache.org/plugins</a>
</p>
<p align="right"><a href="#top">[top]</a></p><hr /></dd>
@@ -238,15 +238,29 @@
</p>
<p align="right"><a href="#top">[top]</a></p><hr /></dd>
-<dt><a name="Compiling-J2SE-5">How do I set up Maven so it will compile with a target and source JVM of my choice?</a></dt>
+<dt><a name="Compiling-Java-7">How do I set up Maven so it will compile with a target and source JVM of my choice?</a></dt>
<dd>
<p>
You must configure the source and target parameters in your pom. For example, to set the source and
- target JVM to 1.5, you should have in your pom:
+ target JVM to 7, you should have in your pom:
</p>
-<div class="source"><pre class="prettyprint linenums">
+<div class="source"><pre class="prettyprint linenums"><project>
+ ...
+ <properties>
+ <maven.compiler.source>1.7</maven.compiler.source>
+ <maven.compiler.target>1.7</maven.compiler.target>
+ </properties>
+ ...
+</project></pre></div>
+
+<p>
+ Or if a parent pom overrides for compiler plugin default values and you can't fix it,
+ you'll have to explicitely force the values in the compiler plugin configuration:
+ </p>
+
+<div class="source"><pre class="prettyprint linenums"><project>
...
<build>
...
@@ -256,14 +270,15 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
- <source>1.5</source>
- <target>1.5</target>
+ <source>1.7</source>
+ <target>1.7</target>
</configuration>
</plugin>
</plugins>
...
</build>
- ...</pre></div>
+ ...
+</project></pre></div>
<p align="right"><a href="#top">[top]</a></p><hr /></dd>
<dt><a name="dir-struct">Is it possible to create my own directory structure?</a></dt>
@@ -274,8 +289,8 @@
</p>
<p>
- By configuring <sourceDirectory>, <resources> and other elements of
- the <build> section.
+ By configuring <tt><sourceDirectory></tt>, <tt><resources></tt> and other elements of
+ the <tt><build></tt> section.
</p>
<p>
@@ -288,7 +303,7 @@
<dd>
<p>
- The source code can be found in <a href="source-repository.html">our subversion repository</a>.
+ The source code can be found in <a href="source-repository.html">our subversion and git repositories</a>.
</p>
<p>
@@ -373,8 +388,8 @@ Where: <path-to-file> the path to
<dd>
Add the parameter <tt>-Dmaven.test.skip=true</tt> or <tt>-DskipTests=true</tt> in the command line,
depending on whether you want to skip test compilation and execution or only execution. See the example
- <a href="/plugins/maven-surefire-plugin/examples/skipping-test.html">Skipping Tests</a>
- in the Surefire Plugin's documentation for more details.
+ <a href="/plugins/maven-surefire-plugin/examples/skipping-tests.html">Skipping Tests</a>
+ in <a href="/plugins/maven-surefire-plugin/">the Surefire Plugin's documentation</a> for more details.
<p align="right"><a href="#top">[top]</a></p><hr /></dd>
<dt><a name="run-one-test">How can I run a single unit test?</a></dt>
@@ -386,28 +401,38 @@ Where: <path-to-file> the path to
<dt><a name="special-characters-site">Handle special characters in site</a></dt>
<dd>
-<p>Configure your ide to use the correct encoding. With eclipse, add
+<p>Configure your ide to use the correct encoding. With Eclipse, add
<tt>-Dfile.encoding=ISO-8859-1</tt> in eclipse.ini file</p>
-<p>Configure the output encoding in your pom
+<p>Configure the reporting output encoding in your pom
</p>
-<div class="source"><pre class="prettyprint linenums">
+<div class="source"><pre class="prettyprint linenums"><project>
+ ...
+ <properties>
+ <project.reporting.outputDirectory>UTF-8</project.reporting.outputDirectory>
+ </properties>
+ ...
+</project></pre></div>
+ or if default encoding is overridden in a parent pom that you can't change, configure the site plugin explicitely:
+
+<div class="source"><pre class="prettyprint linenums"><project>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
- <version>3.2</version>
+ <version>3.6</version>
<configuration>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
</plugin>
- ...</pre></div>
+ ...
+<project></pre></div>
<p>
Configure the file encoding use by mvn.
add to MAVEN_OPTS the encoding (same as the ide).
- This can be made with adding <tt>MAVEN_OPTS="-Dfile.encoding=ISO-8859-1"</tt> in $HOME/.profile
+ This can be made with adding <tt>MAVEN_OPTS="-Dfile.encoding=ISO-8859-1"</tt> in <tt>$HOME/.profile</tt>
</p>
<p align="right"><a href="#top">[top]</a></p><hr /></dd>
@@ -419,7 +444,7 @@ Where: <path-to-file> the path to
included in the runtime for Mac OS X and some free JDKs).
</p>
-<div class="source"><pre class="prettyprint linenums">
+<div class="source"><pre class="prettyprint linenums"><project>
...
<profiles>
<profile>
@@ -441,20 +466,22 @@ Where: <path-to-file> the path to
</dependencies>
</profile>
</profiles>
- ...</pre></div>
+ ...
+</project></pre></div>
<p align="right"><a href="#top">[top]</a></p><hr /></dd>
<dt><a name="test-property-name">Maven compiles my test classes but doesn't run them?</a></dt>
<dd>
<p>
- Tests are run by the surefire plugin. The surefire plugin can be configured to run certain test classes and
+ Tests are run by <a href="/surefire/maven-surefire-plugin/">the surefire plugin</a>.
+ The surefire plugin can be configured to run certain test classes and
you may have unintentionally done so by specifying a value to ${test}.
Check your settings.xml and pom.xml for a property named "test" which would like this:
</p>
-<div class="source"><pre class="prettyprint linenums">
+<div class="source"><pre class="prettyprint linenums"><project>
...
<properties>
<property>
@@ -462,18 +489,20 @@ Where: <path-to-file> the path to
<value>some-value</value>
</property>
</properties>
- ...</pre></div>
+ ...
+</project></pre></div>
<p>
or
</p>
-<div class="source"><pre class="prettyprint linenums">
+<div class="source"><pre class="prettyprint linenums"><project>
...
<properties>
<test>some-value</test>
</properties>
- ...</pre></div>
+ ...
+</project></pre></div>
<p align="right"><a href="#top">[top]</a></p><hr /></dd>
<dt><a name="snapshot-artifacts">Where are Maven SNAPSHOT artifacts?</a></dt>
@@ -481,7 +510,7 @@ Where: <path-to-file> the path to
<p>
If you are trying to build a development version of Maven or plugins,
- you may need to access the maven snapshot repositories.
+ you may need to access the Maven snapshot repositories.
</p>
@@ -548,7 +577,7 @@ Where: <path-to-file> the path to
<p>
A mojo is a <b>M</b>aven plain <b>O</b>ld <b>J</b>ava <b>O</b>bject. Each mojo is an executable
- <i>goal</i> in Maven, and a plugin is a distribution of one or more related mojos.
+ <i>goal</i> in Maven, and a Maven plugin is a distribution of one or more related mojos.
</p>
<p align="right"><a href="#top">[top]</a></p><hr /></dd>
Modified: websites/staging/maven/trunk/content/maven-site-1.0-site.jar
==============================================================================
Binary files - no diff available.