Spring Boot打包报错Failed to execute goal org.apache.maven.pluginsmaven-resources-plugin:3.2.0

问题描述:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project helloworld: Input length = 1 -> [Help 1]

问题分析:

plugins标签里面缺少maven-resources-plugin依赖。

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-maven-pluginartifactId>
        plugin>
    plugins>
build>

解决办法:

添加maven-resources-plugin依赖。

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.pluginsgroupId>
            <artifactId>maven-resources-pluginartifactId>
            <version>3.1.0version>
        plugin>
        <plugin>
            <groupId>org.springframework.bootgroupId>
            <artifactId>spring-boot-maven-pluginartifactId>
        plugin>
    plugins>
build>

你可能感兴趣的:(异常错误处理,spring,boot,apache,maven)