JUnit的5.2现在有一个BOM :
JUnit BOM:为了简化使用Maven或Gradle的依赖管理,现在在org.junit:junit-bom:5.2.0 Maven提供了物料清单POM。
当前的POM看起来像这样:<?xml version="1.0" encoding="UTF-8"?>
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">
4.0.0
com.bosspanda.tmp
0.1-SNAPSHOT
tmp
UTF-8
UTF-8
10
10
10
4.12
5.2.0
5.2.0
1.2.0
org.junit.jupiter
junit-jupiter-api
${junit.jupiter.version}
test
org.junit.jupiter
junit-jupiter-engine
${junit.jupiter.version}
test
org.junit.jupiter
junit-jupiter-params
${junit.jupiter.version}
test
org.junit.vintage
junit-vintage-engine
${junit.vintage.version}
test
junit
junit
${junit.version}
test
org.junit
junit-bom
5.2.0
pom
import
但有了这个后,IntelliJ IDEA (v,2018.1.3 Ultimate x64 ,maven v . 3.5.3 ,target JDK 10.0.1 ) 似乎不知道项目结构中没有注册模块,
如果我删除标签,BOM也不会被IDEA加载,
如何将BOM文件添加到pom依赖项?