[FONT=Times New Roman]Bonjour à tous : je désespère, [/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Times New Roman]Voilà le problème :[/FONT]
[FONT=Times New Roman]Je dois réaliser une transformation xsl via maven.[/FONT]
[FONT=Times New Roman]Sachant qu’une tâche Ant me le permet, j’ai d’abord réalisé cela avec Ant :[/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Times New Roman]<?xml version="1.0" encoding="UTF-8"?>[/FONT]
[FONT=Times New Roman]<project default="xsl">[/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Times New Roman]<target name="xsl">[/FONT]
[FONT=Times New Roman] <xslt[/FONT]
[FONT=Times New Roman] in="aideMixte.xml"[/FONT]
[FONT=Times New Roman] style="GenerationAide.xsl" [/FONT]
[FONT=Times New Roman] out="1.html"/>[/FONT]
[FONT=Times New Roman] </target>[/FONT]
[FONT=Times New Roman]</project>[/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Times New Roman]Je fais ensuite un plugin Maven avec un plugin.jelly qui contient à peu près ça :[/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Times New Roman]<project [/FONT]
[FONT=Times New Roman] xmlns:j="jelly:core"[/FONT]
[FONT=Times New Roman] xmlns:ant="jelly:ant"[/FONT]
[FONT=Times New Roman] xmlns:maven="jelly:maven">[/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Times New Roman]<goal name="xslsl" description="run xsl processor">[/FONT]
[FONT=Times New Roman]<antslt in="${basedir}/aideMixte.xml" style="${basedir}/GenerationAide.xsl" out="${basedir}/1.html"/>[/FONT]
[FONT=Times New Roman]</goal>[/FONT]
[FONT=Times New Roman]</project>[/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Times New Roman]Dans le project.xml du plugin Maven j’ai rajouté les références à toutes les librairies de Ant (j’en ai donc mis plus que ce qu’il faut !!!!)… et j’ai droit au message d’erreur suivant :[/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Courier]"Provider for javax.xml.transform.TransformerFactory cannot be found"[/FONT]
[FONT=Courier][/FONT]
[FONT=Times New Roman]Je décide d’utiliser le transformerFactory xalan, en rajoutant ça au début du plugin.jelly :[/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Times New Roman]${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apache.xalan.processor.TransformerFactoryImpl')}[/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Times New Roman]Sachant que je m’assure de bien avoir mon jar avec la classe org.apache.xalan.processor.TransformerFactoryImpl et d’y faire référence dans le project.xml, j’obtiens cela :[/FONT]
[FONT=Courier]"Provider org.apache.xalan.processor.TransformerFactoryImpl not found"[/FONT]
[FONT=Times New Roman][/FONT]
[FONT=Times New Roman]Que se passé t’il pour ce qui marchait avec Ant ne marche plus avec les mêmes librairies ou avec d’autres ?[/FONT]
[FONT=Times New Roman]Je vous remercie du temps que vous voudrez bien consacrer à mon problème… A bientôt.[/FONT]