All of the other TARGET folders are created correctly.  The error is
strictly relating to the JavaDocs plugin.  The checkstyle, PMD,
surefire, docck, etc., all work fine.
Thanks.
Is it important that the folder it is trying to create:
M:/JavaEnv/Builds/checkout/DogOnAPorch/trunk/target/site/apidocs\com/ski
ngaby/coolcoders/dogHouse/
Has only one \ in the entire path, between apidocs and com?


-----Original Message-----
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 19, 2007 10:29 AM
To: Maven Users List
Subject: Re: Error running Javadoc plugin under CruiseControl

I doubt your CruiseControl user is the same as your regular login user
that you've run your test with. Does the CC user have the proper
privileges to create files/directories on the M: drive etc?

"Unable to create directory" -- seems like a filesystem problem.

Wayne

On 10/18/07, Simon Kingaby <[EMAIL PROTECTED]> wrote:
> I need some help debugging my Maven 2 script when it runs under
> CruiseControl, please.
>
>
>
> The javadoc plugin is included in pom.xml with no special parameters:
>
>      <plugin>
>
>        <artifactId>maven-javadoc-plugin</artifactId>
>
>      </plugin>
>
>
>
> WORKS FROM COMMAND LINE
>
> When I run trunk>mvn clean scm:update install site from a Windows
> (server 2003 R2) command prompt:
>
> Maven echoes:
>
> [INFO] [javadoc:javadoc]
>
> Loading source files for package com.skingaby.coolcoders.dogHouse...
>
> Constructing Javadoc information...
>
> Standard Doclet version 1.6.0_02
>
> Building tree for all the packages and classes...
>
> Generating
>
M:/JavaEnv/Builds/checkout/DogOnAPorch/trunk/target/site/apidocs\com/ski
> ngaby/coolcoders/dogHouse/\Cat.html...
>
> Generating
>
M:/JavaEnv/Builds/checkout/DogOnAPorch/trunk/target/site/apidocs\com/ski
> ngaby/coolcoders/dogHouse/\Dog.html...
>
> ...
>
> Generating
>
M:/JavaEnv/Builds/checkout/DogOnAPorch/trunk/target/site/apidocs\stylesh
> eet.css...
>
> [INFO]
>
------------------------------------------------------------------------
>
> [INFO] BUILD SUCCESSFUL
>
>
>
>
>
> FAILS IN CRUISECONTROL
>
> I have added the maven plugin to my CruiseControl config.xml:
>
>  <plugin name="maven2" mvnscript="${env.M2_HOME}/bin/mvn.bat"
> pomfile="${projectdir}/pom.xml" goal="clean scm:update|install
> site"></plugin>
>
> And execute it here:
>
>    <schedule>
>
>       <maven2></maven2>
>
>    </schedule>
>
> The clean, scm:udpdate and install all work fine.  The site however,
> fails and the cruisecontrol log shows this:
>
> [INFO] Generate "JavaDocs" report.
> Loading source files for package com.skingaby.coolcoders.dogHouse...
> Constructing Javadoc information...
> Standard Doclet version 1.6.0_02
> Building tree for all the packages and classes...
> 1 error
> [INFO]
>
------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
>
------------------------------------------------------------------------
> [INFO] Error during page generation
> Embedded error: Error rendering Maven report: Exit code: 1 - javadoc:
> error - Unable to create directory
>
M:/JavaEnv/Builds/checkout/DogOnAPorch/trunk/target/site/apidocs\com/ski
> ngaby/coolcoders/dogHouse/
> com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
> at
>
com.sun.tools.doclets.internal.toolkit.util.DirectoryManager.createDirec
> tory(DirectoryManager.java:263)
> at
>
com.sun.tools.doclets.internal.toolkit.util.Util.genWriter(Util.java:576
> )
>
>
>
> Thank you for your help,
>
> Simon Kingaby
>
>

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


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

Reply via email to