Profiles appear to be like "good intentions". They pave the way to Hell.
There should be a warning in any discussion about profiles.
"Are really sure you want to do this? Is this really the right thing to
do? Is there really no other way? Have you seriously considered sticking
with Ant and forgetting that you ever heard of Maven?"
Ron
On 09/02/2012 9:53 AM, Stephen Connolly wrote:
I should clarify,
Profiles in published poms are "ok"
Provided they do not affect in any way the dependency tree.
If they affect the dependency tree (either directly by adding
dependencies, or indirectly by modifying properties which affect the
dependency tree) then they are evil.
There may be some rare cases where indirect dependency tree
modification is "ok" but I have yet to see one.
-Stephen
On 9 February 2012 14:50, Stephen Connolly
<[email protected]> wrote:
They are the bastard son of satan.
which is why adding dependencies via profiles is an anti-pattern
people who do it give maven a bad name
Take them out and shoot them.
I may just have to thump psandoz on the shoulder really hard next time
I see him if old jersey poms did that kind of thing... I know he's not
at sun any more, which is why he won't get a shooting!
On 9 February 2012 14:38, Peter Niederwieser<[email protected]> wrote:
The published POM for
"com.sun.jersey.jersey-test-framework:jersey-test-framework-core:1.11" (1)
specifies additional dependencies in the "cobertura" and "default" profiles.
Are profiles in published POMs an officially supported feature, and are they
supposed to be resolved at consumption time? I wonder if that makes any
sense, and whether tools like Ivy and Gradle could even support this
(currently they don't).
Cheers,
Peter
--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Twitter: @pniederw
(1)
http://search.maven.org/#artifactdetails%7Ccom.sun.jersey.jersey-test-framework%7Cjersey-test-framework-core%7C1.11%7Cjar
--
View this message in context:
http://maven.40175.n5.nabble.com/Are-profiles-in-published-POMs-a-supported-feature-tp5469611p5469611.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]
--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]