0

使用 Jenkins 导入项目时出现以下异常

[ERROR] Failed to execute goal com.xebialabs.deployit:maven-deployit-plugin:3.8.3:import (default-cli) 
on project INFOGCService: 
Execution default-cli of goal 
com.xebialabs.deployit:maven-deployit-plugin:3.8.3:import failed:
com.xebialabs.deployit.service.importer.ImporterException:
The selected file does not have the expected format for an importable package

所有适当的参数都已分别在 pom 和 deploy-itpom 中设置。

deployit-pom.xml

<parent>
    <groupId>something</groupId>
    <artifactId>deployit-root</artifactId>
    <version>LATEST</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.something.service.war</groupId>
<artifactId>ProjectP</artifactId>
<packaging>dar</packaging>
<version>${pom_version}</version>
<name>DAR archive for project ProjectP.</name>

pom.xml

<parent>
    <groupId>com.something.softwarefactory</groupId>
    <artifactId>maven-parent</artifactId>
    <version>2.0.0</version>
</parent>

<groupId>com.something.service.war</groupId>
<artifactId>ProjectP</artifactId>
<packaging>war</packaging>
 <version>2.6.4-SNAPSHOT</version>
<!-- ============ -->
<!-- Informations -->
<!-- ============ -->

如何解决这个问题?

4

1 回答 1

1

我认为您在deployit-pom.xml. 您还需要指定应该出现在 中的工件和/或资源dar(另请参阅此示例)。而且您可能还想更新到最新版本的插件v6.0.1

于 2017-09-25T17:16:38.550 回答