Native implementation pom.xml
This is native microservice's interfaces pom.xml file. This module is used to store your microservice implementation. It is used to create deployable unit for platform.
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>native-example-project</artifactId>
<groupId>com.example</groupId>
<version>1.0-SNAPSHOT</version>
<relativePath>./../../native-pom.xml</relativePath>
</parent>
<name>example-native</name>
<artifactId>example-native-implementation</artifactId>
<properties>
<main.dir>${project.basedir}/../../</main.dir>
</properties>
<dependencies>
<dependency>
<groupId>com.example</groupId>
<artifactId>example-native-interfaces</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 native-pom.xml file for global configuration scoped to native microservices to be inherited.
- Useful property
main.dir
is set for accessing your main project directory. - Added dpeendency to
example-native-interfaces
for access to it's classes.