You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ep...@apache.org on 2006/06/07 07:53:34 UTC
svn commit: r412296 - /maven/site/trunk/src/site/fml/general.fml
Author: epunzalan
Date: Tue Jun 6 22:53:33 2006
New Revision: 412296
URL: http://svn.apache.org/viewvc?rev=412296&view=rev
Log:
PR: MNG-2346
Added an FAQ entry for "Why does Maven compile my test classes but does not run them?"
Also, removed CDATA on some unnecessary parts of the FAQ.
Modified:
maven/site/trunk/src/site/fml/general.fml
Modified: maven/site/trunk/src/site/fml/general.fml
URL: http://svn.apache.org/viewvc/maven/site/trunk/src/site/fml/general.fml?rev=412296&r1=412295&r2=412296&view=diff
==============================================================================
--- maven/site/trunk/src/site/fml/general.fml (original)
+++ maven/site/trunk/src/site/fml/general.fml Tue Jun 6 22:53:33 2006
@@ -72,22 +72,22 @@
to 1.5, you should have in your pom :
</p>
- <source><![CDATA[
-<build>
- ...
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- ...
-</build>
- ]]></source>
+ <source>
+ <build>
+ ...
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ ...
+ </build>
+ </source>
</answer>
</faq>
@@ -158,8 +158,7 @@
<artifact-id> the artifact name for the file
<version> the version of the file
<packaging> the packaging of the file e.g. jar
- ]]></source>
-
+ ]]></source>
<p>
This should load in the file into the maven repository, renaming it as needed.
</p>
@@ -192,7 +191,7 @@
<answer>
<p>Configure your ide to use the correct encoding. With eclipse, add -Dfile.encoding=ISO-8859-1 in eclipse.ini file</p>
<p>Configure the output encoding in your pom
-<source><![CDATA[
+ <source>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
@@ -200,7 +199,7 @@
<outputEncoding>UTF-8</outputEncoding>
</configuration>
</plugin>
-]]></source>
+ </source>
</p>
<p>
Configure the file encoding use by mvn.
@@ -215,7 +214,7 @@
<p>
The following code includes <code>tools.jar</code> on Sun JDKs (it is already included in the runtime for Mac OS X and some free JDKs).
</p>
- <source><![CDATA[
+ <source>
<profiles>
<profile>
<id>default-tools.jar</id>
@@ -236,8 +235,35 @@
</dependencies>
</profile>
</profiles>
-]]></source>
+ </source>
</answer>
+ </faq>
+ <faq id="test-property-name">
+ <question>Why does Maven compile my test classes but don't run them?</question>
+ <answer>
+ <p>
+ Tests are run by the surefire plugin. 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>
+ <source>
+ <properties>
+ <property>
+ <name>test</name>
+ <value>some-value</value>
+ </property>
+ </properties>
+ </source>
+ <p>
+ or
+ </p>
+ <source>
+ <properties>
+ <test>some-value</test>
+ </properties>
+ </source>
+ </answer>
</faq>
</part>
</faqs>