arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.00730cs.SEcs.CR
收藏

Maven-Lockfile:过往Java版本的高完整性重建

Maven-Lockfile: High Integrity Rebuild of Past Java Releases

KTH Royal Institute of Technology(皇家理工学院);Université de Montréal(蒙特利尔大学)

Larissa Schmid, Elias Lundell, Yogya Gamage, Benoit Baudry, Martin Monperrus

AI总结:

针对Java生态核心包管理器Maven无原生lockfile支持的问题,提出Maven-Lockfile工具,可生成含全依赖校验和的锁文件,支持历史版本高完整性复现构建与篡改检测,助力Java软件供应链安全研究。

摘要:

现代软件项目依赖大量第三方库,使得可复现且安全的构建变得复杂。多款包管理器通过生成锁定依赖版本的lockfile(锁文件)来解决该问题,该文件还可用于验证依赖的完整性。然而,Java生态系统中最重要的包管理器之一Maven,原生不支持lockfile。我们提出Maven-Lockfile,用于生成和更新lockfile,支持从过往版本重建项目。我们的lockfile会捕获所有直接依赖和传递依赖及其校验和,实现高完整性构建。评估结果显示,Maven-Lockfile能够复现历史提交的构建,还能检测被篡改的构件。只需极少配置,Maven-Lockfile就能为Java项目提供现代化的构建完整性与构建可复现性,并推动Java软件供应链安全的未来研究。

英文摘要:

Modern software projects depend on many third-party libraries, complicating reproducible and secure builds. Several package managers address this with the generation of a lockfile that freezes dependency versions and can be used to verify the integrity of dependencies. Yet, Maven, one of the most important package managers in the Java ecosystem, lacks native support for a lockfile. We present Maven-Lockfile to generate and update lockfiles, with support for rebuilding projects from past versions. Our lockfiles capture all direct and transitive dependencies with their checksums, enabling high integrity builds. Our evaluation shows that Maven-Lockfile can reproduce builds from historical commits and is able to detect tampered artifacts. With minimal configuration, Maven-Lockfile equips Java projects with modern build integrity and build reproducibility, and fosters future research on software supply chain security in Java.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑