commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Sher" <pa...@actimind.com>
Subject Maven, Jelly and classpath problems
Date Wed, 17 Sep 2003 20:12:39 GMT
Hello,

It is unclear for me how the <jelly:include/> tag works. When I tryed
to use it in maven.xml I've got a problem with classpaths.
For example, I have a simple maven.xml file:

<project default="sds:sample" xmlns:j="jelly:core" xmlns:maven="jelly:maven" xmlns:util="jelly:util">

    <goal name="sds:sample">

        <mkdir dir="target"/>

        <j:file outputMode="html" prettyPrint="on" name="${basedir}/target/output.html">
            <j:include file="${basedir}/templates/sample1.xhtml"/>
        </j:file>

    </goal>

</project>

My dependencies written in project.xml include all the necessary jar files, but it seems to
me
that sample1.xhtml does not inherit these dependencies. For example,
if I'll try to use <xml:transform/> tag, then I'll be presented with the following error:

BUILD FAILED
File...... file:/C:/Work/SDS/
Element... j:include
Line...... 17
Column.... 67
file:/C:/Work/SDS/templates/sample1.xhtml:22:90: <x:transform> Provider net.sf.saxon.TransformerFactoryImpl
not found

If I'll try to start Jelly as java process then the script works fine:

<project default="sds:sample" xmlns:j="jelly:core" xmlns:maven="jelly:maven" xmlns:util="jelly:util">

    <goal name="sds:sample">

        <mkdir dir="target"/>

        <path id="classpath">
            <path refid="maven.dependency.classpath"/>
        </path>

        <java classname="org.apache.commons.jelly.Jelly" fork="yes">
            <classpath refid="classpath"/>
            <arg value="${basedir}/templates/sample1.xhtml"/>
        </java>

    </goal>

</project>

Although this is a workaround it is less usable for me then the first
script. Is there any chance to make the first script work?

P.S:
I am using maven-1.0-beta-10 and commons-jelly-SNAPSHOT

--
Best regards

Pavel Sher, pavel@actimind.com


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message