请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

项目迁移部分文件丢失问题

问题现象:将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文件,请老师看看。

图片描述

正在回答 回答被采纳积分+3

1回答

翔仔 2023-06-25 15:59:26

同学好,感觉你是不是把idea文件也迁移过去了 因为我看你那边有dstore之类的东西 建议源码直接传github 再pull下来的起起来。

0 回复 有任何疑惑可以回复我~
  • 提问者 慕函数8175591 #1
    没有idea文件,尝试过将代码推到gitgub上再从另一台电脑上拉下来,仍然是同样的问题。加载到的pom文件为问题描述截图中的pom文件,看起来并不是我自己工程的pom文件。第一台电脑上的目录里有.classpath .project .settings文件
    回复 有任何疑惑可以回复我~ 2023-06-26 02:19:50
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信