Maven Flatten Plugin

Plugin to generate flattened POM (reduced and resolved information required for consumers of maven repositories) and to use (install, sign, deploy) it instead of original pom.xml.

License

License

Categories

Categories

Maven Build Tools Net
GroupId

GroupId

net.sourceforge.openutils
ArtifactId

ArtifactId

flatten-maven-plugin
Last Version

Last Version

1.2.201910234
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Maven Flatten Plugin
Plugin to generate flattened POM (reduced and resolved information required for consumers of maven repositories) and to use (install, sign, deploy) it instead of original pom.xml.
Project Organization

Project Organization

MojoHaus
Source Code Management

Source Code Management

https://github.com/openmindlab/flatten-maven-plugin

Download flatten-maven-plugin

How to add to project

<plugin>
    <groupId>net.sourceforge.openutils</groupId>
    <artifactId>flatten-maven-plugin</artifactId>
    <version>1.2.201910234</version>
</plugin>

Dependencies

compile (7)

Group / Artifact Type Version
org.apache.maven : maven-model jar 3.2.5
org.apache.maven : maven-model-builder jar 3.2.5
org.apache.maven : maven-artifact jar 3.2.5
org.apache.maven : maven-core jar 3.2.5
org.apache.maven : maven-plugin-api jar 3.2.5
org.codehaus.plexus : plexus-utils jar 3.2.1
org.apache.maven.shared : maven-artifact-transfer jar 0.9.0

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.assertj : assertj-core jar 2.0.0

Project Modules

There are no modules declared in this project.

MojoHaus Flatten Maven Plugin (forked and published)

This is the just the flatten-maven-plugin being forked and published. Waiting for official release...

Apache License, Version 2.0, January 2004 Maven Central Build Status 1.0.x branch: Build Status 1.0.x

Quickstart

This plugin generates a flattened version of your pom.xml and makes maven to install and deploy this one instead of the original pom.xml.

  <build>
    <plugins>
      <plugin>
        <groupId>net.sourceforge.openutils</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <!--<version>INSERT LATEST VERSION HERE</version>-->
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <!-- See usage on maven site from link above for details -->
        </configuration>
      </plugin>
    </plugins>
  </build>

Releasing

  • Make sure gpg-agent is running.
  • Execute mvn -B release:prepare release:perform

For publishing the site do the following:

cd target/checkout
mvn verify site site:stage scm-publish:publish-scm
net.sourceforge.openutils

openmind LAB

Versions

Version
1.2.201910234