尝试在本地Tomcat上运行我的应用程序时,尽管我确定该软件包已作为依赖项包含在我的pom文件中,但出现以下错误。
ERROR [2018-10-10 02:03:41,483] org.apache.catalina.core.ContainerBase.
[Catalina].[localhost].[/MyApplication]: Exception sending context initialized event to listener instance of class com.my.app.WebApplication
! org.osgi.framework.BundleException: The bundle "com.my.lum.app- service_1.0.0.SNAPSHOT [1162]" could not be resolved. Reason: Missing Constraint: Import-Package: org.apache.commons.collections4.map; version="4.2.0"