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

来源: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下来的起起来。

0
1
慕函数8175591
没有idea文件,尝试过将代码推到gitgub上再从另一台电脑上拉下来,仍然是同样的问题。加载到的pom文件为问题描述截图中的pom文件,看起来并不是我自己工程的pom文件。第一台电脑上的目录里有.classpath .project .settings文件
2023-06-26
共1条回复

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5113 学习 · 8144 问题

查看课程