common-util pom.xml

This is common-util pom.xml files. This modules is used for global utils.

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-util</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.