[ 
http://jira.codehaus.org/browse/MOJO-1007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120974
 ] 

janne sinivirta commented on MOJO-1007:
---------------------------------------

the pom fragment used in the above was:

     <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>xslt-maven-plugin</artifactId>
        <executions>
           <execution>
              <goals>
                 <goal>transform</goal>
              </goals>
           </execution>
        </executions>
        <configuration>
                <destDir>${project.build.outputDirectory}/schema-html</destDir>
                <srcDir>src/main/xsd</srcDir>
                <srcIncludes>**/*.xsd</srcIncludes>
                <xslFile>src/main/xslt/extract_documentation.xsl</xslFile>
        </configuration>
      </plugin>

> XSLT plugin doesn't create target sub directories
> -------------------------------------------------
>
>                 Key: MOJO-1007
>                 URL: http://jira.codehaus.org/browse/MOJO-1007
>             Project: Mojo
>          Issue Type: Bug
>          Components: xslt
>            Reporter: janne sinivirta
>
> If source xml is not in the srcDir but in it's subdirectory (lets say 
> src/sub/something.xml), xslt plugin finds the xml, transforms it and then 
> tries to save it to similar subdirectory in target (target/sub/something.xml) 
> but this directory doesn't exist and is not created by the plugin so the 
> plugin fails with exception:
> [INFO] transform, srcFile: C:\workspace\my-services\src\main\xsd\bss\salesinv
> oiceservice-v1.xsd, destFile: C:\workspace\my-services\target\classes\schema-
> html\bss\salesinvoiceservice-v1.xsd
> javax.xml.transform.TransformerException: java.io.FileNotFoundException: 
> C:\work
> space\my-services\target\classes\schema-html\bss\salesinvoiceservice-v1.xsd (
> The system cannot find the path specified)
>         at 
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutpu
> tHandler(TransformerImpl.java:458)
>         at 
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transfor
> m(TransformerImpl.java:285)
>         at org.codehaus.mojo.xslt.XsltMojo.execute(XsltMojo.java:133)
>         at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:443)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:539)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:480)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:459)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:311)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:278)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:143)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: java.io.FileNotFoundException: 
> C:\workspace2\elmo-services\target\cla
> sses\schema-html\bss\salesinvoiceservice-v1.xsd (The system cannot find the 
> path
>  specified)
>         at java.io.FileOutputStream.open(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
>         at 
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutpu
> tHandler(TransformerImpl.java:430)
>         ... 20 more
> ---------

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to