title: Maven Javadoc Plugin javadoc-bundle-options
body: <p>I have defined the plugin in my pom.xml as following:</p>
  
  <pre><code>&lt;plugin&gt;
                         &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                         &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
                         &lt;version&gt;2.10.3&lt;/version&gt;
                         &lt;configuration&gt;
                               &lt;doclet&gt;BADoclet&lt;/doclet&gt;
                               &lt;docletPath&gt;${basedir}&lt;/docletPath&gt;
                               &lt;additionalparam&gt;-b4atarget B4AWrapper_${inAppVersion}.xml&lt;/additionalparam&gt;
                               &lt;failOnError&gt;false&lt;/failOnError&gt;
                               &lt;outputDirectory&gt;${basedir}&lt;/outputDirectory&gt;
                               &lt;detectOfflineLinks&gt;false&lt;/detectOfflineLinks&gt;
                         &lt;/configuration&gt;
                         &lt;executions&gt;
                               &lt;execution&gt;
                                      &lt;goals&gt;
                                             &lt;goal&gt;javadoc&lt;/goal&gt;
                                             &lt;goal&gt;test-javadoc&lt;/goal&gt;
                                      &lt;/goals&gt;
                                      &lt;phase&gt;site&lt;/phase&gt;
                                      &lt;configuration&gt;
                                             &lt;!-- Specific configuration for the given reports ... --&gt;
                                      &lt;/configuration&gt;
                               &lt;/execution&gt;
                         &lt;/executions&gt;
                  &lt;/plugin&gt;
  </code></pre>
  
  <p>When running javadoc:javadoc goal i get the following error:</p>
  
  <blockquote>
    <p>Command line was: "C:\Program Files\Java\jdk\jre..\bin\javadoc.exe"
    @options @packages</p>
    
    <p>Refer to the generated Javadoc files in
    'C:\work\workspace\B4AWrapper\target\site\apidocs' dir.</p>
  
  <pre><code>   at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeJavadocCommandLine(AbstractJavadocMojo.java:5163)
     at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:2075)
     at org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:130)
     at org.apache.maven.plugin.javadoc.JavadocReport.execute(JavadocReport.java:318)
     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
     at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
     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:597)
     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  </code></pre>
  </blockquote>
  
  <p>After execution, i see that </p>
  
  <blockquote>
    <p>javadoc-bundle-options</p>
  </blockquote>
  
  <p>directory is created under target directory</p>
  
  <p>and also that the options file (site/apidocs/options) contains the following:</p>
  
  <blockquote>
    <p>-linkoffline '<a href="http://docs.oracle.com/javase/6/docs/api" rel="nofollow">http://docs.oracle.com/javase/6/docs/api</a>' 'C:/work/workspace/B4AWrapper/target/javadoc-bundle-options'</p>
  </blockquote>
  
  <p>I need to somehow remove the C:/work/workspace/B4AWrapper/target/javadoc-bundle-options to make everything work.</p>
  
  <p>Any ideas?</p>