Ingo Wolfmayr created OFBIZ-12850:
-------------------------------------

             Summary: 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


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to