Hi there,
the command line argument works (for me). But in Hudson (V 1.394), You
need to add the '-s .../settings.xml' arguments to each project's build
configuration. A global settings configuration for all Maven builds
could only be set using the 'MAVEN_OPTS' with the
'org.apache.maven.user-settings' (or 'org.apache.maven.global-settings')
property.
In Hudson's project build configuration there's another field called
'Alternate settings file'. Help item says that it's equivalent to using
the '-s' option, but it doesn't seem to work with Maven 3 - guess that
configuration feature is also implemented using 'MAVEN_OPTS'. (OK, this
might be worth filing a bug report in the Hudson Jira)
Personally, I also used to use the 'MAVEN_OPTS' on my development
environment, too. Doing development consultancy for different customers,
I prefer to have separate Maven settings for each customer workspace,
and it would really be annoying having to add the '-s' option (with
maybe a long file path argument) to each and every command line statement.
After noticing that I can't set them any more using the 'MAVEN_OPTS', I
started working with an alias:
alias mvn='mvn -s .../settings.xml'
But this wouldn't work on Windows machines ...
All in all I'd prefer if the support for both of the system properties,
'org.apache.maven.user-settings' and 'org.apache.maven.global-settings'
could be restored, because it would provide much more flexibility to all
imaginable build environment setup variants.
Kind regards
Marc
On 08/02/11 21:50, Vincent Latombe wrote:
Use -s command-line argument?
Vincent
2011/2/8 radai<[email protected]>
Benjamin Bentmann wrote:
There is no alternative but support for the system property can be
restored if there's a valid use case for it.
Benjamin
we have a hudson CI server running builds for multiple (maven) projects,
each with its own repositories. it would be nice to seperate the
settings.xml between builds, and not lump them all together - for that i'd
need to override the location of the settings file.
--
View this message in context:
http://maven.40175.n5.nabble.com/Maven-3-support-for-org-apache-maven-user-settings-tp3261146p3375624.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]