The following comment has been added to this issue:

     Author: Milos Kleint
    Created: Thu, 8 Apr 2004 3:02 AM
       Body:
i've scanned the maven-plugin sourcebase for javax.xml.transform.TransformerFactory 
and found a workaround there for my problem, which puts the factory in the system 
properties.
However according to comments there it's a major hack, so I still consider it a bug.
---------------------------------------------------------------------
View this comment:
  
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1220&page=comments#action_18391

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1220

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1220
    Summary: custom ant task's classpath not complete?
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Fix Fors:
             1.0-rc3
   Versions:
             1.0-rc2

   Assignee: Brett Porter
   Reporter: Milos Kleint

    Created: Sun, 4 Apr 2004 5:18 AM
    Updated: Thu, 8 Apr 2004 3:02 AM
Environment: maven rc2, jdk 1.4.2, mandrakelinux10

Description:
I'm writing a plugin for creating netbeans modules using maven.
One part of it doens't work for me. I'm using netbeans own ant tasks to generate the 
files.
One of the tasks requires a javax.xml.transform.TransformerFactory for the file 
generation.
The affected code in nbantext calls this method:
Transformer t = TransformerFactory.newInstance().newTransformer();

I was not able to put xalan of the classpath of the task. Or better to say, it maybe 
is on the classpath, but it won't find the provider for the interface by searching the 
jars' META-INF/services folder.
The only way I succeed was to put the xalan's factory impl on the maven startup into 
the system property (maven --offline -Djavax.xml.transform.TransformerFactory=<impl 
name> nbm)


what I tried:
I added the xalan jar as dependency.
I added it on the <classloader>root></classloader>
I tried something along these lines in the taks definition:
   <ant:taskdef name="genlist" classname="org.netbeans.nbbuild.MakeListOfNBM" >
       <ant:classpath>
           <ant:pathelement location="${plugin.getDependencyPath('xalan:xalan')}"/>
           <ant:pathelement 
location="${plugin.getDependencyPath('netbeans:nbantext')}"/>
           <ant:path refid="maven.dependency.classpath"/>
       </ant:classpath>
   </ant:taskdef>

nothing of this works. Any idea?



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to