f.setAccessible(true);
f.set(this, javadocOptionsDir);
f = AbstractJavadocMojo.class.getDeclaredField("docletArtifact");
f.setAccessible(true);
DocletArtifact docletArtifact = new DocletArtifact();
for (Object o : this.mavenProject.getPluginArtifacts()) {
if (o instanceof Artifact) {
Artifact artifact = (Artifact)o;
if (artifact.getArtifactId().equals("cxf-java2wadl-plugin")) {
docletArtifact.setGroupId(artifact.getGroupId());
docletArtifact.setArtifactId(artifact.getArtifactId());
docletArtifact.setVersion(artifact.getVersion());
}
}
}
f.set(this, docletArtifact);