solr-upgrade-tool icon indicating copy to clipboard operation
solr-upgrade-tool copied to clipboard

Help with build

Open Martin-Andersen opened this issue 6 years ago • 1 comments

Hi could you post the maven build parameter and in what directory I should run the build from?

I would really like to try your tool. I have a lot of schemas I need to upgrade from 4.3 to 7.3

I run "mvn clean install" then

bash bin/config_upgrade.sh -t schema -c /Users/mha/projects/Gyldendal.Goo/Solr/Solr/cores/entry_daen/conf/schema.xml -u validators/solr_4_to_5_processors.xml -d ./tmp
Error: Could not find or load main class org.apache.solr.config.upgrade.ConfigUpgradeTool

Martin-Andersen avatar Apr 29 '18 08:04 Martin-Andersen

I know this question is very old but I had a bit of trouble with that too. I will answer because it can be useful for others.

I solved by using the shadowJar plugin with Gradle and making what is called a uber jar with all the dependencies.

The tool was useful to make most of the conversion from 4 to 5 and alert me of the mappings that were deprecated and had to manually be replaced. Apart from that, there were still some depreacted class declarations on the solrconfig that the tool didn't warn...

fabiocarneiro avatar Jun 16 '20 17:06 fabiocarneiro