Eukon05
Eukon05
JCHJava Community | Help. Code. Learn.
Created by Eukon05 on 10/21/2024 in #java-help
Module not found when running tests in Maven
Hi, I'm trying to create a modular application for fetching articles from popular news sources in Poland. A part of the app is a module saving these articles into a database using Hibernate. I wrote a couple of tests for this module and when I run them through intellij they work just fine, but when I try to use Maven it throws errors like these:
[ERROR] Error occurred during initialization of boot layer
[ERROR] java.lang.module.FindException: Module jakarta.cdi not found, required by jakarta.transaction
[ERROR] Error occurred during initialization of boot layer
[ERROR] java.lang.module.FindException: Module jakarta.cdi not found, required by jakarta.transaction
What should I do to fix this? Github link to the project: https://github.com/Eukon05/infodb/tree/hibernate The class that is responsible for these tests is "HibernateDAOTests" in the "infodb-persistence-hibernate" module
31 replies
JCHJava Community | Help. Code. Learn.
Created by Eukon05 on 12/15/2022 in #java-help
How should I design the architecture of a Spring Boot app?
Hi, I'm currently developing a Spring Boot application for managing incomes and expenses, and from the beginning I have a problem in designing a "clean" architecture for it. Is the way I'm grouping code into interfaces and implementations ok, or should I pick a different approach? I've been told on another group a while ago that my packages are too intertwined - how can I fix that? I've tried using the facade design pattern, is it enough? Here's a link to the source code: https://github.com/Eukon05/financetracker/tree/master/src/main/java/com/eukon05/financetracker Thanks in advance for all replies 🙂
4 replies