[ 
http://jira.codehaus.org/browse/MOJO-657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Trieloff reassigned MOJO-657:
----------------------------------

    Assignee: Lars Trieloff

> Plugin fails in multiproject modules
> ------------------------------------
>
>                 Key: MOJO-657
>                 URL: http://jira.codehaus.org/browse/MOJO-657
>             Project: Mojo
>          Issue Type: Bug
>          Components: docbook
>            Reporter: Luke Taylor
>            Assignee: Lars Trieloff
>         Attachments: docbook-maven-plugin-multiproject.patch
>
>
> I've been using the plugin with the patch from MOJO-617 (with some help from 
> the patch author) and I get the following error:
> [INFO] [docbook:transform]
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] basedir 
> /Users/luke/Work/OpenSrc/acegitrunk/acegisecurity/core/src/docbook does not 
> exist
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.IllegalStateException: basedir 
> /Users/luke/Work/OpenSrc/acegitrunk/acegisecurity/core/src/docbook 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.docbook.OLinkDBUpdater.update(OLinkDBUpdater.java:97)
>         at 
> org.codehaus.mojo.docbook.TransformMojo.execute(TransformMojo.java:180)
>         at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
> Adding the following code to the start of the execute() method in 
> TranformMojo seems to get rid of the problem:
>         if (!this.sourceDirectory.exists()) 
>         {
>             log.debug("No docbook source directory " + this.sourceDirectory); 
>             return;              
>         }

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