Failed to execute goal org.apache .maven.plugins.maven-resounces-plugin:3.2.0:resounces

1.在部署微服务系统的服务中心和服务提供者时,在打包的过程中,出现过如下的错误:

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

2.解决方法

在原pom.xml的配置文件中,添加如下的代码:

 

    <build>
    <plugins>
    <plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    </plugin>
     
    <!-- 添加代码 -->
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.7</version>
      <dependencies>
        <dependency>
          <groupId>org.apache.maven.shared</groupId>
          <artifactId>maven-filtering</artifactId>
          <version>1.3</version>
        </dependency>
      </dependencies>
    </plugin>
     
    </plugins>
    </build>

 

posted @ 2020-12-05 19:52  码哥之旅  阅读(429)  评论(0编辑  收藏  举报