On 11/9/22 08:02, Maulin Rathod wrote:
I am a developer with 15 year experience and using Solr for the last 7-8 years. Now I want to contribute to solr...

I followed the instructions provided on this link to import the project in Eclipse.

https://cwiki.apache.org/confluence/display/solr/HowToContribute

After checking the main branch locally (git clone http://gitbox.apache.org/repos/asf/solr.git), when I import (using *Existing Gradle Project* option) in eclipse, the build process is stuck at around 5% with thousands of errors. Refer below screenshot.

Your screenshot did not come through.  Attachments sent to the mailing list rarely make it through.

You should run "./gradlew clean cleanEclipse eclipse" before you import the project.  Then it will be an eclipse project that gets imported, not a gradle project.  This is on the wiki article you linked, but does not include the "clean" and "cleanEclipse" targets that I added.

For Windows, you must install perl and remove the "./" part from the gradlew command, and run it in a command prompt.  Elevation of the command prompt should not be required.  I know for sure that Strawberry Perl works, but I think that something like ActivePerl would also work.

Note that Java 19 is not yet supported by Gradle, so you must use a JDK version between 11 and 17 on any OS.  Only versions 11 and 17 are recommended.  I think 14 is also an LTS release, but it isn't often referenced.  I have no idea whether Java 18 works, but I wouldn't recommend using it as it is an interim release that I believe is no longer supported.

I just did these steps with branch_9x (the branch I already had checked out) and there are still a few errors.  One class with the same name as another in a different package, and the existence of package-info.java files for the same package in both the test and src trees.  Fixing those was pretty easy, I need to work on getting that into the codebase.

Did it with the main branch, I ran into the same errors and fixed them the same way.  The patches for both main and branch_9x are identical.

Thanks,
Shawn

Reply via email to