Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
None
-
None
-
Fedora and RPM based systems
Description
A build system needs a more controlled environment to produce reproduceable builds than the Maven dependency resolution mechanism currently provides. For JPackage, they have modified Maven to look in a local repository for builds: /usr/share/maven and also to use a mapping file to produce much shorter paths.
This is relatively trivial to implement in buildr, and would provide a great path forward for people that are currently using maven to build their projects.
It would require an injection in artifact.rb's download function where a repository would have an optional code block, that performes the same logic as
path = "#
{group_path}/#
{id}/#
{version}/#
{File.basename(name)}"
URI.download repo_url + path, name
But allows the munging of the pieces that make up the path, most specifically the group_path