Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
maven pom文件使用html代码而不是xml_Xml_Maven_Pom.xml - Fatal编程技术网

maven pom文件使用html代码而不是xml

maven pom文件使用html代码而不是xml,xml,maven,pom.xml,Xml,Maven,Pom.xml,我正在从命令行运行mvn安装,我得到以下错误 [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: 1 problem wa

我正在从命令行运行mvn安装,我得到以下错误

[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one   of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: 1 problem was encountered while building the effective model
[ERROR] [FATAL] Non-parseable POM C:\Users\Gary\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.6\maven-resources-plugin-2.6.pom: entity reference names can not start with character '&' (position: START_TAG seen ...nction d(a){var c,d,e,f=b.createElement("canvas"),g=f.getContext&&... @14:89)  @ line 14, column 89
我决定在本地maven存储库中打开maven资源插件2.6的pom文件,我发现:

maven-resources-plugin-2.6.pom

<!DOCTYPE html>
<html lang="de-DE">
<head>
<title>Mein Block &#8211; Ein weiterer WordPress-Blog</title>
<meta name='robots' content='noindex,follow' />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="template" content="Ignite 1.60" />
<meta name="generator" content="WordPress 4.5.3" />
<link rel="alternate" type="application/rss+xml" title="Mein Block &raquo; 
...

你能帮我弄清楚为什么我的项目不能正确构建吗?谢谢。

我在maven central中查找了maven resources plugin 2.6的pom,它只是一个普通的pom,而不是您拥有的奇怪的HTML文件。因此,您可能应该删除本地存储库的(部分)并从Maven Central重新加载文件。

当我在project中有公司存储库而我不在VPN上时,我就有了这个。要获取所有LIB,请执行以下操作:

1.我在开始时将Mvn依赖项添加到pom.xml(如果没有,可以省略此步骤):

(在m2目录中执行此命令)

#NOTE: This is an Aether internal implementation file, its format can be    changed without prior notice.
#Thu Jul 14 10:22:00 EDT 2016
maven-resources-plugin-2.6.pom>release-repo1.php-maven.org=
maven-resources-plugin-2.6.pom>central=
<repositories>
    <repository>
        <id>mvn</id>
        <name>mvn</name>
        <url>http://maven.icm.edu.pl/artifactory/repo/</url>
    </repository>
...other resps
grep -R -l -L groupId  --include \*.pom   //Search all that not contain groupId string