FileNotFoundException with different drives
-------------------------------------------

                 Key: JXR-65
                 URL: http://jira.codehaus.org/browse/JXR-65
             Project: Maven JXR
          Issue Type: Bug
         Environment: Windows
            Reporter: Mickaƫl MORIER


Suppose:
1 - I worked on Windows
2 - My project is stored on drive letter C
3 - I want to generate site:stage in a directory which is stored on drive 
letter D

JXR generate a FileNotFoundException because project directory and staging 
directory are on different drives.

Below this exception:
{quote}
[INFO] Generating "Source Xref" report.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error during page generation

Embedded error: Error rendering Maven report: Error while generating the HTML 
source code of the projet.
D:\Temp\melovie-site\localhost\data\maven\sites\melovie\melovie-common\tedi-client\xref\fr\generali\tedi\adresse\constants\Constants.html
 and C:\dev\projects\melovie\melovie-common\tedi-client\target\
site\apidocs have no common parent.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error during page 
generation
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        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: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: org.apache.maven.plugin.MojoExecutionException: Error during page 
generation
        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:101)
        at 
org.apache.maven.plugins.site.SiteStageMojo.execute(SiteStageMojo.java:105)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        ... 16 more
Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error 
rendering Maven report: Error while generating the HTML source code of the 
projet.
        at 
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:149)
        at 
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:269)
        at 
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:101)
        at 
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:129)
        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96)
        ... 19 more
Caused by: org.apache.maven.reporting.MavenReportException: Error while 
generating the HTML source code of the projet.
        at 
org.apache.maven.plugin.jxr.AbstractJxrReport.executeReport(AbstractJxrReport.java:417)
        at 
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:101)
        at 
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:139)
        ... 23 more
Caused by: java.io.FileNotFoundException: 
D:\Temp\melovie-site\localhost\data\maven\sites\melovie\melovie-common\tedi-client\xref\fr\generali\tedi\adresse\constants\Constants.html
 and C:\dev\projects\
melovie\melovie-common\tedi-client\target\site\apidocs have no common parent.
        at org.apache.maven.jxr.JXR.getRelativeLink(JXR.java:403)
        at org.apache.maven.jxr.JXR.transform(JXR.java:335)
        at org.apache.maven.jxr.JXR.processPath(JXR.java:139)
        at org.apache.maven.jxr.JXR.xref(JXR.java:271)
        at 
org.apache.maven.plugin.jxr.AbstractJxrReport.createXref(AbstractJxrReport.java:261)
        at 
org.apache.maven.plugin.jxr.AbstractJxrReport.executeReport(AbstractJxrReport.java:409)
        ... 25 more
{quote}

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


Reply via email to