今天通过Eclipse创建一个maven项目,
<dependency> <groupId>javaee</groupId> <artifactId>javaee-api</artifactId> <version>7</version> </dependency>
提示Missing artifact javax:javaee-api:jar:7.0
百度了一下,各种说法都有,后来在Maven库官网http://mvnrepository.com找到了答案:
http://mvnrepository.com/artifact/javax/javaee-api/7.0
修改:
<!-- https://mvnrepository.com/artifact/javax/javaee-api -->
<dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>7.0</version> </dependency>