美文网首页
apollo构建错误

apollo构建错误

作者: 梨捉阳笆 | 来源:发表于2018-07-14 18:01 被阅读99次

从apollo官方仓库下载源代码并执行build.sh,出现如下错误:

INFO] Reactor Summary:
[INFO] 
[INFO] Apollo ............................................. SUCCESS [  0.831 s]
[INFO] Apollo BuildTools .................................. SUCCESS [  1.046 s]
[INFO] Apollo Core ........................................ SUCCESS [  2.203 s]
[INFO] Apollo Common ...................................... SUCCESS [  1.983 s]
[INFO] Apollo Biz ......................................... SUCCESS [  2.557 s]
[INFO] Apollo ConfigService ............................... FAILURE [  3.605 s]
[INFO] Apollo AdminService ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.344 s
[INFO] Finished at: 2018-07-14T11:00:58+08:00
[INFO] Final Memory: 58M/210M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.6:single (default) on project apollo-configservice: Execution default of goal org.apache.maven.plugins:maven-assembly-plugin:2.6:single failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-assembly-plugin:2.6:single: java.lang.ExceptionInInitializerError: null

原因如下:

The problem is already fixed from the plexus archiver team, but not yet released - thanks to Michael-O for pointing me to the right place :) !

Now there is a workaround posted from ctomc in PR 12 to use an old plexus archiver version 2.4.4.:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-assembly-plugin</artifactId>
    <version>2.4.1</version>                    
    <dependencies>
        <dependency>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-archiver</artifactId>
            <version>2.4.4</version>
        </dependency>
    </dependencies>
</plugin>
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <version>2.6</version>
    <dependencies>
        <dependency>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-archiver</artifactId>
            <version>2.4.4</version>
        </dependency>
    </dependencies>
</plugin>

相关文章

网友评论

      本文标题:apollo构建错误

      本文链接:https://www.haomeiwen.com/subject/nxoepftx.html