1.修改pomxml文件
(在</project>之前添加):
<repositories>
<repository>
<id>JBoss repository</id>
<url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
</repository>
</repositories>
2.下载jar包,添加到本地仓库中
仓库目录:C:\Users\26951\.m2\repository
3.setting中修改设置