Maven-无法在项目上执行goal org.apache.Maven.plugins:Maven程序集plugin:2.4:single(1-pre-dist)

Maven-无法在项目上执行goal org.apache.Maven.plugins:Maven程序集plugin:2.4:single(1-pre-dist),maven,wso2,wso2-emm,Maven,Wso2,Wso2 Emm,我正在使用wso2 emm 2.2.0测试版,请参阅下面的错误控制台。当我运行maven安装时,我遇到了maven汇编插件问题 所以请让我知道为什么会这样?并给出一些解决这个问题的建议 [INFO] Scanning for projects... [INFO] [INFO] --------------------------------------

我正在使用wso2 emm 2.2.0测试版,请参阅下面的错误控制台。当我运行maven安装时,我遇到了maven汇编插件问题

所以请让我知道为什么会这样?并给出一些解决这个问题的建议

[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.

如果您想构建WSO2 EMM 2.2.0测试版,请遵循以下步骤

  • 克隆产品emm repo
    git克隆https://github.com/wso2/product-emm.git

  • 签出v2.2.0-BETA标签。
    git checkout v2.2.0-BETA版

  • 从根pom构建。转到项目根文件夹并发布
    mvn清洁安装

  • 如果您只需要产品zip,您可以为其构建分发模块,转到project root->modules->distribution文件夹,然后从那里发布
    mvn clean install
    。您可以在
    distribution/target
    文件夹中找到构建zip文件


    看来你是在主分行。在emm beta标签创建之后,添加了失败的maven目标。失败的原因是,在构建时它试图连接到internet上的某些资源,而您的计算机无法连接到internet上的这些资源。如果您真的想构建主分支(2.2.0-SNAPSHOT),只需检查您的internet连接或防火墙阻止。

    您是否要从根pom构建2.2.0测试版标记?是的,但我不知道。怎么做?我想构建产品压缩包。您可以克隆产品emm repo和checkout v2.2.0-BETA标记,并从根文件夹执行mvn clean install。Ya。。我们也试过了,但是我们得到了类似
    无法在项目wso2emm上执行目标com.google.code.maven配置处理器插件:配置处理器maven插件:2.6:process(添加自定义安全头):配置处理期间出错:java.net.ConnectException:连接超时
    我可以毫无问题地构建。您使用的java版本和maven版本是什么?