当我尝试运行该项目时,出现了以下错误
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:
我已经将我的外部jar部署到本地Nexus存储库。我在setting.xml中定义了存储库,并在POM.xml中提供了依赖关系。
但是,当我尝试从该jar导入任何类时,我的项目可以在Maven依赖项中下载jar。
我不能进口它。它的意思是cannot be resolved to a type。
因此,简而言之,我无法使用jar中的类,这些类是我从本地nexus存储库下载的。
有人能帮我吗?
这里是我的Setting.xml文件的存储库部分
<profiles>
<profile>
<id>myprofile</id>
&l
我有一个Maven (3.2.5)项目,它由于缺少依赖关系而失败。mvn clean install输出的相关部分:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (package-jar-with-dependencies) on project splitter: Failed to create assembly: Failed to resolve dependencies for project: groupId1:splitter:jar
在试图从Intellij运行测试(在maven项目上)时,我经常遇到下面提到的错误
[my-module] Exception in parsing jar file for extract from jar: /path/to/pom.xml java.util.zip.ZipException: The JAR/ZIP file (/path/to/pom.xml) seems corrupted, error: error in opening zip file
但是,当从命令行运行时,所有maven循环都运行良好。
以前有没有人面对过这个问题?
我已经试过这些东西了
无效Intel
我一直在为我的Spring MVC项目需要的所有jar文件执行此操作:
call mvn install:install-file -DgroupId=vegetables -DartifactId=potatoes -Dversion=1.0 -Dfile=vegetables-1.0.jar -Dpackaging=jar -DgeneratePom=true
最近,我肯定超出了pom.xml文件中可以列出的依赖项数量的限制,因为我收到了一个错误,内容是:
Your command line is too long
因此,我从pom.xml中删除了一些我的项目不再使用的依赖项,并且能够再