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
GroupId

GroupId

org.codehaus.mojo
ArtifactId

ArtifactId

flatten-maven-plugin
Last Version

Last Version

1.2.7
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/mojohaus/flatten-maven-plugin

Download flatten-maven-plugin

How to add to project

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>flatten-maven-plugin</artifactId>
    <version>1.2.7</version>
</plugin>

Dependencies

compile (8)

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.shared : maven-dependency-tree jar 2.2
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.3.0
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.6.0

test (4)

Group / Artifact Type Version
junit : junit jar 4.13.1
org.assertj : assertj-core jar 3.18.1
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0
org.apache.maven : maven-compat jar 3.2.5

Project Modules

There are no modules declared in this project.

MojoHaus Flatten Maven Plugin

This is the flatten-maven-plugin.

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>org.codehaus.mojo</groupId>
        <artifactId>flatten-maven-plugin</artifactId>
        <!--<version>INSERT LATEST VERSION HERE</version>-->
        <executions>
          <execution>
            <goals>
              <goal>flatten</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
org.codehaus.mojo

MojoHaus

Various plugins for Apache Maven. Previously hosted on Codehaus and known as the codehaus MOJO project

Versions

Version
1.2.7
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.1.0
1.0.1
1.0.0
1.0.0-beta-5
1.0.0-beta-4
1.0.0-beta-3
1.0.0-beta-2
1.0.0-beta-1