You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Simon Kingaby <si...@companioncabinet.com> on 2007/10/18 20:25:10 UTC

Error running Javadoc plugin under CruiseControl

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 


Re: Error running Javadoc plugin under CruiseControl

Posted by Wayne Fay <wa...@gmail.com>.
For the benefit of other people who might search the archives for this
same bug, can you tell us what JDK version you were running before
that was giving you the problem? Then we can tell people to avoid that
JDK, perhaps in the m-javadoc-p documentation or something.

Wayne

On 10/25/07, Simon Kingaby <si...@companioncabinet.com> wrote:
> I upgraded to Java SDK 6 update 3 yesterday and my issues with JavaDoc
> were solved.  There seems to have been a bug in the JavaDoc utility that
> caused it to fail when running from CruiseControl.
> Thanks for your suggestions.
>
>
> -----Original Message-----
> From: Wayne Fay [mailto:waynefay@gmail.com]
> Sent: Friday, October 19, 2007 11:23 AM
> To: Maven Users List
> Subject: Re: Error running Javadoc plugin under CruiseControl
>
> The forward slash may be the problem (a bug). I have no idea. Try
> executing "mkdir m:/...." and see if it works or fails. If it is a
> bug, dig into the m-javadoc-p and fix it, and see if that solves your
> problem. If so, please file a bug report and attach your fix.
>
> Wayne
>
> On 10/19/07, Simon Kingaby <si...@companioncabinet.com> wrote:
> > 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:waynefay@gmail.com]
> > 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 <si...@companioncabinet.com> 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: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Error running Javadoc plugin under CruiseControl

Posted by Simon Kingaby <si...@companioncabinet.com>.
I upgraded to Java SDK 6 update 3 yesterday and my issues with JavaDoc
were solved.  There seems to have been a bug in the JavaDoc utility that
caused it to fail when running from CruiseControl.
Thanks for your suggestions.


-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com] 
Sent: Friday, October 19, 2007 11:23 AM
To: Maven Users List
Subject: Re: Error running Javadoc plugin under CruiseControl

The forward slash may be the problem (a bug). I have no idea. Try
executing "mkdir m:/...." and see if it works or fails. If it is a
bug, dig into the m-javadoc-p and fix it, and see if that solves your
problem. If so, please file a bug report and attach your fix.

Wayne

On 10/19/07, Simon Kingaby <si...@companioncabinet.com> wrote:
> 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:waynefay@gmail.com]
> 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 <si...@companioncabinet.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Error running Javadoc plugin under CruiseControl

Posted by Wayne Fay <wa...@gmail.com>.
The forward slash may be the problem (a bug). I have no idea. Try
executing "mkdir m:/...." and see if it works or fails. If it is a
bug, dig into the m-javadoc-p and fix it, and see if that solves your
problem. If so, please file a bug report and attach your fix.

Wayne

On 10/19/07, Simon Kingaby <si...@companioncabinet.com> wrote:
> 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:waynefay@gmail.com]
> 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 <si...@companioncabinet.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Error running Javadoc plugin under CruiseControl

Posted by Simon Kingaby <si...@companioncabinet.com>.
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:waynefay@gmail.com] 
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 <si...@companioncabinet.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Error running Javadoc plugin under CruiseControl

Posted by Wayne Fay <wa...@gmail.com>.
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 <si...@companioncabinet.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org