I have two different maven projects - let's say ProjectA and ProjectB where ProjectA uses ProjectB.
These projects have seperate pom.xml files. I would like to create a dependancy inside the pom.xml of ProjectA and include ProjectB.
However, everytime I try to run as clean install
it always fails and shows the following error.
[WARNING] The POM for database-manager:database-manager:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[ERROR] Failed to execute goal on project cumulus-certificate-generator-attestation: Could not resolve dependencies for project database-manager:database-manager:jar:0.0.1-SNAPSHOT: Could not find artifact cdatabase-manager:cdatabase-manager:jar:0.0.1-SNAPSHOT -> [Help 1]
where database-manager = ProjectB.
My dependency (inside ProjectA pom.xml) looks like this:
<dependency>
<groupId>database-manager</groupId>
<artifactId>database-manager</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
I want to mention that I found a solution by including a "master" pom.xml that will include these two projects but this is not the solution as I have multiple pom.xml files and multiple projects. If this question has already been answered, can you please point me the solution as I cannot find anything similar to this.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>database-manager</groupId>
<artifactId>database-manager</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>database-manager</name>
Thanks!