Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/306.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
Java 升级到3.1.1后的Maven插件默认描述符错误消息_Java_Maven_Plugins_Dependencies - Fatal编程技术网

Java 升级到3.1.1后的Maven插件默认描述符错误消息

Java 升级到3.1.1后的Maven插件默认描述符错误消息,java,maven,plugins,dependencies,Java,Maven,Plugins,Dependencies,我正在将我的系统的Maven运行时从3.0.5升级到3.1.1,并尝试像平常一样使用mvn clean install构建我的项目。使用较旧的Maven运行时,构建将始终成功。但是,我现在在构建过程中总是收到以下错误消息: [ERROR]无法在XYZ项目上执行goal org.apache.maven.plugins:maven插件:3.2:descriptor(默认描述符):goal org.apache.maven.plugins:maven插件的执行默认描述符:3.2:descriptor

我正在将我的系统的Maven运行时从3.0.5升级到3.1.1,并尝试像平常一样使用
mvn clean install
构建我的项目。使用较旧的Maven运行时,构建将始终成功。但是,我现在在构建过程中总是收到以下错误消息:

[ERROR]无法在XYZ项目上执行goal org.apache.maven.plugins:maven插件:3.2:descriptor(默认描述符):goal org.apache.maven.plugins:maven插件的执行默认描述符:3.2:descriptor失败:48188->[Help 1]

我认为这可能是因为我的依赖项和插件过时了,所以我运行了
mvn版本:使用最新版本
来更新我的pom.xml版本。这仍然没有解决这个问题。有什么想法吗


更新 根据流行的需求,下面是我的pom.xml文件的样子。请注意,所有依赖项和插件版本都由
mvn版本更新:使用最新版本
,Sitebricks和qdox除外,因为我不想将这些更改集成到我的项目中

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.my.company</groupId>
    <artifactId>my-own-project</artifactId>
    <version>1.0.1-SNAPSHOT</version>
    <name>My Cool Maven Plugin</name>
    <packaging>maven-plugin</packaging>
    <distributionManagement>
    <repository>
            <id>someID</id>
            <url>http://some.url.com</url>
    </repository>
    </distributionManagement>   
    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>
    <dependencies>
        <dependency>
        <groupId>org.freemarker</groupId>
        <artifactId>freemarker</artifactId>
        <version>2.3.20</version>
    </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-plugin-api</artifactId>
            <version>3.1.1</version>
        </dependency>
        <dependency>
            <groupId>org.codehaus.jackson</groupId>
            <artifactId>jackson-core-asl</artifactId>
            <version>1.9.11</version>
        </dependency>
        <dependency>
            <groupId>com.google.sitebricks</groupId>
            <artifactId>sitebricks</artifactId>
            <version>0.8.5</version>
        </dependency>
        <dependency>
            <groupId>com.thoughtworks.qdox</groupId>
            <artifactId>qdox</artifactId>
            <version>1.12</version>
        </dependency>
        <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>6.8.7</version>
        <scope>test</scope>
    </dependency>
    </dependencies>
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>2.3.1</version>
                <configuration>
                    <effort>Max</effort>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.4</version>
            </plugin>
        </plugins>
    </reporting>
</project>

4.0.0
我的公司
我自己的项目
1.0.1-快照
我的酷Maven插件
maven插件
某物
http://some.url.com
Apache软件许可证,版本2.0
http://www.apache.org/licenses/LICENSE-2.0.txt
回购
UTF-8
UTF-8
org.freemarker
自由标记
2.3.20
org.apache.maven
maven插件api
3.1.1
org.codehaus.jackson
jackson core asl
1.9.11
com.google.sitebricks
地砖
0.8.5
com.thoughtworks.qdox
量子点
1.12
org.testng
testng
6.8.7
测试
org.codehaus.mojo
findbugs maven插件
2.3.1
马克斯
org.codehaus.mojo
cobertura maven插件
2.4

我遇到了完全相同的问题,并尝试了可能的副本中提供的所有提示,但没有任何效果。最终证明是由其他第三方模块使用的库
com.ibm.icu:icu4j
的旧版本
2.6.1
造成的。我完全摆脱了
icu4j
依赖关系,maven插件运行之后没有问题

升级并在配置中使用以下依赖项解决了我的问题:

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-plugin-plugin</artifactId>
        <version>3.6.0</version>
        <configuration>
               <!-- see http://jira.codehaus.org/browse/MNG-5346 -->
               <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
        </configuration>
        <executions>
            <execution>
                <id>mojo-descriptor</id>
                <goals>
                    <goal>descriptor</goal>
                </goals>
            </execution>
        </executions>
      </plugin>

org.apache.maven.plugins
maven插件
3.6.0
真的
魔咒描述符
描述符

您能显示您的pom文件吗?请参阅pom.xml的更新此文件的可能副本对我有用。但是,指向的链接已经死了。事实上,它已经死了,所以我删除了它,因为它只是一个附加参考,链接现在已经死了,请参阅以获取存档副本