Проблема : По некоторым причинам мое основное приложение не может импортировать классы из других модулей.
Также я не вижу, чтобы скомпилированный вывод модулей Data и Remote был включен в main Main: war: взорван в WEB-INF / классах в Module Settings (IntelliJ)
Основное приложение
<groupId>com.example.entitlement</groupId>
<artifactId>service</artifactId>
<version>1.0-SNAPSHOT</version>
<modules>
<module>Data</module>
<module>Remote</module>
</modules>
<packaging>pom</packaging>
Модуль данных
<parent>
<artifactId>service</artifactId>
<groupId>com.example.entitlement</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>data</artifactId>
Удаленный модуль
<parent>
<artifactId>service</artifactId>
<groupId>com.example.entitlement</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>remote</artifactId>
Редактировать
Я добавил зависимости как предложено.
<dependency>
<groupId>com.example.entitlement</groupId>
<artifactId>data</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.example.entitlement</groupId>
<artifactId>remote</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
Редактировать
Моя структура каталогов
![enter image description here](https://i.stack.imgur.com/kBkF8.png)