brmson / yodaqa

A Question Answering system built on top of the Apache UIMA framework.
http://ailao.eu/yodaqa
Other
619 stars 205 forks source link

Gradle Duplicate Classes #6

Closed KnowledgeGarden closed 9 years ago

KnowledgeGarden commented 9 years ago

Using gradlew.bat --gui, I start with no /bin, /build, or /target directories. run "clean" run "build" :generateTypeSystem (ok) :compileJava (not ok -- many duplicate class errors). Gist with gui console errors here: https://gist.github.com/KnowledgeGarden/7b212198a56c8513f442 Web is loaded with similar errors, solutions don't appear to be appropriate. Hard to track this one down. Do a file search and find no other definitions of the classes. Tried duplicating the model source files out of /src/main to /src/etc and tweaked build.gradle to suit: no change in behavior. Thoughts?

KnowledgeGarden commented 9 years ago

An update: I have discovered that when one tries to run "build" multiple times, all possible instances of the created classes must be removed entirely from all directories. "clean" doesn't guarantee they are removed. "build" now creates yodaqa.jar and populates /bin. "run -q" executed successfully.