急急急!!!在线等!!!各位大神帮帮忙 小弟是win10 的系统,使用springboot开发的项目,ecplise使用的是Eclipse Jee Oxygen

blank2888 2018-10-12 06:06:01
急急急!!!在线等!!!各位大神帮帮忙
小弟是win10 的系统,使用springboot开发的项目,ecplise使用的是Eclipse Jee Oxygen(氧气) 的版本,使用maven instal打包总是报错,报错信息如下 :
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< com.jointsky.export:exportexcel >-------------------
[INFO] Building exportexcel 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for ch.qos.logback:logback-core:jar:1.2.3 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.slf4j:slf4j-api:jar:1.7.25 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.apache.logging.log4j:log4j-to-slf4j:jar:2.10.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.slf4j:jul-to-slf4j:jar:1.7.25 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for javax.annotation:javax.annotation-api:jar:1.3.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.yaml:snakeyaml:jar:1.19 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.springframework.data:spring-data-commons:jar:2.0.7.RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for javax.persistence:javax.persistence-api:jar:2.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.unbescape:unbescape:jar:1.1.5.RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.thymeleaf.extras:thymeleaf-extras-java8time:jar:3.0.1.RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for commons-lang:commons-lang:jar:2.6 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for commons-beanutils:commons-beanutils:jar:1.8.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for commons-collections:commons-collections:jar:3.2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for commons-lang:commons-lang:jar:2.5 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for commons-logging:commons-logging:jar:1.1.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.springframework.data:spring-data-jpa:jar:2.0.7.RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.jboss:jandex:jar:2.0.3.Final is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ exportexcel ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 207 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ exportexcel ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 95 source files to F:\java_code\exportexcel\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/service/ManualNoiseServiceImpl.java:[9,33] 程序包org.mockito.internal.util不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/PrimaryConfig.java:[12,35] 程序包org.springframework.orm.jpa不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/PrimaryConfig.java:[13,35] 程序包org.springframework.orm.jpa不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/PrimaryConfig.java:[40,12] 找不到符号
符号: 类 LocalContainerEntityManagerFactoryBean
位置: 类 com.jointsky.exportexcel.config.PrimaryConfig
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/SecondaryConfig.java:[11,35] 程序包org.springframework.orm.jpa不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/SecondaryConfig.java:[12,35] 程序包org.springframework.orm.jpa不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/SecondaryConfig.java:[37,12] 找不到符号
符号: 类 LocalContainerEntityManagerFactoryBean
位置: 类 com.jointsky.exportexcel.config.SecondaryConfig
[INFO] 7 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.633 s
[INFO] Finished at: 2018-10-12T17:58:06+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project exportexcel: Compilation failure: Compilation failure:
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/service/ManualNoiseServiceImpl.java:[9,33] 程序包org.mockito.internal.util不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/PrimaryConfig.java:[12,35] 程序包org.springframework.orm.jpa不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/PrimaryConfig.java:[13,35] 程序包org.springframework.orm.jpa不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/PrimaryConfig.java:[40,12] 找不到符号
[ERROR] 符号: 类 LocalContainerEntityManagerFactoryBean
[ERROR] 位置: 类 com.jointsky.exportexcel.config.PrimaryConfig
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/SecondaryConfig.java:[11,35] 程序包org.springframework.orm.jpa不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/SecondaryConfig.java:[12,35] 程序包org.springframework.orm.jpa不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/SecondaryConfig.java:[37,12] 找不到符号
[ERROR] 符号: 类 LocalContainerEntityManagerFactoryBean
[ERROR] 位置: 类 com.jointsky.exportexcel.config.SecondaryConfig
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
...全文
343 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
youyiyang 2018-10-12
  • 打赏
  • 举报
回复
那你查下它的Build Path,是不是在其他地方引入了?
blank2888 2018-10-12
  • 打赏
  • 举报
回复
把我的项目在别人的ecplise中导入后可以正常的打包,他没有引入其他的依赖或者程序包
youyiyang 2018-10-12
  • 打赏
  • 举报
回复
https://search.maven.org 搜 jpa orm springframework <dependency> <groupId>com.github.ankurpathak.springframework.orm.jpa</groupId> <artifactId>spring-orm-jpa-extension</artifactId> <version>1.0.1</version> </dependency>
youyiyang 2018-10-12
  • 打赏
  • 举报
回复

[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/service/ManualNoiseServiceImpl.java:[9,33] 程序包org.mockito.internal.util不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/PrimaryConfig.java:[12,35] 程序包org.springframework.orm.jpa不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/PrimaryConfig.java:[13,35] 程序包org.springframework.orm.jpa不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/PrimaryConfig.java:[40,12] 找不到符号
  符号:   类 LocalContainerEntityManagerFactoryBean
  位置: 类 com.jointsky.exportexcel.config.PrimaryConfig
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/SecondaryConfig.java:[11,35] 程序包org.springframework.orm.jpa不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/SecondaryConfig.java:[12,35] 程序包org.springframework.orm.jpa不存在
[ERROR] /F:/java_code/exportexcel/src/main/java/com/jointsky/exportexcel/config/SecondaryConfig.java:[37,12] 找不到符号
这些错误说明你要引入的包不存在,你需要通过maven把它们引入进来呀。 比如org.springframework.orm.jpa不存在,你就在maven的官网上搜一下,就能找到相应的groupid 和 artifactid等,再复制黏贴到pom.xml文件中就可以了

67,515

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧