1

我正在尝试运行 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)

有什么建议吗?

4

2 回答 2

0

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

于 2014-11-06T14:21:19.070 回答
0

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

于 2013-07-10T18:15:26.633 回答