added flatten plugin to remove parent from generated pom.xml in bom (#2943)

* added flatten plugin to remove parent from generated pom.xml in bom

* removed dependencies section

* added flattened bom to .gitignore

* removed properties from flattened-pom

* added missing dependencies to bom
This commit is contained in:
Lovro Pandžić 2021-06-25 15:48:38 +02:00 committed by GitHub
parent 42b31a77b8
commit 59dfd60157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions

1
.gitignore vendored
View File

@ -19,3 +19,4 @@ derby.log
/devops/*.rpm.zip
/devops/**/*.semaphore
/devops/test-connection/.lein-repl-history
**/.flattened-pom.xml

View File

@ -16,6 +16,10 @@
<url>${project.homepage}</url>
<packaging>pom</packaging>
<properties>
<flatten-maven-plugin.version>1.2.7</flatten-maven-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
@ -48,6 +52,11 @@
<artifactId>querydsl-collections</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>querydsl-guava</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>querydsl-sql</artifactId>
@ -83,6 +92,11 @@
<artifactId>querydsl-jdo</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>querydsl-kotlin-codegen</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>querydsl-lucene3</artifactId>
@ -120,4 +134,39 @@
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
<configuration>
<updatePomFile>true</updatePomFile>
<flattenMode>bom</flattenMode>
<pomElements>
<properties>remove</properties>
<repositories>remove</repositories>
<dependencies>remove</dependencies>
</pomElements>
</configuration>
</execution>
<execution>
<id>flatten-clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>