Open lglabs opened 1 year ago
Checking the documentation to do exclude!! https://docs.spring.io/spring-boot/docs/2.3.x/maven-plugin/reference/html/#repackage-example-exclude-dependency
Propos: Alternative 1: Maybe, from parent pom.xml
<!--restaurant service -->
<dependency>
<groupId>com.labs.lg.food.ordering.system</groupId>
<artifactId>restaurant-domain-core</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclusion>
</exclusions>
</dependency>
Alternative 2: From domain-core pom.xml add a plugin
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
Note: These are only ideas, Continue search!
Working to fix it soon. Using Lg5-Spring Lib
When the DomainCore layer can access these libraries, it has a problem with the Domain definition.
It is important to remove these dependencies. Thus, the domain layer will be isolated from the framework.
In the following image you can see the unnecessary dependencies![restaurant-domain-core](https://github.com/lg-lab/food-ordering-system/assets/105936384/e2a0a47d-f39d-4158-a7af-e39cff3ebf41)