cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Solr upgrade issue with version 8.1 to 9.2 in Commerce Cloud 2211.24

NagarjunaG
Discoverer
0 Kudos
1,619

Hello,

I am trying to update solr version in 8.1 to 9.2 (https://help.sap.com/docs/SAP_COMMERCE_CLOUD_PUBLIC_CLOUD/aa417173fe4a4ba5a473c93eb730a417/b70eefc75...).

I have installed solr-9.2.1.zip with maven command and also set the following property (only for local environments): solrserver.solr.server.version=9.2.0

mvn install:install-file -DgroupId=org.apache.solr -DartifactId=solr -Dversion=9.2.1 -Dpackaging=zip -Dfile=/FILE PATH/solr-9.2.1.zip

While I run ant all getting following error.

C:\Users\gubbalan\CXCOMCL2211_24\hybris\bin\platform\resources\ant\util.xml:142: The following error occurred while executing this line:
C:\Users\gubbalan\CXCOMCL2211_24\hybris\bin\modules\search-and-navigation\solrserver\buildcallbacks.xml:164: The following error occurred while executing this line:
C:\Users\gubbalan\CXCOMCL2211_24\hybris\bin\modules\search-and-navigation\solrserver\buildcallbacks.xml:206: The following error occurred while executing this line:
C:\Users\gubbalan\CXCOMCL2211_24\hybris\bin\modules\search-and-navigation\solrserver\buildcallbacks.xml:208: The following error occurred while executing this line:
C:\Users\gubbalan\CXCOMCL2211_24\hybris\bin\modules\search-and-navigation\solrserver\buildcallbacks.xml:252: The following error occurred while executing this line:
C:\Users\gubbalan\CXCOMCL2211_24\hybris\bin\modules\search-and-navigation\solrserver\buildcallbacks.xml:412: Unable to resolve artifact: Missing:
----------
1) de.hybris.platform.solr:solr-hybris-customizations:zip:9.2.23

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=de.hybris.platform.solr -DartifactId=solr-hybris-customizations -Dversion=9.2.23 -Dpackaging=zip -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=de.hybris.platform.solr -DartifactId=solr-hybris-customizations -Dversion=9.2.23 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.apache.maven:super-pom:pom:2.0
2) de.hybris.platform.solr:solr-hybris-customizations:zip:9.2.23

----------
1 required artifact is missing.

for artifact:
org.apache.maven:super-pom:pom:2.0

from the specified remote repositories:
central (https://repo1.maven.org/maven2)

Could you help me, if I am missing any other steps.

Accepted Solutions (0)

Answers (1)

Answers (1)

NagarjunaG
Discoverer
0 Kudos

By mistake I have updated the version property value in hybris\bin\modules\search-and-navigation\solrserver\resources\solr\9.2\customizations/meta.properties then configurations mismatched with OOTB - solrserver.solr.customizations.versions. I rectified now, it's working fine.

Thank you.