0

我在 ish 7.5.3 中为我的本地环境生成 javadoc 时遇到了一些问题。我在 assembly/environment.properties 中设置了“includeJavadoc = true”属性并运行 gradlew deployServer 命令。

我让他关注堆栈跟踪

    Caused by: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':ac_bmecat:deployJavadocFiles'.
    at org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:77)
    at org.gradle.initialization.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:47)
    at org.gradle.initialization.StackTraceSanitizingExceptionAnalyser.transform(StackTraceSanitizingExceptionAnalyser.java:30)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:108)
...
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
    ... 34 more
Caused by: com.intershop.deploy.index.DuplicateResourceException: Task :ac_bmecat:deployJavadocFiles: Resource '/home/user/projects/eserver1/assemblies/omnishop_assembly/target/javadoc/index.html' already defined for Task :deployJavadocIndexFiles
    at com.intershop.deploy.index.AvroTaskResources.create(AvroIndex.groovy:129)
    at com.intershop.deploy.resources.DeployCopyAction.doCopy(DeployCopyAction.groovy:129)
    at com.intershop.deploy.resources.DeployCopyAction.access$0(DeployCopyAction.groovy)
    at com.intershop.deploy.resources.DeployCopyAction$_execute_closure1_closure3.doCall(DeployCopyAction.groovy:95)
    at com.sun.proxy.$Proxy45.processFile(Unknown Source)

原因当然是 ac_bmecat 在另一个组件已经这样做之后再次部署 index.html 文件。问题是如何解决这个问题?

4

1 回答 1

0

让我回答我自己的问题。从 7.6 开始,您不能再像这样生成 javadoc。而是下载最新的工作室并从顶部菜单:帮助 -> 帮助内容。在内容菜单中选择:“Intershop Suite Cartridge API JavaDoc”。Javadoc 是从 gradle 缓存中加载的,因此您必须首先构建和部署 intershop 服务器。

有关更多详细信息,请参见 kb https://support.intershop.com/kb/index.php/Display/282Y19

于 2017-08-12T11:18:57.017 回答