Native interfaces pom.xml
This is native microservice's interfaces pom.xml file. This module is used to store your microservice interfaces with pojo classes. It is shared with others to access your micorservice.
Content
<?xml version="1.0" encoding="UTF-8"?>
<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>
<parent>
<artifactId>example-project</artifactId>
<groupId>com.example</groupId>
<version>1.0-SNAPSHOT</version>
<relativePath>./../../pom.xml</relativePath>
</parent>
<artifactId>example-native-interfaces</artifactId>
<properties>
<main.dir>${project.basedir}/../../</main.dir>
</properties>
<dependencies>
<dependency>
<groupId>com.example</groupId>
<artifactId>common-pojo</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
Description
What can be found in this file?
- Parent of this project is set to project pom.xml file for global configuration to be inherited.
- Useful property
main.dir
is set for accessing your main project directory. - Added dependency to
common-pojo
for access to it's classes.