首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用Jenkins导入项目时发生com.xebialabs.deployit.service.importer.ImporterException

使用Jenkins导入项目时发生com.xebialabs.deployit.service.importer.ImporterException
EN

Stack Overflow用户
提问于 2017-07-21 18:33:25
回答 1查看 845关注 0票数 0

使用Jenkins导入项目时发生以下异常

代码语言:javascript
复制
[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

代码语言:javascript
复制
<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

代码语言:javascript
复制
<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 -->
<!-- ============ -->

如何解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2017-09-26 01:16:39

我想你遗漏了deployit-pom.xml中的一些配置。您还需要指定应该出现在dar中的工件和/或资源(另请参阅此example)。您可能还想更新到最新版本的插件v6.0.1

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45235410

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档