You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2004/06/27 13:08:05 UTC
cvs commit: maven/xdocs faq.fml
dion 2004/06/27 04:08:05
Modified: xdocs Tag: MAVEN-1_0-BRANCH faq.fml
Log:
Use CDATA sections now that the faq plugin has been fixed
Revision Changes Path
No revision
No revision
1.5.4.6 +28 -28 maven/xdocs/faq.fml
Index: faq.fml
===================================================================
RCS file: /home/cvs/maven/xdocs/faq.fml,v
retrieving revision 1.5.4.5
retrieving revision 1.5.4.6
diff -u -r1.5.4.5 -r1.5.4.6
--- faq.fml 7 Jun 2004 12:03:33 -0000 1.5.4.5
+++ faq.fml 27 Jun 2004 11:08:05 -0000 1.5.4.6
@@ -202,21 +202,21 @@
<p>
The solution is to add the JAXP system property via the Jelly script.
</p>
- <source>
+ <source><![CDATA[
${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apache.xalan.processor.TransformerFactoryImpl')}
-<ant:style in="${basedir}/some.xml" out="${maven.build.dest}/other.xml" style="${basedir}/sheet.xsl" processor="trax"/>
-</source>
+<ant:style in="${basedir}/some.xml" out="${maven.build.dest}/other.xml" style="${basedir}/sheet.xsl" processor="trax"/>
+]]></source>
<p>
Also make sure that Xalan is declared as dependencies in your project file:
</p>
- <source>
-<dependency>
- <groupId>xalan</groupId>
- <artifactId>xalan</artifactId>
- <version>2.3.1</version>
- <url>http://xml.apache.org/xalan/</url>
-</dependency>
- </source>
+ <source><![CDATA[
+<dependency>
+ <groupId>xalan</groupId>
+ <artifactId>xalan</artifactId>
+ <version>2.3.1</version>
+ <url>http://xml.apache.org/xalan/</url>
+</dependency>
+ ]]></source>
</answer>
</faq>
<faq id="DownloadPlugin">
@@ -266,12 +266,12 @@
(These replace the deprecated versions of <code>${pom.getPluginContext(...).get/setVariable()}</code>
and <code>maven:pluginVar</code>.)</p>
<p>Example:</p>
- <source>
-<maven:get plugin="maven-war-plugin" property="maven.war.src" var="warSourceDir" />
-<echo>The WAR source directory is ${warSourceDir}<echo>
+ <source><![CDATA[
+<maven:get plugin="maven-war-plugin" property="maven.war.src" var="warSourceDir" />
+<echo>The WAR source directory is ${warSourceDir}<echo>
...
-<maven:set plugin="maven-multiproject-plugin" property="maven.multiproject.includes" value="subprojects/*/project.xml"/>
- </source>
+<maven:set plugin="maven-multiproject-plugin" property="maven.multiproject.includes" value="subprojects/*/project.xml"/>
+ ]]></source>
</answer>
</faq>
</part>
@@ -284,14 +284,14 @@
<answer>
When I try to generate my site I get something like this:
- <source>
+ <source><![CDATA[
BUILD FAILED
null:58:46:
-<x:parse> Invalid source argument. Must be a String, Reader,
+<x:parse> Invalid source argument. Must be a String, Reader,
InputStream or URL. Was type; java.io.File with value:
/home/jvanzyl/js/com.werken/drools/target/jdepend-raw-report.xml
Total time: 12 seconds
- </source>
+ ]]></source>
<p>
This problem has been observed when a version of Jelly used as a
dependency is different than the one distributed with Maven.
@@ -351,15 +351,15 @@
<p>
The correct way to use ant tasks in maven.xml or a plugin is something like:
</p>
- <source>
-<ant:taskdef name="checkstyle"
- classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
- <ant:classpath>
- <ant:pathelement location="${plugin.getDependencyPath('checkstyle:checkstyle')}"/>
- <ant:path refid="maven.dependency.classpath"/>
- <ant:classpath>
-<ant:taskdef>
- </source>
+ <source><![CDATA[
+<ant:taskdef name="checkstyle"
+ classname="com.puppycrawl.tools.checkstyle.CheckStyleTask">
+ <ant:classpath>
+ <ant:pathelement location="${plugin.getDependencyPath('checkstyle:checkstyle')}"/>
+ <ant:path refid="maven.dependency.classpath"/>
+ <ant:classpath>
+<ant:taskdef>
+ ]]></source>
</answer>
</faq>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org