You could ask the same question for both the settings-goals, because the answer is the same: Testibility!
The location of these files is wrapped inside a method, so there's no way to change it (not even with reflection). The m3-implementations is much cleaner considering these files, easy to get and set. Now that I know that it'll work for m3, I could try to make it work for m2 as well and predict the locations of the mentioned files. - Robert Date: Mon, 28 Jun 2010 07:16:30 +0100 From: [email protected] To: [email protected] Subject: Re: [mojo-dev] setup-maven-plugin added to sandbox any reason why the toolchains goal requires M3.0-a-1 when toolchains support is in maven since 2.0.9ish? On 26 June 2010 13:44, Robert Scholte <[email protected]> wrote: I'd like to announce this new project, which has been added to mojo's sandbox. http://fisheye.codehaus.org/browse/mojo/trunk/sandbox/setup The setup-maven-plugin is capable of helping to setup several maven-specific files. All can be done from 1 directory, so there's no need to search for that specific file to be edited. Here's a list of some of the features which this plugin provides: Features Usage of templates from URL, an absolute or relative file Filtering by property file, system properties or by commandline arguments Different types of merging with the existing file Automatic generated backup file Dry run support, to see the outcome without really changing any file Maven version check per goal(!), since not all goals require the same Maven version. Plugin can provide prototypes, which contain a lot of comments helping you to write your file Make a copy of the current file to the current base directory, ready to be edited. The following files can be set up with this plugin: settings.xml toolchains.xml settings-security.xml clearcase-settings.xml cvs-settings.xml git-settings.xml starteam-settings.xml vss-settings.xml Special Settings Features Generate and write the master-key without editing the settings-security file by hand Encrypting all server passwords without editing the settings file by hand Any comment helping to improve this plugin will be appreciated Regards, Robert Express yourself instantly with MSN Messenger! MSN Messenger _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
