maven-enunciate-plugin生成文档的NullPointerException

时间:2012-12-15 07:56:28

标签: maven enunciate

我正在尝试运行maven-enunciate-plugin:1.26.2:docs并面临NUllPointerException。

我唯一想要的是它的文档生成,如http://docs.codehaus.org/display/ENUNCIATE/Documentation+Only所述,所以我的pom.xml如下:

...

<plugin>
    <groupId>org.codehaus.enunciate</groupId>
    <artifactId>maven-enunciate-plugin</artifactId>
    <version>1.26.2</version>
            <configuration>
                <docsDir>${project.build.directory}/docs</docsDir>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>docs</goal>
                    </goals>
                </execution>
            </executions>
</plugin>

...

但是,它启动了:

Caused by: org.apache.maven.plugin.MojoExecutionException: Problem assembling the enunciate app.
at org.codehaus.enunciate.DocsMojo.execute(DocsMojo.java:100)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.NullPointerException
at org.codehaus.enunciate.modules.java_client.JavaClientDeploymentModule.isGenerateJsonJar(JavaClientDeploymentModule.java:892)
at org.codehaus.enunciate.modules.java_client.JavaClientDeploymentModule.doCompile(JavaClientDeploymentModule.java:501)
at org.codehaus.enunciate.modules.BasicDeploymentModule.step(BasicDeploymentModule.java:113)
at org.codehaus.enunciate.main.Enunciate.doCompile(Enunciate.java:286)
at org.codehaus.enunciate.main.Enunciate$Stepper.step(Enunciate.java:1738)
at org.codehaus.enunciate.main.Enunciate$Stepper.stepTo(Enunciate.java:1766)
at org.codehaus.enunciate.DocsMojo.execute(DocsMojo.java:96)

有什么建议吗?

2 个答案:

答案 0 :(得分:0)

尝试1.27版。如果它仍然发生,请打开一个错误。

答案 1 :(得分:0)

记录。我正在使用v.1.27并遇到了这个问题:https://jira.codehaus.org/browse/ENUNCIATE-771然后我碰到了v.1.28并且遇到了上面提到的问题。