springboot (2) - Maven のパッケージ化の失敗を解決します: パッケージ XXX が存在しません

オプション 1:

参照モジュールの pom で、build-plugins-plugin タグの下に追加します<configuration><classifier>exec</classifier></configuration>

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

解決策 2:
コンソールに次のコマンドを入力して、Maven ローカル リポジトリをクリアし、プロジェクトを再構築します。ターミナルで次のコマンドを実行して、Maven のローカル リポジトリをクリアします。

mvn dependency:purge-local-repository

3番目の解決策:

ファイル————> 設定————> ランナー————> 勾選択デリゲート xxxxxxxxxxxxxxxx

オプション 2 を強くお勧めします

おすすめ

転載: blog.csdn.net/weixin_46457946/article/details/130445354