mc-serviceregistry build problem

24 views
Skip to first unread message

ruoyao w

unread,
Dec 2, 2020, 10:20:28 PM12/2/20
to Maritime Connectivity Platform
Hi   MCP Team ,  Thank you for answering my question patiently before. The previous question has been resolved. I encountered a new problem. When I was building the mc-serviceregistry project, I found that the spring-data-elasticsearch:jar:3.1.0.FRQ-BUILD-SNAPSHOT package could not be found. I tried to find the package based on the address and found that there was no such package. , How should I get this package? Thank you



捕获.PNG

Timo Vuorijärvi

unread,
Dec 3, 2020, 3:41:02 AM12/3/20
to Maritime Connectivity Platform
Hi!

It's found from https://github.com/hefay/spring-data-elasticsearch.git frq-dev branch. Build it and after that update the elasticsearch version to mcsr to (pom.xml):

<springdata.elasticsearch.version>3.0.5.FRQ-RELEASE</springdata.elasticsearch.version>

And there are little compilation issue in one test, add "throws ProcessingException" or "throws Exception" to the test methods. 

After that it should compile without tests: mvn -DskipTests clean install

Br,
Timo

Timo Vuorijärvi

unread,
Dec 3, 2020, 5:45:06 AM12/3/20
to Maritime Connectivity Platform
Hi!

Forgot couple things, 

the FRQ version needs to be compiled also without tests.

And I needed to add following dependencies to the MCSR that it started (If you get following error: Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/Logger at org.elasticsearch.common.logging.Loggers.getLogger(Loggers.java:101))

        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
        </dependency>

Br, Timo
Reply all
Reply to author
Forward
0 new messages