THis is a limitation in the current implementation, but you can work
around it by running:

m2 generate-sources javadoc:javadoc

On 10/27/05, Peter Lynch <[EMAIL PROTECTED]> wrote:
> I used the xmlbeans plugin to generate xmltypes from an xsd. The
> resulting sources are located in ./target/xmlbeans-source.
>
> Now I wish to generate javadoc for these sources. Typing mvn
> javadoc:javadoc does not create the javadoc for those sources. It
> appears somehow I need to add to the Maven project's compileSourceRoots
> as I see this in the javadoc plugin:
>
> StringBuffer sourcePath = new StringBuffer();
>          StringBuffer files = new StringBuffer();
>          for ( Iterator i =
> getProject().getCompileSourceRoots().iterator(); i.hasNext(); )
>          {
>              String sourceDirectory = (String) i.next();
>              String[] fileList = FileUtils.getFilesFromExtension(
> sourceDirectory, new String[]{"java"} );
>              if ( fileList != null && fileList.length != 0 )
>              {
>                  for ( int j = 0; j < fileList.length; j++ )
>                  {
>                      files.append( quotedPathArgument( fileList[j] ) );
>                      files.append( "\n" );
>                  }
>              }
>
>              sourcePath.append( sourceDirectory );
>
>              if ( i.hasNext() )
>              {
>                  sourcePath.append( PATH_SEPARATOR );
>              }
>          }
>
> Question: How do I add the xmlbeans-source directory to the source roots
> so that javadoc plugin picks them up??
>
> Thanks,
>
> Peter
>
> ---------------------------------------------------------------------
> 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