[jbosstools-dev] Make the "How To Build" page a favorite in your browser
Mickael Istria
mistria at redhat.com
Fri Apr 13 04:36:09 EDT 2012
On 04/13/2012 09:46 AM, Max Rydahl Andersen wrote:
> guys - please read up on how maven works and how its recommended to use.
>
> http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/
These arguments are good and makes lot of sense for people proxying
repositories.
But assuming someone works on multiple projects, then his settings.xml
is polluted with a lot of stuff coming from other projects, and then the
build that will happen on his machine may differ a lot from the
"normal/maintained" one. So that means that all project have to ship its
settings.xml containing the repository to reference, and profiles
related to enablement of these repositories. We'll have to split pom.xml
into pom.xml + settings.xml. It makes things more complicated for
maintainers and consumers, but makes sense in case of an "enterprise"
deployment of Maven. Also please note that if you don't want the build
to contain any reference to a repository, this is also an argument
against target platforms since they directly refer to repository. I'll
investigate on how dependencyManagement works with Tycho.
In a nutshell: What you'd like is a pattern that decouples dependency
source (to be overriden when necessary) and dependency management. It
adds complexity and it is the contrary of what TP do.
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
My blog <http://mickaelistria.wordpress.com> - My Tweets
<http://twitter.com/mickaelistria>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbosstools-dev/attachments/20120413/3807ea2a/attachment.html
More information about the jbosstools-dev
mailing list