Skip to content

Commit

Permalink
Fix build with new parent
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed May 13, 2024
1 parent 6f867a3 commit 96b5d57
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 45 deletions.
43 changes: 23 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
# MojoHaus Flatten Maven Plugin

This is the [flatten-maven-plugin](http://www.mojohaus.org/flatten-maven-plugin/).

[![Apache License, Version 2.0, January 2004](https://img.shields.io/github/license/mojohaus/versions-maven-plugin.svg?label=License)](http://www.apache.org/licenses/)
[![Maven Central](https://img.shields.io/maven-central/v/org.codehaus.mojo/flatten-maven-plugin.svg?label=Maven%20Central)](https://search.maven.org/artifact/org.codehaus.mojo/flatten-maven-plugin)
[![GitHub CI](https://github.com/mojohaus/flatten-maven-plugin/actions/workflows/maven.yml/badge.svg)](https://github.com/mojohaus/flatten-maven-plugin/actions/workflows/maven.yml)

## 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>
<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
Expand All @@ -41,3 +43,4 @@ For publishing the site do the following:
cd target/checkout
mvn site scm-publish:publish-scm
```

25 changes: 0 additions & 25 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@

<properties>
<mavenVersion>3.6.3</mavenVersion>
<recommendedJavaBuildVersion>11</recommendedJavaBuildVersion>
<project.build.outputTimestamp>2024-01-14T11:28:18Z</project.build.outputTimestamp>
</properties>

Expand Down Expand Up @@ -227,29 +226,6 @@
</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-report-plugin</artifactId>
<configuration>
<requirementsHistories>
<requirementsHistory>
<version>1.5.0</version>
<maven>3.5.4</maven>
<jdk>1.8</jdk>
</requirementsHistory>
<requirementsHistory>
<version>1.4.0</version>
<maven>3.2.5</maven>
<jdk>1.8</jdk>
</requirementsHistory>
</requirementsHistories>
</configuration>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -317,7 +293,6 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>mrm-maven-plugin</artifactId>
Expand Down

0 comments on commit 96b5d57

Please sign in to comment.