Stream: hapi
Topic: Errors building latest JPA Starter Project
Ozair Bajwa (Jul 08 2020 at 22:48):
Hi,
I installed the latest JPA Starter project. I tried to build the project but I am getting the following error:
[WARNING] Some problems were encountered while building the effective model for ca.uhn.hapi.fhir:hapi-fhir-jpaserver-starter:war:5.0.2
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-enforcer-plugin @ ca.uhn.hapi.fhir:hapi-fhir:5.0.2,
[WARNING] The project ca.uhn.hapi.fhir:hapi-fhir-jpaserver-starter:war:5.0.2 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
HAPI FHIR is still targeting JDK 8 for published binaries, but we require JDK 11 to build and test this library.
Any help will be appreciated.
Thanks
Ozair
Jens Villadsen (Jul 15 2020 at 15:22):
make sure your JDK is version 11
Mareike Przysucha (Feb 03 2021 at 10:06):
I get a similar warning and error due to a wrong jdk. The pom.xml originally required java 8. I installed jdk 15 and changed the pom to <java.version>15</java.version>
.
Still it says: HAPI FHIR is still targeting JDK 8 for publishing binaries, but we require JDK 11 to build and test this library.
Is there anything else I need to do?
Mareike Przysucha (Feb 03 2021 at 11:08):
okay, found the error: Java 15 is not supported...
Jens Villadsen (Feb 03 2021 at 19:14):
there should not AFAIK be any problems using JDK 15
Last updated: Apr 12 2022 at 19:14 UTC