On Wed, Aug 10, 2005 at 12:31:42PM -0400, Grant Ingersoll wrote:
> Have read http://maven.apache.org/using/managing-dependencies.html and
> it makes some sense, but am still a little confused on how to apply in
> reality.

I added a section about dependency management yesterday that you might
want to ready. Until the site is redeployed you can read it directly from
Subversion[1].

> 
> Is there a plugin that detects when you have a version consistency
> problem across projects?

There is a dependency report that should show you all versions of a
library in use.

> We have several libraries that are part of our core code base that are
> used in multiple projects.  What is the best way for managing/detecting
> when the libraries are out of synch. 
> 
> For instance, I have my core utilities library w/ versions 1.0 and 1.1.
>  I have another library foo-1.0 that is dependent on core-1.0.  My
> application, which needs some new feature in core-1.1 is currently
> dependent on foo-1.0.  I know the solution is to go bring foo up on
> core-1.1, but what I am wondering is if there is a way to detect these
> dependencies ahead of time.  Right now, I usually don't find out until
> runtime/test-time when I get a NoSuchMethodError or something along
> those lines.
> 
> Any suggestions?  I realize some of this problem is inherent to java
> and the lack of jar versioning capabilities. Was wondering, however,
> what people do in the real world to deal w/ this?

Basically put all of your dependency information in a
<dependencyManagement> tag in your root pom and in your child poms
reference all dependencies by group id and artifact id only.

[1]: 
https://svn.apache.org/repos/asf/maven/components/trunk/maven-site/src/site/xdoc/dependency-mechanism.xml

--
Trygve

Attachment: signature.asc
Description: Digital signature

Reply via email to