我是Maven的新手,一直在尝试将现有的web项目配置到Maven项目中。
我在添加hibernate依赖项时遇到以下错误。
**cvc-complex-type.2.4.a: Invalid content was found starting with element 'dependency'. One of '{"http://maven.apache.org/POM/4.0.0":parent, "http://maven.apache.org/POM/4.0.0":name, "http://maven.apache.o
我对Maven pom.xml配置不是很在行。
对于Corda (Blockchain) Bootcamp示例,我正在尝试配置一个Eclipse项目,使其与Java和Kotlin一起工作,但我面临以下错误消息:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'plugin'.
One of '{
"http://maven.apache.org/POM/4.0.0":parent,
"http://maven.apache.org
我已经从GitHub下载了一个java项目,并且正在尝试编译它。
我在pom.xml文件中有一个错误,我在互联网上搜索了一个解决方案,似乎是谁有相同的问题,但与其他元素。
错误是
cvc-complex-type.2.4.a: Invalid content was found starting with element 'organisation'.
One of '{"http://maven.apache.org/POM/4.0.0":parent,
"http://maven.apache.org/POM/4.0.0":name
我已经用plagins更新了我的pom.xml,但得到了错误:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'plugin'. One of '{"http://maven.apache.org/POM/
4.0.0":parent, "http://maven.apache.org/POM/4.0.0":description, "http://maven.apache.org/POM/4.0.0":prer
当我用mvn编译maven项目时,我得到了下面的错误,甚至在artifactory上也有exec-maven.plugin-1.4.pom文件: Downloading : https://domain.abc/public/org/code/exec-maven.plugin/1.4/exec-maven.plugin-1.4.pom
[ERROR]Invalid packaging for parent pom org.code.exec-maven.plugin:1.4 must be pom but is "maven-plugin @"
[ERROR]Invali
下面的脚本通过查看不同Maven项目的pom.xml来检查它们的父版本。
#!/bin/bash
# Loop to find all pom.xml
for i in `find . ! -path "*/target/*" -type f -name pom.xml`
do
# Filter the parent artifactId.
grep -q 'IC_Maven_JEE_Parent\|IC_Maven_Parent' $i
if [ "$?" -eq 0 ]; then
# Print parent
当我尝试运行该项目时,出现了以下错误
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:
我在maven中遇到了一个构建错误,我无法解释,我的项目布局是:
root
|--parent
|--project
其中根(聚合器)和项目都使用“父”作为其父。
我在另一个项目中使用了这个布局,maven能够构建这个布局。但是,在这个项目中,如果我试图构建,就会在不可解析的父pom上失败:
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for maven.test:maven-test-project:9.9.9-SNAPS
我刚刚创建了一个新的maven项目,在创建时,我已经有了一个错误:
Description Resource Path Location Type
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plug
我试图通过maven编译一个项目(2..),并获得一组看起来类似的错误
(use -source 7 or higher to enable try-with-resources)
/home/moonsearch/moonsearch/./site/src/com/myPrj/site/tags/MyTag.java:[32,37] error: multi-catch statement is not supported in -source 1.3
我用POM编写了一个1.7版本,如下所示:
<plugin><artifactId>maven-compiler-p
当我在终端中给出./ ubuntu.But (用于编译opennms源代码)时,我试图在中构建opennms,我得到了以下错误。我使用的是maven 2.2.1版本。有谁能提供一个解决方案。
注意:删除了超链接,如stacktrace中的http。
[WARNING] Unable to get resource 'org.apache.felix:maven-bundle-plugin:pom:1.4.3' from repository java-net-repo (http://maven.opennms.org/content/groups/java.net-relea
问题:
[ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.name.dept:comp:5.0.15-SNAPSHOT-SNAPSHOT: Could not transfer artifact com.name.dept:comp-parent:pom:1.0.12 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org and
我尝试使用Springsource工具套件(STS),但我有太多的编译错误。
classpath error: unable to find org.aspectj.lang.JoinPoint (check that aspectjrt.jar is in your classpath) SpringApp Unknown Java Problem
ArtifactDescriptorException: Failed to read artifact descriptor for cglib:cglib-nodep:jar:2.2: ArtifactResolutionEx
如果稍后给出解决方案并进入eclipse,则会在Pom.xml中得到错误
Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced.
Or
我想使用Maven自动导入我需要的所有库,所以我选择了"maven-archetype-webpp"
在此之后,我得到了pom.xml文件上的错误:
Description Resource Path Location Type Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be