首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Maven -未能在项目上执行目标org.apache.maven.plugins:maven-assembly-plugin:2.4:single (1-预dist)

Maven -未能在项目上执行目标org.apache.maven.plugins:maven-assembly-plugin:2.4:single (1-预dist)
EN

Stack Overflow用户
提问于 2016-10-27 08:19:59
回答 1查看 1.3K关注 0票数 2

我使用的是wso2 EM2.2.0Beta,请参考下面的错误控制台。当我运行maven安装时,我遇到了maven程序集插件问题。

所以请告诉我为什么会发生这种情况?并提出了一些解决这个问题的建议。

代码语言:javascript
复制
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building WSO2 Mobile Device Manager (MDM) - Distribution 2.2.0-BETA2
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- incremental-build-plugin:1.3:incremental-build (default) @ wso2emm ---
[INFO] Verifying module descriptor ...
[INFO] Verifying parent modules...
[INFO] Verifying resources...
[INFO] Resources directory does not exist : /home/next/Praveen/Project/secureON/Project/Project_Setup/product-emm-2.2.0-BETA2/modules/distribution/src/main/resources
[INFO] Verifying sources...
[INFO] No sources to check ...
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ wso2emm ---
[INFO] Storing buildNumber: 27 Oct 2016 at timestamp: 1477554746130
[WARNING] Cannot get the branch information from the git repository: 
Detecting the current branch failed: fatal: Not a git repository (or any of the parent directories): .git

[INFO] Executing: /bin/sh -c cd /home/next/Praveen/Project/secureON/Project/Project_Setup/product-emm-2.2.0-BETA2/modules/distribution && git rev-parse --verify HEAD
[INFO] Working directory: /home/next/Praveen/Project/secureON/Project/Project_Setup/product-emm-2.2.0-BETA2/modules/distribution
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ wso2emm ---
[INFO] 
[INFO] --- maven-assembly-plugin:2.4:single (1-pre-dist) @ wso2emm ---
[INFO] Reading assembly descriptor: /home/next/Praveen/Project/secureON/Project/Project_Setup/product-emm-2.2.0-BETA2/modules/distribution/src/assembly/dist.xml
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.203s
[INFO] Finished at: Thu Oct 27 13:22:26 IST 2016
[INFO] Final Memory: 13M/188M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (1-pre-dist) on project wso2emm: Failed to create assembly: Error creating assembly archive dist: You must set at least one file.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-10-27 10:06:47

如果您想要构建WSO2 EMM2.2.0Beta,请遵循以下步骤。

  1. 克隆产品-emm回购git clone https://github.com/wso2/product-emm.git
  2. 查看v2.2.0-BETA标记。git checkout v2.2.0-BETA
  3. 从根部开始构建。转到项目根文件夹并发出mvn clean install

如果您只想要产品zip,您可以为它构建分发模块,然后转到项目根->模块、->distribution文件夹并从那里发出mvn clean install。您可以在distribution/target文件夹中找到构建压缩文件。

好像你在支行。在emm beta标记创建之后添加了失败的maven目标。失败的原因是,在构建时,它试图连接到internet中的某些资源,而您的计算机未能连接到internet上的资源。如果您真的想要构建主分支(2.2.0-快照),只需检查您的internet连接或防火墙阻塞。

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

https://stackoverflow.com/questions/40279574

复制
相关文章

相似问题

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