Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] The order of repositories in the POM

Hello,

it seems to be that the order of the p2 repositories in a POM
hierarchy is important.

Example: I want to have org.eclipse.uml2.uml in Version 3.0.0 exactly.
I have a multi-module project consisting of Eclipse Plugins. The
parent or project POM contains one repository: the Eclipse Indigo
repository.
A module of my project has a dependency to org.eclipse.uml2, see
above. As this module is the "first one" that needs these plugins, I
place the repository description for the UML2 p2 repository inside the
module POM.xml .

When building the project, Maven says that the dependency can't be
met. Maven looks in the Indigo Repository, sees that it contains the
UML2 Plugin in Version 3.2.1 and no other version, and shrugs. It
doesn't look in the other p2 repository where Version 3.0.0 could be
found. When I place the p2 repository description of the UML2
repository before the Indigo repository description, everything works
fine.

Is this a bug of Maven or Tycho? Is this even a bug or am I doing
something wrong?

Thanks in advance,
Daniel W.


Back to the top