I have two child modules, A and Util. And I have added the dependency in the pom file of A likes:
<dependency>
<groupId>xxx</groupId>
<artifactId>Util</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
With this, I can use the class of Util in module A.
But when I want to generate the jar of A, there is an error of
xxx
does not exit wherexxx
es the class of module Util.
I want to know how I can generate the .jar
Update:
And After I added the dependency, there is not the .jar in the Maven dependencies, it is a file "Util":
I also used "maven install" in Util and the result is:
The command I used to generate is "mvn clean package -DskipTests=true
"