You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Ingo Wolfmayr (Jira)" <ji...@apache.org> on 2023/08/28 15:10:00 UTC
[jira] [Updated] (OFBIZ-12850) Duplicate class ... hot reload failed
[ https://issues.apache.org/jira/browse/OFBIZ-12850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ingo Wolfmayr updated OFBIZ-12850:
----------------------------------
Description:
I have the problem, that with the current trunk, hot-reloading java code failed.
Sometimes (I have not clue by now why not every-time) building the project printed the following error and failed:
{noformat}
Entry org/apache/ofbiz/accounting/GlEvents.class is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.6/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.{noformat}
There is no duplicate groovy or java that could lead to org/apache/ofbiz/accounting/GlEvents.class is a duplicate
I have not finished my investigation yet. If someone has an idea, please let me know.
was:
I had the problem, that with the current trunk, hot-reloading java code failed.
Sometimes (I have not clue by now why not every-time) building the project printed the following error and failed:
{noformat}
Entry org/apache/ofbiz/accounting/GlEvents.class is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.6/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.{noformat}
There is no duplicate groovy or java that could lead to org/apache/ofbiz/accounting/GlEvents.class is a duplicate
Finally I added the following statement to build.gradle:
{code:java}
tasks.jar {
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
}{code}
Now it works again.
There are also three other options:
FAIL, INCLUDE, WARN
I have not finished my investigation yet. If someone has an idea, please let me know.
> Duplicate class ... hot reload failed
> -------------------------------------
>
> Key: OFBIZ-12850
> URL: https://issues.apache.org/jira/browse/OFBIZ-12850
> Project: OFBiz
> Issue Type: Improvement
> Reporter: Ingo Wolfmayr
> Priority: Major
>
> I have the problem, that with the current trunk, hot-reloading java code failed.
> Sometimes (I have not clue by now why not every-time) building the project printed the following error and failed:
> {noformat}
> Entry org/apache/ofbiz/accounting/GlEvents.class is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.6/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.{noformat}
> There is no duplicate groovy or java that could lead to org/apache/ofbiz/accounting/GlEvents.class is a duplicate
> I have not finished my investigation yet. If someone has an idea, please let me know.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)