Make sure that you do have access to the CoreMedia public maven repository.
Build the workspace with
mvn clean install
Run the server with
mvn spring-boot:run \
-pl headless-server-commerce-app \
-Dspring-boot.run.profiles=dev,local \
-Dspring-boot.run.jvmArguments="-Dinstallation.host=<CMS-SERVER-HOSTNAME>"
or specify a profile defining the required property installation.server.host
. All prepared spring boot profiles can be
found here
The headless server commerce relies on running CoreMedia system. It connects to a Content Server, reads the site settings and especially its livecontext settings. The livecontext settings provide the commerce adapter endpoint. The headless server commerce then establishes a connection to the commerce adapter endpoint.
Goto Release and download the version that matches your CMCC release version.