Java 多模块Maven和Spring Boot项目没有´;t为辅助模块生成fat可执行jar

Java 多模块Maven和Spring Boot项目没有´;t为辅助模块生成fat可执行jar,java,spring-boot,maven,Java,Spring Boot,Maven,我有一个多模块Maven/Spring Boot(v2.3.3)应用程序,实现如下: my-project (pom) \__ my-api (jar) - rest api controllers \__ my-core (jar) - entities, repositories and service beans \__ my-db (jar) - DB migration (with Mongock) 项目和应用程序运行良好,没有什么大不了的。“MyAPI”模块

我有一个多模块Maven/Spring Boot(v2.3.3)应用程序,实现如下:

my-project (pom)
  \__ my-api (jar)   - rest api controllers
   \__ my-core (jar) - entities, repositories and service beans
    \__ my-db (jar)  - DB migration (with Mongock)
项目和应用程序运行良好,没有什么大不了的。“MyAPI”模块有一个主spring引导应用程序类,它像往常一样运行api

问题是,最近我添加了“MyDB”模块来实现MongoDB迁移,从而在CI部署中实现自动化。“my db”模块还有另一个主要的spring boot应用程序类,它是一个独立的应用程序,运行迁移过程,我想在我的CI环境中实现自动化

问题是,我的maven构建没有为“MyDB”模块生成fat可执行JAR,只为“MyAPI”模块生成

我错过什么了吗

我的项目pom.xml:

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <skip>true</skip>
            </configuration>
        </plugin>
    </plugins>
</build>

org.springframework.boot
springbootmaven插件
真的
my api pom.xml:

<build>
    <finalName>my-api</finalName>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <mainClass>my.ApiApplication</mainClass>
                <executable>true</executable>
                <layout>JAR</layout>
                <fork>true</fork>
                <skip>false</skip>
            </configuration>
            <executions>
                <execution>
                    <goals>
                        <goal>repackage</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

我的api
org.springframework.boot
springbootmaven插件
我的申请表
真的
罐子
真的
假的
重新包装
my core pom.xml:

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <executions>
                <execution>
                    <phase>test</phase>
                    <goals>
                        <goal>test-jar</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

org.apache.maven.plugins
maven jar插件
测试
试验罐
my db pom.xml:

<properties>
    <start-class>my.DbMigrationApp</start-class>
</properties>

<build>
    <finalName>my-db</finalName>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

my.dbmigration应用程序
我的数据库
org.springframework.boot
springbootmaven插件

看起来“my db”pom文件的插件块中缺少此配置

<configuration>
    <skip>false</skip>
</configuration>

假的