When running on windows, the backslash is used to escape characters instead of being used as is.
After processing the command line, replace any backslash by a double backslash.
It seems it is solvable using a groovy script that create a new variable with the expected value, and use it as the target path base :
<!-- === Groovy hack to support windows pathes === -->
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<execution>
<id>set-unixy_build_directory!</id>
<phase>generate-sources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<classpath>
<element>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.4</version>
</element>
</classpath>
<source>
project.properties['mybuilddir'] =
project.build.directory.replace('\\','/');
</source>
</configuration>
</execution>
</executions>
</plugin>
<!-- === code generation using the doclets === -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<!-- === Javabeans generation === -->
<execution>
<!-- ... -->
<configuration>
<doclet>com.sporniket.libre.javabeans.doclet.ExpanderDoclet</doclet>
<!-- ... -->
<additionalOptions>
<additionalOption>-d</additionalOption>
<additionalOption>"${mybuilddir}/generated-classes/javabeans"</additionalOption>
<!-- ... -->
</additionalOptions>
<!-- ... -->
</configuration>
</execution>
</executions>
</plugin>