On the Variability of Source Code in Maven Package Rebuilds

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Dietrich, Jens, Hassanshahi, Behnaz
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866918350208106496
author Dietrich, Jens
Hassanshahi, Behnaz
author_facet Dietrich, Jens
Hassanshahi, Behnaz
contents Rebuilding packages from open source is a common practice to improve the security of software supply chains, and is now done at an industrial scale. The basic principle is to acquire the source code used to build a package published in a repository such as Maven Central (for Java), rebuild the package independently with hardened security, and publish it in some alternative repository. In this paper we test the assumption that the same source code is being used by those alternative builds. To study this, we compare the sources released with packages on Maven Central, with the sources associated with independently built packages from Google's Assured Open Source and Oracle's Build-from-Source projects. We study non-equivalent sources for alternative builds of 28 popular packages with 85 releases. We investigate the causes of non-equivalence, and find that the main cause is build extensions that generate code at build time, which are difficult to reproduce. We suggest strategies to address this issue.
format Preprint
id arxiv_https___arxiv_org_abs_2602_19383
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle On the Variability of Source Code in Maven Package Rebuilds
Dietrich, Jens
Hassanshahi, Behnaz
Software Engineering
Rebuilding packages from open source is a common practice to improve the security of software supply chains, and is now done at an industrial scale. The basic principle is to acquire the source code used to build a package published in a repository such as Maven Central (for Java), rebuild the package independently with hardened security, and publish it in some alternative repository. In this paper we test the assumption that the same source code is being used by those alternative builds. To study this, we compare the sources released with packages on Maven Central, with the sources associated with independently built packages from Google's Assured Open Source and Oracle's Build-from-Source projects. We study non-equivalent sources for alternative builds of 28 popular packages with 85 releases. We investigate the causes of non-equivalence, and find that the main cause is build extensions that generate code at build time, which are difficult to reproduce. We suggest strategies to address this issue.
title On the Variability of Source Code in Maven Package Rebuilds
topic Software Engineering
url https://arxiv.org/abs/2602.19383