<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Le 20/07/12 04:02, Casey McGinty a écrit :<br>
<blockquote
cite="mid:CANp5jv6h2vhGHX-rNSLRGEZ6xAONivmo3ioHuUyVb-n-3GaELA@mail.gmail.com"
type="cite">Is there a technique in Maven that I can use to
reference the geotoolkit parent POM in my local POM? Right now I'm
referencing just the module POM, which is why the dependency
version is no correctly detected.<br>
</blockquote>
<br>
You can provide your own <tt><dependencyManagement></tt>
section with a dependency having <tt><scope>import</scope></tt>
as below:<br>
<br>
<pre> <properties>
<geotk.version>3.20-SNAPSHOT</geotk.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.geotoolkit</groupId>
<artifactId>geotoolkit</artifactId>
<version>${geotk.version}</version>
<b><type>pom</type></b>
<b><scope>import</scope></b>
</dependency>
.... put your own additional versions here ....
</dependencyManagement></pre>
<br>
Then, you can omit the <tt><version></tt> elements in your <tt><dependency></tt>
elements; the versions will be inherited.<br>
<br>
<br>
Martin<br>
<br>
</body>
</html>