Perhaps the enforcer plugin could help

http://maven.apache.org/enforcer/enforcer-api/writing-a-custom-rule.html

________________________________

Curt Yanko | Continuous Integration Services | UnitedHealth Group IT 
Making IT Happen, one build at a time

-----Original Message-----
From: Phillip Hellewell [mailto:ssh...@gmail.com] 
Sent: Thursday, October 21, 2010 1:53 PM
To: Maven Users List
Subject: Same dependency different classifier

Can I make it an error if someone tries to use two different versions of
the same dependency with different classifiers?

For example, this works, but I want it to cause an error:

    <dependency>
      <groupId>ad.3rdparty</groupId>
      <artifactId>zlib</artifactId>
      <version>[1.2.5]</version>
      <type>zip</type>
      <classifier>dlls</classifier>
    </dependency>
    <dependency>
      <groupId>ad.3rdparty</groupId>
      <artifactId>zlib</artifactId>
      <version>[1.2.6]</version>
      <type>zip</type>
      <classifier>libs</classifier>
    </dependency>
  </dependencies>

Having libs from one version of zlib and dlls from another version of
zlib is going to cause build or runtime errors.  I want to catch it here
during dependency resolution.

Thanks,
Phillip

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to