I've this project:
The sub-modules in driven-adapters
can grow or decrease. What I'd like to do is when including the dependency on the parent (driven-adapters
) it will bring on the dependencies/sub-modules in it.
In other words the configurator
is simple, like this:
<dependencies>
...
<dependency>
<groupId>.simonegiusso</groupId>
<artifactId>driving-adapters</artifactId>
<version>${revision}</version>
<scope>runtime</scope>
</dependency>
...
</dependencies>
instead of:
<dependencies>
...
<dependency>
<groupId>.simonegiusso</groupId>
<artifactId>timeseries-source-postgres</artifactId>
<version>${revision}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>.simonegiusso</groupId>
<artifactId>timeseries-source-cassandra</artifactId>
<version>${revision}</version>
<scope>runtime</scope>
</dependency>
...
</dependencies>
In this way when I add or remove a sub-module from driven-adapter
I don't have to do any changes in the configurator/pom.xml
Is it possible to achieve this?
I've this project:
The sub-modules in driven-adapters
can grow or decrease. What I'd like to do is when including the dependency on the parent (driven-adapters
) it will bring on the dependencies/sub-modules in it.
In other words the configurator
is simple, like this:
<dependencies>
...
<dependency>
<groupId>.simonegiusso</groupId>
<artifactId>driving-adapters</artifactId>
<version>${revision}</version>
<scope>runtime</scope>
</dependency>
...
</dependencies>
instead of:
<dependencies>
...
<dependency>
<groupId>.simonegiusso</groupId>
<artifactId>timeseries-source-postgres</artifactId>
<version>${revision}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>.simonegiusso</groupId>
<artifactId>timeseries-source-cassandra</artifactId>
<version>${revision}</version>
<scope>runtime</scope>
</dependency>
...
</dependencies>
In this way when I add or remove a sub-module from driven-adapter
I don't have to do any changes in the configurator/pom.xml
Is it possible to achieve this?
Share Improve this question asked Feb 15 at 10:03 SGiuxSGiux 8393 gold badges15 silver badges39 bronze badges1 Answer
Reset to default 0No.
The modules of a parent will not be your dependencies, and you cannot change that.