flowable integration break jhipster maven integration tests - java

I have created a jhipster micro service with maven and add some entities using import-jdl. Everything was working perfectly fine with maven integration tests automatically generated.
Now I would like to integrate flowable and after adding flowable-spring-boot-starter-basic:6.3.1.
But I get error:
org.hibernate.tool.schema.spi.SchemaManagementException:
Schema-validation: missing table
Versions:
jhipster version 5.0.1
flowable version 6.3.1
What i understand is that liquibase configuration of flowable is creating problems on jhipster liquibase configuration. Am I right?

flowable desactivate by default liquibase with spring boot.
You have to add the property liquibase.enabled = true

Related

flyway migrations not found with spring boot 3 [resolved]

There is a SQL script V1.0.0_01__Init_from_ddl.sql in /src/main/resources/db/migration which initializes my database.
-> Running Spring Boot 2.7.6, this migration script is completely executed without any error.
-> Running Spring Boot 3.0.0, it says: No migrations found. Are your locations set up correctly?
I have not changed any properties regarding flyway. My database connection (MariaDB 10.6) is fine.
I have tried to rename the file to V1__Init.sql or V1_0_0__Init.sql (any many more tries) without any success.
Any ideas, what is going wrong?
It was a folder problem:
-> My current folder-structure (file-system) of Spring Boot 2.7.6 project:
../src/main/resources/db/migration/
-> My current folder-structure (file-system) of Spring Boot 3.0.0 project:
../src/main/resources/db.migration/
After setting the folder structure of the Spring Boot 3.0.0 project to the one of the Spring Boot 2.7.7 project, it works well, even with Spring Boot 3.0.0 :)
So, the problem, was not a spring boot migration problem, just a path problem.

Exclude Jhipster and upgrade Spring Boot from 1.4.0 to 2.0.3

I am using spring boot 1.4.0 along with jhipster 3.6.1 in my project. I want to upgrade spring boot from 1.4.0 to 2.0.3 but I found some release notes of jhipster according to which it won't support Spring boot 2.0.3.
Can anyone help me out by letting me know if there is any easy and quick way to exclude jhipster from my project.
JHipster 3 won't be updated for Spring Boot 2, only JHipster 5 supports it.
So either you upgrade your project to JHipster 5 using jhipster upgrade command or you remove all dependencies from JHipster and you manually upgrade your project.
These dependencies can be of 3 types: BOM for maven dependencies, server library and client library (not required for your use case). For BOM and server library, the idea is to retrieve the source of the version used by your app and to integrate it into your own git repo so that you can modify it.

SpringBoot 2 debug using the Gradle plugin

I am trying to remote debug a Spring Boot 2.0 web application, built and run with the new Spring Boot Gradle plugin. I've read that the way to go is to pass the --debug-jvm option like so:
./gradlew bootRun --debug-jvm
But I get the following:
Problem configuring task :bootRun from command line.
> Unknown command-line option '--debug-jvm'.
Has something changed in Spring Boot 2.0 or am I missing something? The new gradle plugin reference does not mention anything regarding debug.
I am running Spring Boot and spring-boot-gradle-plugin version 2.0.0.M6, gradle version 4.3.1.
The following would work:
Edit build.gradle
bootRun {
jvmArgs = ["-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n"]
}
Execute./gradlew bootRun
Attach the debugger after the Spring Boot application has started (port 8000 in the specific case)

Creating a Spring Bean for Intellij IDEA

I'm having some issues with using the Spring framework in Intellij. My question will be in reference to this post:
Intellij idea - Spring Bean Configuration File
"Enable Spring plugin in your project and check Spring plugins (Spring Support, Spring MVC, etc)": There is no option to do this
when I view the available plugins in my Intellij
"IntelliJ has a built in plugin for Spring. Go to File > new Project and create your spring project": There is also no available option
for me to create a new Spring project
My primary goal is to create a bean but obviously that isn't an option without the Spring framework working. Can someone walk me through how to get it set up?

Spring 3.0.5 Junit testing issue

I wanted to do spring junit testing to be implemented in my project, I am facing an issue. 1.I wanted a scenario where i can use one spring version jars for junit(src/test) and another spring version of jars for the running main java class(src/main) is it possible. I mean when spring is in testing phase it should use the spring 3.2.4.release and while building the ear it should use 3.0.5.release jars. is it possible.2.since the project is in 3.0.5.release and we wanted to use #WebAppConfiguration for testing which is not allowed in spring 3.0.5.release is there any way to do this (#WebAppConfiguration) in spring 3.0.5.release

Categories