FHIR Chat · jpa starter project problems · hapi

Stream: hapi

Topic: jpa starter project problems


view this post on Zulip 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=bootdoesn't work: https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/157

view this post on Zulip 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

view this post on Zulip Patrick Werner (Oct 25 2020 at 16:49):

-censored-

view this post on Zulip Jens Villadsen (Oct 25 2020 at 18:51):

Ill have a look

view this post on Zulip Jens Villadsen (Oct 25 2020 at 19:18):

@Patrick Werner doing mvn spring-boot:run -Pboot does the job

view this post on Zulip Jens Villadsen (Oct 25 2020 at 19:20):

@Patrick Werner the bootis a compile-time maven profile - not a runtime profile as you specified it

view this post on Zulip Patrick Werner (Oct 25 2020 at 19:21):

:face_palm:

view this post on Zulip Patrick Werner (Oct 25 2020 at 19:22):

sorry. I owe you a beer or any other drink you prefer.

view this post on Zulip Jens Villadsen (Oct 25 2020 at 19:24):

a big beer that is

view this post on Zulip 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:

view this post on Zulip Patrick Werner (Oct 25 2020 at 19:27):

achievement unlocked :check_mark:

view this post on Zulip 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

view this post on Zulip Jens Villadsen (Oct 25 2020 at 19:30):

and check the latest comment

view this post on Zulip Patrick Werner (Oct 25 2020 at 19:32):

:grinning:

view this post on Zulip 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.

view this post on Zulip Jens Villadsen (Nov 09 2020 at 12:44):

the -Pbootis a compile time maven profile. The spring.profiles.active=R4 is a Spring Runtime profile

view this post on Zulip Jens Villadsen (Nov 09 2020 at 12:45):

@Panayiotis Savva I don't use Eclipse, so I can't help you with that

view this post on Zulip 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.

view this post on Zulip 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)

view this post on Zulip 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

view this post on Zulip 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