项目迁移部分文件丢失问题
来源:13-14 -部署补充
慕函数8175591
2023-06-19
问题现象:将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文件,请老师看看。
1回答
-
翔仔
2023-06-25
同学好,感觉你是不是把idea文件也迁移过去了 因为我看你那边有dstore之类的东西 建议源码直接传github 再pull下来的起起来。
012023-06-26
相似问题