Hi,

I'm just in the process of installing DSpace 8 rc1 locally (Debian 12). I 
decided to deploy JAR application for backend. Running:

java -jar 
[dspace-source]/dspace/modules/server-boot/target/server-boot-[DSpace-version].jar

resulted in Spring Boot outputting:

ANTLR Tool version 4.13.0 used for code generation does not match the 
current runtime version 4.5.1. ANTLR Runtime version 4.13.0 used for parser 
compilation does not match the current runtime version 4.5.1.

and multiple apparently related errors in DSpace log. Couldn't continue the 
installation (which froze at creating admin account).


Running "mvn dependency:tree -Dverbose -Dincludes=org.antlr" gave:

[INFO] --- maven-dependency-plugin:3.6.1:tree (default-cli) @ server-boot 
---
[INFO] org.dspace:server-boot:jar:8.0-rc1
[INFO] +- org.dspace:dspace-api:test-jar:tests:8.0-rc1:test
[INFO] |  \- org.hibernate.orm:hibernate-core:jar:6.4.4.Final:compile 
(version managed from 6.4.4.Final)
[INFO] |     \- (org.antlr:antlr4-runtime:jar:4.13.0:runtime - omitted for 
conflict with 4.5.1-1)
[INFO] \- org.apache.solr:solr-core:jar:8.11.3:test
[INFO]    \- org.antlr:antlr4-runtime:jar:4.5.1-1:runtime (scope not 
updated to runtime)

So I aligned with the ANTLR version Hibernate prefers by adding this to 
pom.xml at the server-boot module level:

        <dependency>
            <groupId>org.antlr</groupId>
            <artifactId>antlr4-runtime</artifactId>
            <version>4.13.0</version> <!-- Enforcing version used by 
Hibernate -->
        </dependency>

Then rebuilt the project. The warning had gone and I could continue 
installation with the rest of the steps (well, for now I am receiving 
browser 503 error as I am trying to add HTTPS support).

Not sure if this is of any relevance, just wanted to share my experience 
with the new version so far.

Best,
Peter

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-devel/19e9a099-33c8-4125-a440-b6036a333742n%40googlegroups.com.

Reply via email to