maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: [VOTE] Release Apache Maven 3.0-alpha-5
Date Thu, 03 Dec 2009 11:42:04 GMT
2009/12/3 Stephen Connolly <stephen.alan.connolly@gmail.com>

>
>
> 2009/12/3 Jorg Heymans <jorg.heymans@gmail.com>
>
>> On Thu, Dec 3, 2009 at 11:10 AM, Stephen Connolly
>> <stephen.alan.connolly@gmail.com> wrote:
>> > 2009/12/3 Jorg Heymans <jorg.heymans@gmail.com>
>> >
>> >> On Tue, Nov 24, 2009 at 12:18 PM, Benjamin Bentmann
>> >> <benjamin.bentmann@udo.edu> wrote:
>> >> > Jorg Heymans wrote:
>> >> >
>> >> >> [ERROR]   The project build-tools:1-SNAPSHOT
>> >> >> (D:\src\myproject\pom.xml) has 1 error
>> >> >> [ERROR]
>> >> >>
>> >>
>> 'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)'
>> >> >> must be unique: junit:junit:jar -> duplicate declaration of
version
>> >> >> 3.8.2
>> >> >>
>> >> >> Shall i log an issue for this or is this a known feature ?
>> >> >
>> >> > The error itself is by design and is part of overall stricter POM
>> >> > validation. If the cause isn't present in the current POM, it must
be
>> >> > present in one of its parents. "mvn ... -e" should tell more but I
>> will
>> >> look
>> >> > into improving the message for the next release.
>> >>
>> >> I can understand the need for stricter pom validation, but is it
>> >> really necessary to fail a build completely just because a dependency
>> >> is declared twice ? It seems a bit harsh.
>> >
>> >
>> > Actually, I'm liking this build failing on double dependencies.
>>
>> Any particular reason or do you get a kick out of scanning 60+ module
>> reactor builds for duplicates ? :-P
>>
>
> I've got most of my projects down to no duplicates... the error stops it
> happening again!
>
> Perhaps we should have 2.2.2 start issuing the warning though! Or maybe a
> CLI option for 3.0 such as --no-strict-pom-validation
>

actually much better is something like

--yes-i-am-a-bold-developer-and-i-know-i-should-remove-duplicate-dependencies-but-give-me-a-break

that way you're _encouraged_ to fix it fast

;-)


>
>
>>
>> Jorg
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message