[ 
http://jira.codehaus.org/browse/MCASTOR-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126637
 ] 

bentmann edited comment on MCASTOR-1 at 3/9/08 10:51 AM:
------------------------------------------------------------------

bq. What does your plugin configuration actually look like ?
This should trigger the failure if the current working directory does not match 
the project's base directory
{code:xml}
<schemaDirectory>src/main/resources/xsd</schemaDirectory>
{code} 

Werner, you are facing a problem outlined under [Common Bugs, Relative 
Paths|http://www.nabble.com/Common-Bugs-to14783703s177.html#a14783703]. The 
easiest way to fix this is to follow Trygve's first suggestion to change this 
(and all other path parameters) from java.lang.String to java.io.File in order 
to benefit from Maven's automatic path translation.

      was (Author: bentmann):
    bq. What does your plugin configuration actually look like ?
This should trigger the failure
{code:xml}
<schemaDirectory>src/main/resources/xsd</schemaDirectory>
{code} 

Werner, you are facing a problem outlined under [Common Bugs, Relative 
Paths|http://www.nabble.com/Common-Bugs-to14783703s177.html#a14783703]. The 
easiest way to fix this is to follow Trygve's first suggestion to change this 
(and all other path parameters) from java.lang.String to java.io.File in order 
to benefit from Maven's automatic path translation.
  
> The schemaDirectory isn't properly ${basedir} aligned
> -----------------------------------------------------
>
>                 Key: MCASTOR-1
>                 URL: http://jira.codehaus.org/browse/MCASTOR-1
>             Project: Maven 2.x Castor Plugin
>          Issue Type: Bug
>          Components: Core MOJOs
>    Affects Versions: 1.0
>            Reporter: Trygve Laugstol
>            Assignee: Werner Guttmann
>
> The basedir parameter should probably be changed to be a File parameter, or 
> ${basedir} should be prepended if schemaDirectory is relative.
> Got this while building
> http://svn.apache.org/repos/asf/cocoon/trunk/cocoon-deployer
> Error message.
> [INFO] Building Cocoon Block Deployer
> [INFO]    task-segment: [compile]
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] [castor:generate {execution: default}]
> [INFO] 
> ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] basedir src/main/resources/xsd does not exist
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Trace
> java.lang.IllegalStateException: basedir src/main/resources/xsd does not exist
>         at 
> org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:542)
>         at 
> org.codehaus.plexus.compiler.util.scan.AbstractSourceInclusionScanner.scanForSources(AbstractSourceInclusionScanner.java:78)
>         at 
> org.codehaus.plexus.compiler.util.scan.StaleSourceScanner.getIncludedSources(StaleSourceScanner.java:84)
>         at 
> org.codehaus.mojo.castor.GenerateMojo.computeStaleXSDs(GenerateMojo.java:236)
>         at 
> org.codehaus.mojo.castor.GenerateMojo.execute(GenerateMojo.java:169)
>         at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         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)
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Total time: 7 seconds
> [INFO] Finished at: Mon Jan 16 14:35:56 CET 2006
> [INFO] Final Memory: 6M/10M
> [INFO] 
> ----------------------------------------------------------------------------

-- 
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