[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.m2e] Re: Question or suggestion: sorting dependencies?
|
Hello
Eugene Kuleshov schrieb:
> You can use the search field at the top of the editor to
> search/locate/filter the dependency list. Is it not sufficient?
Yes and no. I know this feature but to use this, the developer needs to
know detailed what to search. If you can "see" the entries, it's way
more comfortable.
> The order of resolved dependencies is controlled by Maven and it can't
> be changed by any other means other then editing your pom.xml (i.e.
> change order there and explicitly declare transitive dependencies). Note
> that order of dependencies affects the actual classpath, e.g. if there
> are two jars with the same class name, the JVM or compiler will only see
> the first one, but if you change the order, then it would see the other
> one. It means that just by sorting those dependencies in pom.xml you can
> easily break the build, so I would recommend to use such sorting with
> high caution.
Yes, that't right, this possibility is well known. But in our case all
the dependencies are defined on a konfiguration project and the modules
only say, which dependency they require but _not_ the version of this
dependency. So the dependencies with the version to use are only defined
one time. OK, there may be other transient dependencies but that's the
risk of the game... ;-)
Regards,
Yves
--
"Jede hinreichend fortschrittliche Technologie ist von Magie nicht zu
unterscheiden." -- Arthur C. Clarke