无法使用 maven-jar-plugin 构建 jar

Unable to build the jar with maven-jar-plugin

我正在使用 maven-compiler-plugin 3.1 当我尝试执行 'Run As---> Maven install' 时,出现以下错误:

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.

排除了 tomcat 依赖于 spring 启动器

<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>