[ https://issues.apache.org/jira/browse/LUCENE-9559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17206824#comment-17206824 ]
Uwe Schindler commented on LUCENE-9559: --------------------------------------- Hi, the bug seems to be caused by accidentally committed JAVA class files in: {noformat} $ git log MyTextField.java commit 01da67c728df1e46ed82fee1a178546c0665b421 Author: noble <no...@apache.org> Date: Tue Sep 29 15:25:22 2020 +1000 SOLR-14901: TestPackages uses binary precompiled classes to refer to analysis factory FQCNs {noformat} Before applying such a hack to the Eclipse build, I'd strongly recommend to do the following: - [~noble.paul]: Please revert adding {{*.java}} files to Solr's resources/test-files. This confuses IDEs. If they are valid Java classes move them to test sources. I found no test using them as resources at all. - if those files are the "source" of the stuff used as JAR files and CLASS files in the resources folder (which should not have committed at all to Git!!!), place them in a separate source dir and let Gradle build all the TEST JARs (e.g., as separate SourceSets - that's quite easy to do with Grdale, I can elp - I just have no idea how to produce those JAR/CLASS files) and remove the m from Git! Nevertheless, as a first step please remove source files from resource folders. They don't belong there! Please revert the above commit. Thanks. > fix "gradle eclipse" to build in eclipse again > ---------------------------------------------- > > Key: LUCENE-9559 > URL: https://issues.apache.org/jira/browse/LUCENE-9559 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Robert Muir > Priority: Major > Attachments: LUCENE-9559.patch, compilefailure.png > > > The current "gradle eclipse" produces a non-working setup: you have > compilation errors because of some java files in solr's {{test-files}} that > don't compile. > eclipse doesn't differentiate between a resource folder and a sources folder, > classpath entries are just "src" and it tries to compile the java files it > sees in there, which fails. > So let's tell it not to compile them so that gradle eclipse works again: I > don't know what crazy stuff solr is doing here, but i want the IDE to work > again. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org