Unable to run project https://documentation.bloomreach.com/14/trails/getting-started/running-a-project.html

Logs:

[INFO] Reactor Summary for My Project -SNAPSHOT:

[INFO]

[INFO] My Project … SUCCESS [ 2.065 s]

[INFO] My Project Repository Data … FAILURE [ 6.243 s]

[INFO] My Project Repository Data For Application … SKIPPED

[INFO] My Project CMS Dependencies … SKIPPED

[INFO] My Project Repository Data For Development … SKIPPED

[INFO] My Project Repository Data For Site … SKIPPED

[INFO] My Project Repository Data For Site Development … SKIPPED

[INFO] My Project Site … SKIPPED

[INFO] My Project Site Components … SKIPPED

[INFO] My Project Repository Data Web Files … SKIPPED

[INFO] My Project CMS … SKIPPED

[INFO] My Project Site Webapp … SKIPPED

[INFO] My Project Essentials … SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 8.958 s

[INFO] Finished at: 2021-10-05T17:05:32+05:30

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.7.15:start (default-cli) on project myproject-repository-data: Cannot start container [org.codehaus.cargo.container.tomcat.Tomcat9xInstalledLocalContainer@5a97b17c]: Port number 8205 (defined with the property cargo.rmi.port) is in use. Please free it on the system or set it to a different port in the container configuration. → [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] MojoExecutionException - Apache Maven - Apache Software Foundation

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn -rf :myproject-repository-data

"Port number 8205 (defined with the property cargo.rmi.port) is in use. Please free it on the system or set it to a different port "

I have no idea which process is using 8205 port by default though…

sudo lsof -i :8205
On running the above command , the terminal shows no ongoing processes running.
Also, when i ran the command mvn -P cargo.run, server.xml gets created, which mentions this port.
Could you help me set up the project?

Getting the below error on run:

23:14:51 INFO No errors detected

[ INFO ] [talledLocalContainer] 23:14:51 INFO Finished index repair in 34 ms

[ INFO ] [talledLocalContainer] 06.10.2021 23:15:01 ERROR main [RepositoryServlet.init:249] Error while setting up JCR repository:

[ INFO ] [talledLocalContainer] javax.jcr.RepositoryException: unchecked exception: org.codehaus.groovy.GroovyBugError: BUG! exception in phase ‘semantic analysis’ in source unit ‘updater’ Unsupported class file major version 61

[ INFO ] [talledLocalContainer] at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:161) ~[hippo-repository-connector-14.6.3.jar:14.6.3]

[ INFO ] [talledLocalContainer] at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java:207) [hippo-repository-servlets-14.6.3.jar:14.6.3]

This is easily searchable, it’s about Java version. Bloomreach XM runs on Java 8.
Please start at Prerequisites - Bloomreach Experience - The Headless Digital Experience Platform Built for Commerce

Regards, Jeroen

I have the prerequisites satisfied.

^CSNEHAs-MacBook-Pro-2:myproject sneha$ java -version

java version “1.8.0_271”

Java™ SE Runtime Environment (build 1.8.0_271-b09)

Java HotSpot™ 64-Bit Server VM (build 25.271-b09, mixed mode)

SNEHAs-MacBook-Pro-2:myproject sneha$ mvn -version

Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T00:03:14+05:30)

Maven home: /usr/local/Cellar/maven@3.5/3.5.4_1/libexec

Java version: 17, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk/17/libexec/openjdk.jdk/Contents/Home

Default locale: en_IN, platform encoding: UTF-8

OS name: “mac os x”, version: “10.14.6”, arch: “x86_64”, family: “mac”

I am still facing this error. Please help!

How about comparing “Bloomreach XM runs on Java 8” with your output “Java version: 17”?
Cheers,
Jeroen