-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infrastructure improvements - Migration to Java 11 from Java 8 #3836
base: jena4-upgrade
Are you sure you want to change the base?
Infrastructure improvements - Migration to Java 11 from Java 8 #3836
Conversation
@michel-heon why did you change version to 1.14.1-SNAPSHOT? Change of the version is usually done by a script when a new release is published. |
@chenejac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michel-heon please remove VIVO an Vitro version changes from pom files. It is not related to the PR scope and can cause merge conflicts in future.
@litvinovg The return to 1.13.1 is done.... but this version corresponds to the previous sprint and is not representative of the evolution of development. This version misalignment may lead to misunderstandings about the evolution of the development. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to try it out on some OS where Java 8 was installed by default. I tried Centos 7.
But the response I received after building it with Java 8 was confusing. It wasn't about Java requirement, it was about new dependency on maven-antrun-plugin that is not provided with default (3.0.5) maven version on Centos 7.
[INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:3.1.0:run (echo-properties) on project vitro-api: The plugin org.apache.maven.plugins:maven-antrun-plugin:3.1.0 requires Maven version 3.2.5 -> [Help 1]
So I had to install new version manually and finally got error that Java 11 is required.
Adding new dependency (maven-antrun-plugin) at this point doesn't look like good to me as it hides the real problem (Java version requirement).
So I suggest to open an issue about properties display in and discuss it there.
For the issue this ticket should resolve I suggest removing maven-antrun-plugin.
@litvinovg , Why do a test on an OS installation based on Java 8 when the basic specification of this issue is to use Java 11 ? |
@michel-heon To model what user trying to update VIVO or Vitro to next version would experience. |
fixed message printing bugs on previous version
@litvinovg @chenejac The files have been changed as discussed |
I don't remember discussion about maven enforcer. I think increasing version of maven enforcer and enforcing maven version is unnecessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
I do see a spurious space character on line 74 of installer/pom.xml.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michel-heon thanks for this. I have created a suggestion for a correction of indentation. Can you please consider/accept before this is ready for merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michel-heon can we also move this maven-enforcer-plugin in the follow up PR linked with this issue - #3843
<version>3.2.1</version> | ||
</plugin> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<version>3.2.1</version> | |
</plugin> | |
<version>1.4.1</version> | |
</plugin> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chenejac
I don't think it's a good idea to go back to 1.4.1,
This version 1.4.1 doesn't handle the message presentation very well, which makes it very irrelevant to use this utility.
Moreover, if we go back to 1.4.1 we will also have to change VIVO.
Is it really a blocker to use more up-to-date plug-ins?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most likely it will impose new dependencies on maven or other components. I wouldn't change maven enforcer version in this PR.
VIVO GitHub issue 3834: (please link to issue)
see also for vitro vivo-project/Vitro#368
Migration to Java 11 from Java 8
What does this pull request do?
This PR modifies the pom files so that VIVO and Vitro are compiled and run with Java 11
What's new?
How should this be tested?
rm -fr ~/.m2/repository
runtime.properties
andapplicationSetup.n3
settings.xml
in./VIVO/installer
directoryOverview of the output
During the execution, it is possible to follow the following trace in the maven logs
The compilation aborts because the class code is not compatible with Java version 8
7. Validate the VIVO/Vitro compilation with Java 11
Overview of the output
During the execution, it is possible to follow the following trace in the maven logs
Before starting Tomcat, you can copy the samples data contained in https://github.com/vivo-project/sample-data/tree/main/i18n and copy it to $VIVO_HOME/rdf/abox/filegraph
then
You can navigate VIVO in your browser http://localhost:8080/vivo
You can validate that VIVO runs in TOMCAT in a Java-11 context with the following command
Interested parties
@chenejac