我正在使用maven-compiler-plugin 3.1当我尝试执行' Run As ---> Maven安装',我收到以下错误:
Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.3.2:jar (default-jar) on project test-tom: Error assembling JAR: For artifact {org.springframework.boot:spring-boot-starter-tomcat:null:jar}: The version cannot be empty.
答案 0 :(得分:0)
排除tomcat取决于spring boot starter
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>