You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Herve AGNOUX <he...@diaam-informatique.com> on 2004/09/03 11:29:47 UTC
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.apache.xalan.processor.TransformerFactoryImpl')}
at the begining on maven-test-plugin-1.6.2/plugin.jelly, the problem is fixed.
--
SARL diaam informatique - 04 77 25 43 28
Ingenierie, développements de systèmes d'information
http://www.diaam-informatique.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Plugin test doesn't know TransformerFactory
Posted by Herve AGNOUX <he...@diaam-informatique.com>.
Le Vendredi 03 Septembre 2004 11:39, Emmanuel Venisse a écrit :
>
> 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.Transform
>e rFactoryImpl
>
It's work also. Thank you for the good idea :-) I'm a little losted with all
the plugins, properties, and so on, of Maven.
--
SARL diaam informatique - 04 77 25 43 28
Ingenierie, développements de systèmes d'information
http://www.diaam-informatique.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Plugin test doesn't know TransformerFactory
Posted by Emmanuel Venisse <em...@venisse.net>.
----- Original Message -----
From: "Herve AGNOUX" <he...@diaam-informatique.com>
To: <us...@maven.apache.org>
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org