我在 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 文件。问题是如何解决这个问题?