You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Add dependency to POM Files

There are multiple pom files

  • the parent pom file (.../incubator-streampipes/pom.xml
  • a module pom in each module folder (e.g. .../incubator-streampipes/streampipes-extensions/streampipes-processors-geo-jvm/pom.xml


The parent pom ensures that the same version of a dependency is used throughout the project. Therefore, the dependency must be added here to the <dependencyManagement> tag along with the version.

To use this dependency in the module that needs the dependency, add the dependency to the <dependencies> tag.  The version should only be defined in the parent pom.xml and not in the module's pom.xml! The only exceptions are the StreamPipes dependencies.


parent pommodule pom
...

<properties>
    ...

   <postgresql.version>42.4.3</postgresql.version>
   ...

</properties>
...

<dependencyManagement>
 <dependencies>
   ...

     <dependency>
       <groupId>org.postgresql</groupId>
       <artifactId>postgresql</artifactId>
       <version>${postgresql.version}</version>
    </dependency>...
 </dependencies>
</dependencyManagement>
...

...
<dependencies>
  ...
  <dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
  </dependency>
  ...
</dependencies>
...





  • No labels