Both of Paul's suggestions are good. I think (1) gives you a better level of control though: - they might end up on different machines. - you can clean out snapshot builds and keep releases (not really a good idea but some like to do it) - much tighter access controls
Cheers, Brett On Mon, 12 Jul 2004 19:29:34 -0400, Paul Spencer <[EMAIL PROTECTED]> wrote: > I can think of two solutions: > 1) Have 2 repositories. One for snapshots and one for releases. A > project's configuration files, (project.xml, project.properties, and > build.properties) to write to the snapshot directory. The release > process would involve changing the configuration to write to the release > repository. > maven.repo.remote = http://www.foo.com/snapshot, > http://www.foo.com/release, > http://www.ibiblio.org/maven > > 2) Make the release version readonly in the repository. This will > prevent the file from being overwritten. > > Paul Spencer > > > > > Amato Massimiliano (UBM) wrote: > > Hello, > > > > We are in the process of setting up a remote repository for our group and we have > > a problem, we want to allow developers to upload snapshot release to the central > > repository but we want not to allow them to upload final release. This is due to > > the fact that we have a central configuration for maven and it could happen that a > > developer could ovverride by mistake a release with a wrong one. > > > > Basically we would like to have 2 separate directories, one for the final release > > where only the administrator can write and another one public where all the > > developers can upload their snapshot. I don't think this is supported right now in > > Maven but i'd like to know if anyone had ever thought about it since i think it > > could be a common problem. Any idea if this will be implemented in the future > > releases? > > > > Also since we need to make it work any suggestion on how we could do it? We were > > thinking about rewriting the artifact plugin in order to change the directory if > > the version is a snapshot > > > > Thanks for your help > > Max > > > > > > > >>Massimiliano Amato > >>Risk Technologies > >>UniCredit Banca Mobiliare - www.ubm.it > >>Via Tommaso Grossi, 10 > >>20121 Milano MI > >>tel. +39 02 88628093 - fax +39 02 72929309 > >> > >>The information in this email and in any attachments is confidential and intended > >>solely for the attention and use of the named addressee(s). This information may > >>be subject to legal professional or other privilege or may otherwise be protected > >>by work product immunity or other legal rules. It must not be disclosed to any > >>person without our authority. If you are not the intended recipient, or a person > >>responsible for delivering it to the intended recipient, you are not authorized to > >>and must not disclose, copy, distribute, or retain this message or any part of it. > >> > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
