idea用version标签配置版本号报错版本号missing

问题描述:
3.3.2配置pom的版本号,报错

'dependencies.dependency.version' for com.baomidou:mybatis-plus-boot-starter:jar is missing. @ line 33, column 21

详细报错如下:
idea用version标签配置版本号报错版本号missing_第1张图片
详细pom如下:
idea用version标签配置版本号报错版本号missing_第2张图片

解决办法:
少了一个注解,例子如下

 <properties>
        <mybatis-plus.version>3.3.2mybatis-plus.version>
        <java.version>1.8java.version>
        <mysql.version>5.1.46mysql.version>
        <swagger.version>2.7.0swagger.version>
        <jwt.version>0.7.0jwt.version>
        <fastjson.version>2.0.7fastjson.version>
        <httpclient.version>4.5.1httpclient.version>
        <easyexcel.version>2.2.0-beta2easyexcel.version>
        <aliyun.version>4.1.1aliyun.version>
        <oss.version>3.9.1oss.version>
        <jodatime.version>2.10.1jodatime.version>
    properties>
    
    <dependencyManagement>
        <dependencies>
            
            <dependency>
                <groupId>com.baomidougroupId>
                <artifactId>mybatis-plus-boot-starterartifactId>
                <version>${mybatis-plus.version}version>
            dependency>


            <dependency>
                <groupId>mysqlgroupId>
                <artifactId>mysql-connector-javaartifactId>
                <version>${mysql.version}version>
            dependency>

            
            <dependency>
                <groupId>io.springfoxgroupId>
                <artifactId>springfox-swagger2artifactId>
                <version>${swagger.version}version>
            dependency>
            
            <dependency>
                <groupId>io.springfoxgroupId>
                <artifactId>springfox-swagger-uiartifactId>
                <version>${swagger.version}version>
            dependency>

            <dependency>
                <groupId>io.jsonwebtokengroupId>
                <artifactId>jjwtartifactId>
                <version>${jwt.version}version>
            dependency>

            <dependency>
                <groupId>org.apache.httpcomponentsgroupId>
                <artifactId>httpclientartifactId>
                <version>${httpclient.version}version>
            dependency>

            <dependency>
                <groupId>com.alibabagroupId>
                <artifactId>fastjsonartifactId>
                <version>${fastjson.version}version>
            dependency>

            <dependency>
                <groupId>com.alibabagroupId>
                <artifactId>easyexcelartifactId>
                <version>${easyexcel.version}version>
            dependency>

            <dependency>
                <groupId>com.aliyungroupId>
                <artifactId>aliyun-java-sdk-coreartifactId>
                <version>${aliyun.version}version>
            dependency>

            <dependency>
                <groupId>com.aliyun.ossgroupId>
                <artifactId>aliyun-sdk-ossartifactId>
                <version>${oss.version}version>
            dependency>

            
            <dependency>
                <groupId>joda-timegroupId>
                <artifactId>joda-timeartifactId>
                <version>${jodatime.version}version>
            dependency>


        dependencies>
    dependencyManagement>

你可能感兴趣的:(intellij-idea,java,ide)