TT Bigdata TT Bigdata
首页
  • 部署专题

    • 常规安装
    • 一键部署
  • 组件安装

    • 常规&高可用
  • 版本专题

    • 更新说明
  • Ambari-Env

    • 环境准备
    • 开始使用
  • 组件编译

    • 专区—Ambari
    • 专区—Bigtop
  • 报错解决

    • 专区—Ambari
    • 专区—Bigtop
  • 其他技巧

    • Maven镜像加速
    • Gradle镜像加速
    • Bower镜像加速
    • 虚拟环境思路
    • R环境安装+一键安装脚本
    • Ivy配置私有镜像仓库
    • Node.js 多版本共存方案
    • Ambari Web本地启动
    • Npm镜像加速
    • PostgreSQL快速安装
    • Temurin JDK 23快速安装
  • 成神之路

    • 专区—Ambari
    • 专区—Bigtop
  • 集成案例

    • Redis集成教学
    • Dolphin集成教学
    • Doris集成教学
    • 持续整理...
  • 模板代码

    • 各类组件
    • 通用模板
  • 国产化&其他系统

    • Centos系列
    • Kylin系列
    • OpenEuler系列
    • Rocky系列
    • Ubuntu系列
  • 生产调优

    • 组件调优指南
    • 1v1指导调优
  • 定制开发

    • 组件版本定制
    • 样式风格定制
  • 蓝图愿景
  • 技术支持
  • 合作共建
GitHub (opens new window)

JaneTTR

数据酿造智慧,每一滴都是沉淀!
首页
  • 部署专题

    • 常规安装
    • 一键部署
  • 组件安装

    • 常规&高可用
  • 版本专题

    • 更新说明
  • Ambari-Env

    • 环境准备
    • 开始使用
  • 组件编译

    • 专区—Ambari
    • 专区—Bigtop
  • 报错解决

    • 专区—Ambari
    • 专区—Bigtop
  • 其他技巧

    • Maven镜像加速
    • Gradle镜像加速
    • Bower镜像加速
    • 虚拟环境思路
    • R环境安装+一键安装脚本
    • Ivy配置私有镜像仓库
    • Node.js 多版本共存方案
    • Ambari Web本地启动
    • Npm镜像加速
    • PostgreSQL快速安装
    • Temurin JDK 23快速安装
  • 成神之路

    • 专区—Ambari
    • 专区—Bigtop
  • 集成案例

    • Redis集成教学
    • Dolphin集成教学
    • Doris集成教学
    • 持续整理...
  • 模板代码

    • 各类组件
    • 通用模板
  • 国产化&其他系统

    • Centos系列
    • Kylin系列
    • OpenEuler系列
    • Rocky系列
    • Ubuntu系列
  • 生产调优

    • 组件调优指南
    • 1v1指导调优
  • 定制开发

    • 组件版本定制
    • 样式风格定制
  • 蓝图愿景
  • 技术支持
  • 合作共建
GitHub (opens new window)
  • Hadoop

  • Spark

  • Trino

  • Hudi

  • Paimon

  • Livy

    • apache-incubator-disclaimer-resource-bundle 缺失
      • 📌 报错背景说明
        • 🧩 这是个什么依赖?
      • 🖼️ 仓库地址参考
      • ✅ 推荐方案:通过 Nexus 私服代理 Release 仓库解决
        • 🛠️ 操作步骤
      • 🚑 备用方案一:手动安装到本地仓库
      • 🔧 备用方案二:拉取 SNAPSHOT 版本
      • 🧪 验证步骤
      • 🧱 构建建议与脚本参考
  • Flink

  • Atlas

  • Superset

  • Jsvc

  • Zookeeper

  • Hive

  • 报错解决-Bigtop
  • Livy
JaneTTR
2022-12-18
目录

apache-incubator-disclaimer-resource-bundle 缺失

# 📌 报错背景说明

在使用 Bigtop 编译构建 Livy 组件时,执行 :livy-rpm 或 :livy-clean-rpm 任务时,可能会遇到如下构建异常:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (process-resource-bundles) on project livy-main: Resources archive cannot be found.: org.apache.apache.resources:apache-incubator-disclaimer-resource-bundle:jar:1.2-SNAPSHOT was not found in http://172.20.0.2:8081/repository/maven-public/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus has elapsed or updates are forced
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR]     mvn install:install-file -DgroupId=org.apache.apache.resources -DartifactId=apache-incubator-disclaimer-resource-bundle -Dversion=1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR]     mvn deploy:deploy-file -DgroupId=org.apache.apache.resources -DartifactId=apache-incubator-disclaimer-resource-bundle -Dversion=1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR]   org.apache.apache.resources:apache-incubator-disclaimer-resource-bundle:jar:1.2-SNAPSHOT
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR]   nexus (http://172.20.0.2:8081/repository/maven-public/, releases=true, snapshots=true)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
error: Bad exit status from /var/tmp/rpm-tmp.gUWy8Y (%build)

    Bad exit status from /var/tmp/rpm-tmp.gUWy8Y (%build)

RPM build errors:

> Task :livy-rpm FAILED

FAILURE: Build failed with an exception.

* Where:
Script '/opt/modules/bigtop/packages.gradle' line: 529

* What went wrong:
Execution failed for task ':livy-rpm'.
> Process 'command 'rpmbuild'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 15s
75 actionable tasks: 75 executed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

# 🧩 这是个什么依赖?

这是 Apache 的一份元资源包,主要用于在构建阶段注入:

  • LICENSE.txt
  • NOTICE.txt
  • Apache 项目合规文件

它由 maven-remote-resources-plugin 自动下载使用。

# 🖼️ 仓库地址参考

如下截图所示,该 jar 可通过 Release 仓库地址获取:

仓库中包含目标 JAR 包

https://repository.apache.org/service/local/repositories/releases/content/org/apache/apache/resources/apache-incubator-disclaimer-resource-bundle/1.7/apache-incubator-disclaimer-resource-bundle-1.7.jar
1

注意:这并不是 1.2-SNAPSHOT,而是 1.7 版本,我们将通过私服手动代理该链接。关键提示

# ✅ 推荐方案:通过 Nexus 私服代理 Release 仓库解决

你可以直接将上述链接所在仓库(Apache Releases)配置为 Nexus 私有仓库源,并让 maven-public 聚合进去。

# 🛠️ 操作步骤

  1. 登录 Nexus 后台

  2. 添加新仓库:

    • 类型:proxy

    • 远程仓库地址:

      https://repository.apache.org/content/repositories/snapshots/
      
      1
  3. 命名为 apache-snapshot1,加入 maven-public 仓库组中

仓库地址

  1. 缓存下来的效果

缓存后的效果

构建依赖拉取链路

本地构建请求 → maven-public → 聚合路由到 apache-snapshot1 → 获取目标 jar

此方式可保持一致性、可靠性,尤其适合企业构建链路稳定性要求高的场景。

这是最稳定、最可维护的解决方式。推荐做法

# 🚑 备用方案一:手动安装到本地仓库

若没有私服权限,也可以临时下载并安装 jar:

🔗 点击下载 Release 版本 JAR 包 (opens new window)

mvn install:install-file \
  -DgroupId=org.apache.apache.resources \
  -DartifactId=apache-incubator-disclaimer-resource-bundle \
  -Dversion=1.2-SNAPSHOT \
  -Dpackaging=jar \
  -Dfile=apache-incubator-disclaimer-resource-bundle-1.7.jar
1
2
3
4
5
6

不推荐长期使用

虽然手动安装可以立即解决构建问题,但不适合 CI/CD 场景,也不具备团队协作一致性。

# 🔧 备用方案二:拉取 SNAPSHOT 版本

如果你确实需要 1.2-SNAPSHOT,可以配置 Apache Snapshots 仓库:


<repositories>
    <repository>
        <id>apache-snapshots</id>
        <url>https://repository.apache.org/snapshots</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
        <releases>
            <enabled>false</enabled>
        </releases>
    </repository>
</repositories>
1
2
3
4
5
6
7
8
9
10
11
12
13

强制刷新依赖:

mvn clean install -U
1

Maven 会缓存拉取失败状态,-U 选项必须加。注意

# 🧪 验证步骤

检查项 说明
本地仓库缓存 ~/.m2/repository/org/apache/apache/resources/... 是否生成 jar
Nexus 仓代理情况 检查代理仓是否抓取到目标 jar
构建输出日志 是否跳过了 maven-remote-resources-plugin 报错
Livy 构建是否继续推进 若构建失败信息已变化,则说明此问题已解决

# 🧱 构建建议与脚本参考

建议在构建 Livy 前执行以下命令以保证依赖干净:

cd bigtop
./gradlew clean
./gradlew livy-rpm -PskipSigning=true --refresh-dependencies
1
2
3

如构建系统为离线环境,推荐将 maven-public 中依赖预拉取到 .m2/repository,提升可靠性。

#Livy#Maven#Bigtop#Nexus#构建问题
缺失 Jindo 依赖
.git can't be found during `prepare`

← 缺失 Jindo 依赖 .git can't be found during `prepare`→

最近更新
01
Pandoc 缺失导致 SparkR 构建失败
06-08
02
Cyrus SASL/GSASL 缺失解决
06-07
03
Hadoop_3.3.4 编译实战 1.0.0+
06-06
更多文章>
Theme by Vdoing | Copyright © 2017-2025 JaneTTR | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式