Assuming that I have an artifact my-project-core
that includes some dependencies with library:
<artifactId>my-project-core</artifactId>
<name>CORE</name>
...
<dependency>
<groupId>com.bun.puffy</groupId>
<artifactId>just-the-lib</artifactId>
<version>1.0.0</version>
</dependency>
And I want to use it in new project that have dependency with my-project-core
<artifactId>new-project-using-core</artifactId>
<name>NEW PROJECT USING CORE</name>
...
<dependency>
<groupId>com.bun.puffy</groupId>
<artifactId>my-project-core</artifactId>
<version>1.0.0</version>
</dependency>
<!-- should I also add this ?
<dependency>
<groupId>com.bun.puffy</groupId>
<artifactId>just-the-lib</artifactId>
<version>1.0.0</version>
</dependency>
-->
should I add dependency for just-the-lib
in the new project or should I not do this and depend on the dependency of my-project-core
? What are pros and cons?