Dependencies between maven projects



Relative path to the parent project's pom.xml file. The default is ../ (root directory of another project under the same workspace) pom.xml. Maven first looks for the pom file of the parent project from the current build project, then from the local repository, and most importantly from the remote repository. RelativePath allows you to choose a different location.



<parent>
<groupId>com.certus.nfv</groupId>
<artifactId>mano-pom</artifactId>
<version>0.1</version>
<relativePath>../mano-pom/pom.xml</relativePath>
<



_

_ dependencies>
//Take the parent just configured as the source of mvn resources, and automatically make a jar package. The project depends on

<dependency>
<groupId>com.certus.nfv</groupId>
<artifactId>mano-common</artifactId>
<version >0.1</version>
</dependency>


<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
</dependency>

</dependencies>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326987131&siteId=291194637