arXiv:2608.27125cs.SEAug 2026

Manuscript Offprint

arXiv:2608.27125

AROMA+: A Study of Factors Affecting Reproducible Builds in the Maven Ecosystem

Mehdi Keshani, Amirhossein Rahmati, Mohammad Hossein Aref, Abbas Heydarnoori

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Modern software engineering establishes software supply chains and relies on tools and libraries to improve productivity. However, reusing external software in a project presents a security risk when the source of the component is unknown or the consistency of a component cannot be verified. The SolarWinds attack serves as a popular example in which the injection of malicious code into a library affected thousands of customers and caused a loss of billions of dollars. Reproducible builds present a mitigation strategy, as they can confirm the origin and consistency of reused components. A large reproducibility community has formed for Debian, but the reproducibility of the MAVEN ecosystem, the backbone of the Java supply chain, remains understudied in comparison. Reproducible Central is an initiative that curates a list of reproducible MAVEN libraries, but the list is limited and challenging to maintain due to manual efforts. Our research aims to support these efforts in the MAVEN ecosystem through automation. We investigate the feasibility of automatically finding the source code of a library from its MAVEN release and recovering information about the original release environment. Our tool, AROMA+, can obtain this critical information from the artifact and the source repository through several heuristics and we use the results for reproduction attempts of packages on MAVEN CENTRAL. Overall, our approach achieves an accuracy of

This is an extended version of “AROMA: Automatic Reproduction of Maven Artifacts,” accepted at FSE 2024. This manuscript is currently under review at Empirical Software Engineering (Springer).

Mehdi Keshani

E-mail: mkeshan@bgsu.edu

Amirhossein Rahmati

E-mail: amir.hossein.rahmati.03@gmail.com

Mohammad Hossein Aref

E-mail: m.h.aref2002@gmail.com

Abbas Heydarnoori

E-mail: aheydar@bgsu.edu

Mehdi Keshani et al.

up to 99.8% when compared field-by-field to the existing manual approach. In some instances, we even detected flaws in the manually maintained list, such as broken repository links. We reveal that automatic reproducibility is feasible for 32% of the packages on MAVEN CENTRAL using AROMA+, and 12% of these packages are fully reproducible. We demonstrate our ability to successfully reproduce new packages and have contributed some of them to the Reproducible Central repository. Additionally, we highlight actionable insights, outline future work in this area, and make our dataset and tools publicly available.

Keywords Maven ecosystem, reproducible builds, library reproducibility

1 Introduction

Software ecosystems, such as MAVEN, host libraries and build plugins in repositories, which form the backbone of many software supply chains. MAVEN CENTRAL is the largest public repository for JVM-based languages, allowing developers to reuse software and release their own packages there.

Relying on a supply chain has the risk of importing vulnerabilities into a project, and it either requires trust in the source or the ability to check the consistency of the packages. Unfortunately, research highlights an increasing number of attacks in recent years [35]. Some of them became popular, like the infamous SolarWinds hack in 2020, which resulted in the shipping of tainted binaries to thousands of customers, including the U.S. government, which was subsequently hacked [11]. The Backstabber's Knife Collection by Ohm et al. [46] documents 174 similar attacks.

It is obvious that trust alone is insufficient, and checks are necessary. Wheeler et al. [78] were the first to propose a conceptual solution that involves comparing the compilation results of two different environments to detect modified binaries, such as those introduced in a malicious attack. A match is achieved when two software builds produce bit-for-bit identical binaries from the same source code, resulting in the same hash for the binary. If this can be accomplished, the binary is considered to be reproducible. This idea inspired the Reproducible Builds initiative [54], which recommends practices for improving software reproducibility. Many efforts, such as localizing unreproducibility [49,50] or automatically addressing them [51], have been made.

So far, the community focus was DEBIAN and LINUX, which are currently ~90% reproducible [52], and reproducibility efforts for MAVEN packages are more limited. Reproducible Central (RC) represents a notable exception and provides tools for reproducing projects [55]. The project also maintains a list of reproducible MAVEN projects, however, the reproducibility of the MAVEN ecosystem is still in its infancy. No official statistics exist, but the RC repository reports rebuild attempts for 8,660 releases of 914 projects. Compared to the 10+M releases of 479K unique artifactIds and 64K unique groupIds that exist on MAVEN CENTRAL, it becomes clear that this invaluable effort only covers a fraction of packages. Furthermore, RC starts their reproducibility attempts at

GITHUB repositories, which do not necessarily equate to MAVEN releases. One such repository can have multiple sub-modules and releases. Our analyses also found links to 64K unique GITHUB repositories on MAVEN CENTRAL, which indicates that many repositories are currently missed.

Efforts to increase the reproducibility coverage are currently limited by several factors: (i) reproduction is a manual, high-effort task, making it slow, unscalable, and prone to errors; (ii) starting from source code repositories assumes that developers aim to create reproducible software, which is not the case for many unmaintained legacy projects; (iii) current tooling often assumes the availability of the correct version of the source code for a given release. However, users who wish to reproduce a MAVEN package must first recover its source code; and (iv) reproducibility is a binary metric and requires an exact, bit-to-bit match. Many factors influence this comparison, but not all differences are as critical as differences in the generated .class files. Even trivialities like file modification times or line endings can prevent a match. We believe that categorizing these cases as simply unreproducible is too coarse-grained, and that we need to distinguish reproducibility on a spectrum.

In this paper, we explore the possibility of automating the reproduction of large portions of the MAVEN ecosystem. We take the perspective of the community and try to achieve this goal without relying on the project maintainers. To achieve this goal, we investigate three key research questions:

– RQ₁: Can we recreate the link to the source code repository and commit of an artifact?

– RQ2: Can the original build environment be reconstructed after the fact?

– RQ3: To what extent is it possible to automatically reproduce MAVEN artifacts?

To answer these questions, we created a dataset of metadata for 480k packages. These packages represent one random version from every MAVEN project (groupId:artifactId). This dataset lets us explore the factors that influence release practices and reproducibility on MAVEN CENTRAL and we report on our empirical insights.

Our results are promising and show that an automated approach can recover up to ∼99.8%\sim99.8\% of the information manually maintained by RC. We even identified inconsistencies in the manually maintained list, such as broken repository links. We successfully applied our approach in three practical use cases: reproducing packages that already existed on RC, identifying numerous reproducible libraries not previously listed by RC, and achieving near-perfect reproductions for binaries of some packages that did not aim to be reproducible. So far, we contributed three new packages to RC's repository via pull requests, all of which were accepted by their developers.

This paper presents the following main contributions:

  1. A comprehensive study of the aspects that impact reproducibility in MAVEN CENTRAL.

Mehdi Keshani et al.

Figure

Fig. 1: Approach Overview

  1. Heuristic approaches for recovering the repository link, release tag, JDK version, release profiles, build tools, and line endings for a given package.

  2. A tool for the Automated Reproduction of MAVEN Artifacts (AROMA+).

  3. An evaluation of AROMA+ for the automatic reproduction of MAVEN and GRADLE projects published on MAVEN CENTRAL.

  4. Analysis of the impact of profiles on the reproducibility of MAVEN artifacts.

The remainder of this paper is structured as follows: We present our Experimental Setup in Section 2. In Sections 3, 4, and 5, we elaborate on our research questions, the methodologies that we used to answer them, and the results of our investigation. We then discuss the implications, future directions, and threats to the validity of our work in Section 6. Section 7 presents the related work of this study. Finally, we summarize our work in Section 8. All source code and data for this paper are available in a replication package [29].

References (52)