Maven 2 & 3

Support additional read-only local repositories

Details

  • Type: Wish Wish
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 3.0-alpha-3
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    Debian Linux in particular, any other environment
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

Work is under way at Debian to support Maven as a tool for building packaged software.
Debian uses a local Maven repository (in /usr/share/maven-repo/) which is updated by the Debian tools (dpkg, apt-get). This repository is read-only for the normal user.

It would be great if users could use this repository in addition to their local repository in ~/.m2/repo, and it would simplify the Debian tooling.

In Debian, when building a package you cannot download anything from the Internet (to allow repeatable builds), so when packaging a Maven project, the --offline option is always used. That means that if you try to trick Maven and use file:///usr/share/maven-repo as a new repository, then it won't work as Maven believes that it is a remote repository.

Issue Links

Activity

Hide
Wendy Smoak added a comment -

Why did you choose to make /usr/share/maven-repo a local repo? It seems like if it were in remote repo format, you wouldn't need any changes for it to work.

Show
Wendy Smoak added a comment - Why did you choose to make /usr/share/maven-repo a local repo? It seems like if it were in remote repo format, you wouldn't need any changes for it to work.
Hide
Ludovic Claude added a comment -

When building a Debian package with Maven, the Debian policies prevent from downloading anything from the Internet. So you need to run Maven with the --offline option, which disables all remote repositories, regardless of their actual location.

Show
Ludovic Claude added a comment - When building a Debian package with Maven, the Debian policies prevent from downloading anything from the Internet. So you need to run Maven with the --offline option, which disables all remote repositories, regardless of their actual location.
Hide
Wendy Smoak added a comment -

You might be interested in the discussion around MNG-3043. Having multiple local repositories was mentioned. http://www.nabble.com/MNG-3043%2C-please-comment-td22388639.html

Show
Wendy Smoak added a comment - You might be interested in the discussion around MNG-3043. Having multiple local repositories was mentioned. http://www.nabble.com/MNG-3043%2C-please-comment-td22388639.html

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: