Invalid classpath publish/export dependency /common. Project entries not supported

来源:互联网 发布:php新闻发布系统 编辑:程序博客网 时间:2024/06/15 08:52

参考http://blog.csdn.net/liuxiao723846/article/details/51435986   感谢!


Description ResourcePath LocationType
Invalid classpath publish/export dependency /dubbo-demo-interface. Project entries not supported.dubbo-demo-consumer P/dubbo-demo-consumerClasspath Dependency Validator Message

eclipse中使用maven构建多模块项目,想在read-face(war)中引入read-common(jar),在pom.xml中可以引入,使用maven打包生成的war也没问题,可以在eclipse中一直报错:Invalid classpath publish/export dependency /common. Project entries not supported


解决:

项目右键>Properties -> Deployment Assembly -> Add

在弹出的框中选中read-common项目



原因:个人认为和spring-web导了依赖包还是报classNotFind一样的道理,虽然在pom文件中导入了,但是并没有导入到项目的classpath中来,报错说是失败了,通过deployment assembly add进来的方式能够成功。

阅读全文
0 0
原创粉丝点击