qq_43764144 2019-09-10 16:54 采纳率: 43.5%
浏览 1266
已采纳

在练习淘淘商城中配置ssm文件,一直报错:Missing artifact junit:junit:jar:${junit.version}

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>cn.itcast.usermanage</groupId>
  <artifactId>itcast-usermanage</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>war</packaging>
  <properties>
    <failOnMissingWebXml>false</failOnMissingWebXml>
  </properties>

  <dependencies>
            <!-- 单元测试 -->
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
                <scope>test</scope>
            </dependency>
</dependencies>
</project>

报错的地方就是:<!-- 单元测试 --> → 错误提示 Missing artifact junit:junit:jar:${junit.version}
这个是在子项目的中配置pom.xml一直提示这样的错误!我配置的仓库文件全部都有!

  • 写回答

2条回答 默认 最新

  • tkzc_shark 2019-09-10 17:53
    关注

    没有继承父工程

        <parent>
            <groupId></groupId>
            <artifactId></artifactId>
            <version></version>
            <relativePath>../pom.xml</relativePath>
        </parent>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码