cuioss / cui-parent-pom

Parent pom for open-source-projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cui-parent-pom

Status

Java CI with Maven License Maven Central

What is it?

Parent pom for cui-open-source-projects. It defines and configures a number of maven-plugins, unifying the descendant modules. It aims at modules being at least Java 17. It defines the sonatype-repositories as read and deploy repositories.

Maven-site result can be found Project-Home-Page

Maven Coordinates

General parent pom

<parent>
   <groupId>de.cuioss</groupId>
   <artifactId>cui-parent-pom</artifactId>
</parent>

Including dependency-management

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>de.cuioss</groupId>
            <artifactId>cui-java-bom</artifactId>
            <version>1.0</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

Usage for Standard java-modules

<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>
        <groupId>de.cuioss</groupId>
        <artifactId>cui-java-parent</artifactId>
        <version>1.0</version>
    </parent>
    <artifactId>cui-java-sample</artifactId>
    <name>cui java sample</name>
    <packaging>pom</packaging>
    <description>Sample usage of parent-pom</description>
    <dependencies>
        <!-- Provided-->
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
        </dependency>
        <!-- Unit testing -->
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter</artifactId>
        </dependency>
    </dependencies>
    </build>
</project>

About

Parent pom for open-source-projects

License:Apache License 2.0