Servlet implementation pom.xml

This is servlet 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>servlet-example-project</artifactId>
        <groupId>com.example</groupId>
        <version>1.0-SNAPSHOT</version>
        <relativePath>./../../servlet-pom.xml</relativePath>
    </parent>

    <name>example-servlet</name>
    <artifactId>example-servlet-implementation</artifactId>
    <packaging>war</packaging>

    <properties>
        <main.dir>${project.basedir}/../../</main.dir>
    </properties>

</project>

Description

What can be found in this file?

  • Parent of this project is set to project servlet-pom.xml file for global configuration scoped to servlet microservices to be inherited.
  • Useful property main.dir is set for accessing your main project directory.