2017-07-21 27 views
0

以下異常後進口使用詹金斯com.xebialabs.deployit.service.importer.ImporterException發生的歷史,同時導入使用詹金斯

項目存在的項目
[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設置和部署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 --> 
<!-- ============ --> 

如何解決這個問題?

回答

0

我想你錯過了deployit-pom.xml中的一些配置。您還需要指定應存在於dar中的工件和/或資源(另請參閱此example)。 而且您還可能要更新到最新版本的插件v6.0.1