History-Research-Environment / HRE--History-Research-Environment

Main repo for HRE code
https://historyresearchenvironment.org/
GNU Affero General Public License v3.0
32 stars 6 forks source link

Build: Force Maven/Tycho to use the current version of H2 #56

Closed MichaelErichsen closed 4 years ago

MichaelErichsen commented 6 years ago

Maven Tycho fetches H2 from an Internet site at version 1.3.168, even though HRE has been built with a higher versions.

Find out how to force it.

MichaelErichsen commented 6 years ago

Run mvn dependency:tree -Dverbose -Dincludes=h2

Get [ERROR] Cannot resolve project dependencies: [ERROR] Software being installed: org.historyresearchenvironment.client 0.1.0.qualifier [ERROR] Missing requirement: org.historyresearchenvironment.dataaccess 0.1.0.qualifier requires 'bundle org.h2 1.4.197' but it could not be found [ERROR] Cannot satisfy dependency: org.historyresearchenvironment.client 0.1.0.qualifier depends on: bundle org.historyresearchenvironment.dataaccess 0.0.0 [ERROR] [ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.

MichaelErichsen commented 6 years ago

Added 1.4.196 to "Other jars". Stipulated the version in the plug-in manifest. Updated the feature to stiplulate the version. Stipulated the version in the Target Platform

MichaelErichsen commented 6 years ago

H2 197 is dependent on org.apache.lucene 3.6.2, which can be fetched from http://archive.apache.org/dist/lucene/java/3.6.2/

MichaelErichsen commented 6 years ago

Found no solution.

HREferg commented 6 years ago

Michael – does this mean we can use h2 197 if we also install this lucene addin, or is the Maven over-write still an issue?

Don

MichaelErichsen commented 6 years ago

No. Sorry.

Still can't make it work as I want.

Mvh Michael Erichsen

-------- Original Message -------- Subject: Re: [History-Research-Environment/HRE--History-Research-Environment] Build: Force Maven/Tycho to use the current version of H2 (#56) From: HREferg notifications@github.com Date: Mon, July 23, 2018 2:16 am To: History-Research-Environment/HRE--History-Research-Environment HRE--History-Research-Environment@noreply.github.com Cc: Michael Erichsen michael@myerichsen.net, Assign assign@noreply.github.com

Michael – does this mean we can use h2 197 if we also install this lucene addin, or is the Maven over-write still an issue?

Don

-- You are receiving this because you were assigned. Reply to this email directly or view it on GitHub: https://github.com/History-Research-Environment/HRE--History-Research-Environment/issues/56#issuecomment-406908515

MichaelErichsen commented 6 years ago

First changed to code to test for the version and insert row count zero in the DBADMIN navigator, when the version was lower than 1.4. Then found out that the call to test the version also only is available at 1.4. So tested for whether the test could run at all. So the code is fixed, but I still am building with the old version.

MichaelErichsen commented 6 years ago

Changed settings.xml in the Maven installation to point to http.//repo2.maven.org/maven2 Then in Eclipse: Preferences Maven User Settings Global settings Was blank, but should point to C:\Program Files\apache-maven-3.5.0\conf\settings.xml

But still no effect

HREferg commented 4 years ago

Closed - no longer relevant to current Build of HRE