----- Original Message ----- 
From: "Herve AGNOUX" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 03, 2004 11:29 AM
Subject: Plugin test doesn't know TransformerFactory


> Hi,
>
> I think it's the same bug/feature as in
> http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-156
>
> In one of my JUnit test, I call a TransformerFactory for some XML work,
and
> Maven answers :
>
>     [junit] Provider for javax.xml.transform.TransformerFactory cannot be
> found
>     [junit] javax.xml.transform.TransformerFactoryConfigurationError:
Provider
> for javax.xml.transform.TransformerFactory cannot be found
>
> As indicate in the FAQ about XSLT and Maven-156, if I put :
>
>
>
${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apac
he.xalan.processor.TransformerFactoryImpl')}
>
> at the begining on maven-test-plugin-1.6.2/plugin.jelly, the problem is
fixed.
>

It's a very bad idea.

You can set some system properties with maven.junit.sysproperties property
in your project.properties :

maven.junit.sysproperties=javax.xml.transform.TransformerFactory
javax.xml.transform.TransformerFactory=org.apache.xalan.processor.Transforme
rFactoryImpl

Emmanuel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to