You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Mac环境下Asterix DB执行Maven install报类缺失错误求助

问题:Mac Monterey 12.6.5编译Asterix DB时hyracks-util 0.3.9模块类缺失

环境信息

  • 系统:MacOS Monterey 12.6.5
  • 已安装组件:最新版Java、Maven(环境变量配置完成)、Git(通过Homebrew安装)
  • 触发场景:拉取Asterix DB项目代码后执行mvn install,报错类缺失,错误定位在hyracks-util 0.3.9模块

项目根pom.xml内容

<!--
 ! Licensed to the Apache Software Foundation (ASF) under one
 ! or more contributor license agreements.  See the NOTICE file
 ! distributed with this work for additional information
 ! regarding copyright ownership.  The ASF licenses this file
 ! to you under the Apache License, Version 2.0 (the
 ! "License"); you may not use this file except in compliance
 ! with the License.  You may obtain a copy of the License at
 !
 !   http://www.apache.org/licenses/LICENSE-2.0
 !
 ! Unless required by applicable law or agreed to in writing,
 ! software distributed under the License is distributed on an
 ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 ! KIND, either express or implied.  See the License for the
 ! specific language governing permissions and limitations
 ! under the License.
 !-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <artifactId>apache-asterixdb-fullstack</artifactId>
  <version>0.9.9-SNAPSHOT</version>
  <packaging>pom</packaging>
  <name>hyracks-asterix</name>

  <parent>
    <groupId>org.apache</groupId>
    <artifactId>apache</artifactId>
    <version>18</version>
    <relativePath/>
  </parent>

  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
      <comments>A business-friendly OSS license</comments>
    </license>
  </licenses>

  <modules>
    <module>hyracks-fullstack</module>
    <module>asterixdb</module>
  </modules>

</project>

排查与解决建议

  • 清理Maven缓存并强制更新依赖:执行mvn clean install -U,-U参数会强制刷新快照版本依赖,避免本地缓存的损坏依赖引发类缺失问题
  • 检查子模块完整性:执行git submodule update --init --recursive,确保hyracks-fullstack等子模块代码完整拉取,避免子模块缺失导致类文件不存在
  • 核对Java版本兼容性:Asterix DB 0.9.9-SNAPSHOT可能对Java版本有特定要求,建议确认项目文档,避免使用过新的Java版本引发兼容性问题
  • 检查hyracks-util依赖声明:进入hyracks-fullstack模块的pom.xml,确认hyracks-util 0.3.9的依赖范围是否正确,避免误设为provided等非编译期可用的范围

内容的提问来源于stack exchange,提问作者SpecAscension

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.22 02:17:21