Stream: hapi
Topic: jpa starter project problems
Patrick Werner (Oct 25 2020 at 16:34):
I tried to start the current master branch of the JPA Starter and got frustrated:
mvn spring-boot:run -Dspring-boot.run.profiles=boot
doesn't work: https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/157
Patrick Werner (Oct 25 2020 at 16:35):
deploying to a tomcat server fails with a stacktrace because of: Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
Patrick Werner (Oct 25 2020 at 16:49):
-censored-
Jens Villadsen (Oct 25 2020 at 18:51):
Ill have a look
Jens Villadsen (Oct 25 2020 at 19:18):
@Patrick Werner doing mvn spring-boot:run -Pboot
does the job
Jens Villadsen (Oct 25 2020 at 19:20):
@Patrick Werner the boot
is a compile-time maven profile - not a runtime profile as you specified it
Patrick Werner (Oct 25 2020 at 19:21):
:face_palm:
Patrick Werner (Oct 25 2020 at 19:22):
sorry. I owe you a beer or any other drink you prefer.
Jens Villadsen (Oct 25 2020 at 19:24):
a big beer that is
Jens Villadsen (Oct 25 2020 at 19:25):
and ... you managed to find yet another way of starting it ... apparently one of the 5 (!) ways that are currently specified as running it wasn't sufficient to you :rolling_on_the_floor_laughing:
Patrick Werner (Oct 25 2020 at 19:27):
achievement unlocked :check_mark:
Jens Villadsen (Oct 25 2020 at 19:29):
indeed - feel free to upvote this gem: https://github.com/hapifhir/hapi-fhir-jpaserver-starter/pull/159/files
Jens Villadsen (Oct 25 2020 at 19:30):
and check the latest comment
Patrick Werner (Oct 25 2020 at 19:32):
:grinning:
Panayiotis Savva (Nov 09 2020 at 10:40):
Jens Villadsen said:
Patrick Werner doing
mvn spring-boot:run -Pboot
does the job
Hi Jens, I'm trying to run the jpa starter in Eclipse using Spring Tools 4.
I'm not able to find any way that works to set the "-Pboot" argument.
I understand that "spring.profiles.active=R4" is the active spring profile which is different to the argument "-Pboot"above?
How can I get this working in Eclipse with Spring Tools? Any ideas?
btw, "mvn spring-boot:run -Pboot" works just fine, but i'm trying to get this to work on Spring Tools 4 specifically.
Jens Villadsen (Nov 09 2020 at 12:44):
the -Pboot
is a compile time maven profile. The spring.profiles.active=R4
is a Spring Runtime profile
Jens Villadsen (Nov 09 2020 at 12:45):
@Panayiotis Savva I don't use Eclipse, so I can't help you with that
Panayiotis Savva (Nov 09 2020 at 12:46):
What development stack do you recommend?
I've succesfully used VSCode but finding it very tedious.
First clean, then compile, then war explode, then debug in tomcat.
I'm looking for an easy and friendly way to run and debug.
Jens Villadsen (Nov 09 2020 at 12:48):
@Panayiotis Savva For Java-related development I would recommend Intellij Community Edition (- and Ultimate if you're willing to pay for the extra feature set)
Jens Villadsen (Nov 09 2020 at 12:49):
But I guess Eclipse works just fine. See e.g. https://stackoverflow.com/questions/19140645/maven-profiles-are-not-considered-in-eclipse if you want assistance on using Maven Profiles in eclipse
Panayiotis Savva (Nov 09 2020 at 13:36):
I can confirm this works in Eclipse: Properties-->Maven-->Active Maven Profiles = boot
Last updated: Apr 12 2022 at 19:14 UTC