Coder Social home page Coder Social logo

parent's Introduction

Build Supported JVM Versions Sonarcloud Status SonarCloud Vulnerabilities Maven Central

Writing and maintaining Maven projects POM is boring. This parent POM is simplifying those tasks in the context of my open source projects by:

How to use it?

Just inherit from it in your project :

<?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>
		<groupId>fr.marcwrobel</groupId>
		<artifactId>parent</artifactId>
		<version>3.2.0</version>
		<relativePath/>
	</parent>

	<groupId>groupId</groupId>
	<artifactId>artifactId</artifactId>
	<version>x.y.z-SNAPSHOT</version>

	<name>name</name>
	<description>description</description>
	<url>https://url.com</url>
	<inceptionYear>2020</inceptionYear>
	...
	<!-- only override if needed -->
	<properties>
		<this.java.version>1.8</this.java.version>
		<this.maven.version>3.8.5</this.maven.version>

		<dev.name>Marc Wrobel</dev.name>
		<dev.username>marcwrobel</dev.username>
		<dev.email>[email protected]</dev.email>
		<dev.url>http://www.marcwrobel.fr/</dev.url>
		...
	</properties>
</project>

All inherited information can be overridden, especially properties (take a look at this parent POM for an exhaustive list). Remember you can display the effective POM using maven-help-plugin in your project:

mvn help:effective-pom

You must also declare a maven-versions-rules.xml file at the root of your project.

What's included?

The maven-enforcer-plugin is the only plugin activated by default.

Take a look at the POM for more information.

Why spring-boot-starter-parent?

This POM is inheriting from spring-boot-starter-parent in order to:

  • take advantage of the Spring Boot team's work on dependencies (with spring-boot-dependencies);
  • benefit from some good plugin management defaults.

Because this POM is relying so much on spring-boot-starter-parent its major and minor versions are also following those of Spring Boot.

Contribute

Take a look at the contribution guide.

Need help ?

Start a discussion, raise an issue or contribute with a pull-request (please take a look at the contribution guide before).

And for the things that must be kept private (only !), such as security issues, email me at [email protected].

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.