1.由于项目需要引入了groovy的包
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>${groovy.version}</version>
<type>pom</type>
</dependency>
结果编译后启动报错:
Cannot resolve org.codehaus.groovy:groovy-all:3.0.9...
经过排查确认:
父类包的pom文件打包类型为<packaging>pom</packaging>
所以要加上type,如下
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>${groovy.version}</version>
<type>pom</type>
</dependency>