Skip to content

mojohaus/flatten-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MojoHaus Flatten Maven Plugin

This is the flatten-maven-plugin.

Apache License, Version 2.0, January 2004 Maven Central GitHub CI

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 release:prepare release:perform

For publishing the site do the following:

cd target/checkout
mvn site scm-publish:publish-scm