maven工程pom.xml报Missing artifact net.sf.jasperreports:jasperreports:jar:6.2.0

有时maven工程的pom.xml报以下类型错误:

Description Resource Path Location Type
Missing artifact net.sf.jasperreports:jasperreports:jar:6.2.0 pom.xml /lazytester line 1 Maven Dependency Problem
可通过以下方式解决:

1.检查maven配置,确保正确;

2.检查maven本地库,是否有对应的jar包;

3.右键工程,选择update  project,弹开的页面中,将Force update of Snapshots/Release勾选,然后点击ok进行更新。如下图:

经过以上步骤应该可以解决问题。

 

原文地址:https://www.cnblogs.com/Anidot/p/7208636.html