io.sgr.maven:maven-policy

Build policy related artifacts

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

io.sgr.maven
ArtifactId

ArtifactId

maven-policy
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

pom
Description

Description

Build policy related artifacts
Project URL

Project URL

https://github.com/io-sgr/maven-policy
Source Code Management

Source Code Management

https://github.com/io-sgr/maven-policy

Download maven-policy

Filename Size
maven-policy-1.1.1.pom 2 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/io.sgr.maven/maven-policy/ -->
<dependency>
    <groupId>io.sgr.maven</groupId>
    <artifactId>maven-policy</artifactId>
    <version>1.1.1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/io.sgr.maven/maven-policy/
implementation 'io.sgr.maven:maven-policy:1.1.1'
// https://jarcasting.com/artifacts/io.sgr.maven/maven-policy/
implementation ("io.sgr.maven:maven-policy:1.1.1")
'io.sgr.maven:maven-policy:pom:1.1.1'
<dependency org="io.sgr.maven" name="maven-policy" rev="1.1.1">
  <artifact name="maven-policy" type="pom" />
</dependency>
@Grapes(
@Grab(group='io.sgr.maven', module='maven-policy', version='1.1.1')
)
libraryDependencies += "io.sgr.maven" % "maven-policy" % "1.1.1"
[io.sgr.maven/maven-policy "1.1.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • maven-rules
  • maven-repository
  • maven-base
  • common-dependencies

Maven Root POM

Using this root pom as the parent of a project at io.sgr will do the following things:

  • Inherit from the BasePOM Project
  • Enable the release plugin to build a javadoc jar when releasing a project
  • Apply some basic policy to the project

How to set it up

How to use it

The Maven Root POM provides a common set of configurations for maven plugins to build Java projects. Most of the time, it should no longer be necessary to have any <plugin> or <pluginManagement> sections in the project POMs.

The pom is activated by adding it as parent to the project POM. Add the following snippet to the POM in the root of a project:

<parent>
    <groupId>io.sgr.maven</groupId>
    <artifactId>maven-base</artifactId>
    <version>1.1.1-SNAPSHOT</version>
</parent>

This should be enough for most projects that use JDK 1.8.

The policy overview contains more information about the policies set in the Maven root POM.

io.sgr.maven

sgr.io

Versions

Version
1.1.1