问题现象:将Java web项目从一台mac A迁移到另一台mac B,出现部分包找不到的问题。A和B的配置相同,项目在A上开发,打成zip包后迁移到B,解压后删除.classpath .project .settings 导入eclipse,项目目录正常。并且能读取到正常的pom文件。但是将project add到serves以后点击start报错
Publishing failed with multiple errors
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/.DS_Store.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/.DS_Store.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/META-INF/.DS_Store.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/META-INF/.DS_Store.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/META-INF/MANIFEST.MF.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/META-INF/maven/.DS_Store.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/META-INF/maven/.DS_Store.
ci
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/META-INF/maven/org.bytesizebook.com.guide.boot/.DS_Store.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/META-INF/maven/org.bytesizebook.com.guide.boot/.DS_Store.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/META-INF/maven/org.bytesizebook.com.guide.boot/basic-webapp/pom.properties.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/META-INF/maven/org.bytesizebook.com.guide.boot/basic-webapp/pom.properties.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/META-INF/maven/org.bytesizebook.com.guide.boot/basic-webapp/pom.xml.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/m2e-wtp/web-resources/META-INF/maven/org.bytesizebook.com.guide.boot/basic-webapp/pom.xml.
File not found: /Users/yangshasha/eclipse-workspace/basic-webapp/target/classes/infinity/com/O2O/cache/JedisPoolWriper.class.
…
此时原本存在的pom文件消失。
尝试过重新再添加一个pom文件但是依然无法正常加载到包。
在添加project的时候加载到的pom文件貌似不是当前project的,但是我不知道怎加载到当前project的pom文件,请老师看看。
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
了解课程