【发布时间】:2022-07-08 02:08:44
【问题描述】:
我正在尝试对我的多模块应用程序进行 docker 化(我正在使用带有端口和适配器模式的六边形架构)。 这是我的应用程序的结构: App structure
我的根 pom 是这样的:
<?xml version="1.0" encoding="UTF-8"?>
4.0.0
<groupId>org.example</groupId>
<artifactId>Example project</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>domain</module>
<module>infrastructure</module>
<module>application</module>
<module>fwm-launcher</module>
</modules>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.5</version>
</parent>
<properties>
<maven.compiler.source>18</maven.compiler.source>
<maven.compiler.target>18</maven.compiler.target>
</properties>
【问题讨论】:
标签: java spring maven multi-module hexagonal-architecture