eclipse maven 项目中缺少工件

发布于 2025-01-10 18:03:02 字数 8384 浏览 0 评论 0原文

当我尝试运行该项目时,出现此错误

Error: Could not find or load main class com.listactivitysyariah.ListActivitySyariahApplication
Description Resource    Path    Location    Type
Failed to read artifact descriptor for org.olap4j:olap4j:jar:0.9.7.309-JS-3

org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.olap4j:olap4j:jar:0.9.7.309-JS-3  
Missing artifact antlr:antlr:jar:2.7.7  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact ch.qos.logback:logback-classic:jar:1.2.3   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact ch.qos.logback:logback-core:jar:1.2.3  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.alibaba:fastjson:jar:1.2.57    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml:classmate:jar:1.5.1  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml.jackson.core:jackson-annotations:jar:2.10.3  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml.jackson.core:jackson-core:jar:2.10.3 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml.jackson.core:jackson-databind:jar:2.10.3 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.3    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.3  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.10.3 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.github.virtuald:curvesapi:jar:1.05 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.itextpdf:itext-pdfa:jar:5.5.0  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.itextpdf:itextpdf:jar:5.5.0    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.jayway.jsonpath:json-path:jar:2.4.0    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.sun.activation:jakarta.activation:jar:1.2.2    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.sun.istack:istack-commons-runtime:jar:3.0.8    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.sun.mail:jakarta.mail:jar:1.6.5    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.sun.xml.fastinfoset:FastInfoset:jar:1.2.16 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.zaxxer:HikariCP:jar:3.4.2  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact commons-beanutils:commons-beanutils:jar:1.9.0  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact commons-codec:commons-codec:jar:1.13   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact commons-collections:commons-collections:jar:3.2.1  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact commons-digester:commons-digester:jar:2.1  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact commons-logging:commons-logging:jar:1.1.1  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact eu.bitwalker:UserAgentUtils:jar:1.21   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta-regexp:jakarta-regexp:jar:1.4  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta.activation:jakarta.activation-api:jar:1.2.2    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta.annotation:jakarta.annotation-api:jar:1.3.5    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta.persistence:jakarta.persistence-api:jar:2.2.3  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta.transaction:jakarta.transaction-api:jar:1.3.3  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta.validation:jakarta.validation-api:jar:2.0.2    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jfree:jcommon:jar:1.0.15   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jfree:jfreechart:jar:1.0.12    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact junit:junit:jar:4.12   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact mysql:mysql-connector-java:jar:8.0.19  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact net.bytebuddy:byte-buddy-agent:jar:1.10.8  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact net.bytebuddy:byte-buddy:jar:1.10.8    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact net.minidev:accessors-smart:jar:1.2    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact net.minidev:json-smart:jar:2.3 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact net.sf.jasperreports:jasperreports:jar:6.0.0   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact net.sf.trove4j:core:jar:3.1.0  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact nz.net.ultraq.thymeleaf:thymeleaf-expression-processor:jar:1.1.3   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:jar:2.4.1 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact ognl:ognl:jar:3.1.12   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.commons:commons-collections4:jar:4.2    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.commons:commons-compress:jar:1.18   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.commons:commons-math3:jar:3.6.1 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.logging.log4j:log4j-api:jar:2.12.1  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.logging.log4j:log4j-to-slf4j:jar:2.12.1 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.lucene:lucene-analyzers-common:jar:4.5.1    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.lucene:lucene-core:jar:4.5.1    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.lucene:lucene-queries:jar:4.5.1 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.lucene:lucene-queryparser:jar:4.5.1 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Referenced file contains errors (http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd).  For more information, right click on the message in the Problems View and select "Show Details..."   web.xml /ListActivitySPVSyariah/src/main/webapp/WEB-INF line 1  XML Problem
Implementation of project facet java could not be found. Functionality will be limited. ListActivitySPVSyariah      Unknown Faceted Project Problem
Implementation of project facet jst.web could not be found. Functionality will be limited.  ListActivitySPVSyariah      Unknown Faceted Project Problem
Implementation of project facet wst.jsdt.web could not be found. Functionality will be limited. ListActivitySPVSyariah      Unknown Faceted Project Problem

,我在问题选项卡中收到此错误,我检查存储库文件夹是否在那里,

我已经更新了项目,删除了 .m2 文件夹并更新了项目,关闭并重新打开了项目,仍然得到了错误,谁能弄清楚问题是什么?

When I try run the project I have this error

Error: Could not find or load main class com.listactivitysyariah.ListActivitySyariahApplication
Description Resource    Path    Location    Type
Failed to read artifact descriptor for org.olap4j:olap4j:jar:0.9.7.309-JS-3

org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.olap4j:olap4j:jar:0.9.7.309-JS-3  
Missing artifact antlr:antlr:jar:2.7.7  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact ch.qos.logback:logback-classic:jar:1.2.3   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact ch.qos.logback:logback-core:jar:1.2.3  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.alibaba:fastjson:jar:1.2.57    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml:classmate:jar:1.5.1  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml.jackson.core:jackson-annotations:jar:2.10.3  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml.jackson.core:jackson-core:jar:2.10.3 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml.jackson.core:jackson-databind:jar:2.10.3 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.3    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.3  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.10.3 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.github.virtuald:curvesapi:jar:1.05 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.itextpdf:itext-pdfa:jar:5.5.0  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.itextpdf:itextpdf:jar:5.5.0    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.jayway.jsonpath:json-path:jar:2.4.0    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.sun.activation:jakarta.activation:jar:1.2.2    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.sun.istack:istack-commons-runtime:jar:3.0.8    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.sun.mail:jakarta.mail:jar:1.6.5    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.sun.xml.fastinfoset:FastInfoset:jar:1.2.16 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact com.zaxxer:HikariCP:jar:3.4.2  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact commons-beanutils:commons-beanutils:jar:1.9.0  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact commons-codec:commons-codec:jar:1.13   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact commons-collections:commons-collections:jar:3.2.1  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact commons-digester:commons-digester:jar:2.1  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact commons-logging:commons-logging:jar:1.1.1  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact eu.bitwalker:UserAgentUtils:jar:1.21   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta-regexp:jakarta-regexp:jar:1.4  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta.activation:jakarta.activation-api:jar:1.2.2    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta.annotation:jakarta.annotation-api:jar:1.3.5    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta.persistence:jakarta.persistence-api:jar:2.2.3  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta.transaction:jakarta.transaction-api:jar:1.3.3  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta.validation:jakarta.validation-api:jar:2.0.2    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jfree:jcommon:jar:1.0.15   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact jfree:jfreechart:jar:1.0.12    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact junit:junit:jar:4.12   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact mysql:mysql-connector-java:jar:8.0.19  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact net.bytebuddy:byte-buddy-agent:jar:1.10.8  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact net.bytebuddy:byte-buddy:jar:1.10.8    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact net.minidev:accessors-smart:jar:1.2    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact net.minidev:json-smart:jar:2.3 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact net.sf.jasperreports:jasperreports:jar:6.0.0   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact net.sf.trove4j:core:jar:3.1.0  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact nz.net.ultraq.thymeleaf:thymeleaf-expression-processor:jar:1.1.3   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:jar:2.4.1 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact ognl:ognl:jar:3.1.12   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.commons:commons-collections4:jar:4.2    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.commons:commons-compress:jar:1.18   pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.commons:commons-math3:jar:3.6.1 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.logging.log4j:log4j-api:jar:2.12.1  pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.logging.log4j:log4j-to-slf4j:jar:2.12.1 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.lucene:lucene-analyzers-common:jar:4.5.1    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.lucene:lucene-core:jar:4.5.1    pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.lucene:lucene-queries:jar:4.5.1 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Missing artifact org.apache.lucene:lucene-queryparser:jar:4.5.1 pom.xml /ListActivitySPVSyariah line 1  Maven Dependency Problem
Referenced file contains errors (http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd).  For more information, right click on the message in the Problems View and select "Show Details..."   web.xml /ListActivitySPVSyariah/src/main/webapp/WEB-INF line 1  XML Problem
Implementation of project facet java could not be found. Functionality will be limited. ListActivitySPVSyariah      Unknown Faceted Project Problem
Implementation of project facet jst.web could not be found. Functionality will be limited.  ListActivitySPVSyariah      Unknown Faceted Project Problem
Implementation of project facet wst.jsdt.web could not be found. Functionality will be limited. ListActivitySPVSyariah      Unknown Faceted Project Problem

I got this in the problem tab, I check the repository folder is there

I already do update the project, deleting .m2 folder and updating the project, closing and reopening the project, still got the error, can anyone figuring what is the problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

待天淡蓝洁白时 2025-01-17 18:03:02

有时 eclipse 会在没有明显原因的情况下给您带来问题。看起来问题出在配置中的某个地方。
我会尝试这个:

  1. 删除现有的运行配置。当您以“作为 Java 程序运行”运行主类时,它会将项目的默认类路径添加为
    用户进入运行配置的类路径,如下所示。
  2. 检查是否缺少库。
  3. 调试 Java 程序。

以下是一些有用的链接,您可以查看:
Eclipse“错误:无法找到或加载主类”

另请检查此链接:
https://www.java67.com/2016/09/3-ways-to-solve-eclipse-main-class-not-found-error-java.html

还有一个:https://www.eclipse.org/forums/index.php/t/1093209 /

其中一些解决方案应该适合您。

Sometimes eclipse can give you problems without obvious reason. Looks like the problem is somewhere in configuration.
I would try this:

  1. Delete existing run configurations. When you run the main class as "Run as Java Program", it adds the default classpath of the project as
    User entries into Run Configurations's classpath as shown below.
  2. Check for missing library.
  3. Debug the Java program.

Here is some useful link you can check:
Eclipse "Error: Could not find or load main class"

Also please check this link:
https://www.java67.com/2016/09/3-ways-to-solve-eclipse-main-class-not-found-error-java.html

And one more: https://www.eclipse.org/forums/index.php/t/1093209/

Some of these solutions should work for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文