common-pojo pom.xml
This is common-pojo
pom.xml files. This modules is used for global types and pojo classes.
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>common-pojo</artifactId>
<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 pom.xml file for global configuration to be inherited.
- Useful property
main.dir
is set for accessing your main project directory.