Skip to content

Commit

Permalink
DAT-14615: revert maven plugin pom to old version (liquibase#4561)
Browse files Browse the repository at this point in the history
Use the pom.xml that existed previously, undoing the changes made in 16dc223
  • Loading branch information
StevenMassaro authored Jul 28, 2023
1 parent a72a036 commit dbd9f22
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 47 deletions.
114 changes: 67 additions & 47 deletions liquibase-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,16 @@
<artifactId>liquibase</artifactId>
<version>0-SNAPSHOT</version>
</parent>
<name>Liquibase Maven Plugin</name>

<artifactId>liquibase-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<description>A Maven plugin wraps up some of the functionality of Liquibase</description>

<url>http://www.liquibase.org/liquibase-maven-plugin</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<developers>
<developer>
<id>nvoxland</id>
<name>Nathan Voxland</name>
<email>[email protected]</email>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
<timezone>-6</timezone>
</developer>
</developers>
<scm>
<connection>scm:git:[email protected]:liquibase/liquibase.git/liquibase-maven-plugin</connection>
<developerConnection>scm:git:[email protected]:liquibase/liquibase.git/liquibase-maven-plugin</developerConnection>
<url>scm:git:[email protected]:liquibase/liquibase.git/liquibase-maven-plugin</url>
</scm>

<properties>
<targetMavenVersion>3.9.2</targetMavenVersion>
<maven.install.skip>false</maven.install.skip>
<maven.deploy.skip>false</maven.deploy.skip>
<maven.javadoc.skip>false</maven.javadoc.skip>
<deploy.url>https://maven.pkg.github.com/liquibase/liquibase</deploy.url>
<deploy.repositoryId>github</deploy.repositoryId>
</properties>
<dependencies>
<dependency>
Expand All @@ -58,6 +30,11 @@
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${targetMavenVersion}</version>
<scope>provided</scope>
</dependency>

Expand All @@ -68,14 +45,22 @@
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>${targetMavenVersion}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-compat</artifactId>
<version>${targetMavenVersion}</version>
<scope>provided</scope>
</dependency>

<dependency>

<dependency>
<groupId>org.apache.maven.plugin-testing</groupId>
<artifactId>maven-plugin-testing-harness</artifactId>
<version>3.3.0</version>
Expand Down Expand Up @@ -112,22 +97,40 @@
</plugin>

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

<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.0</version>
<configuration>
<flattenMode>ossrh</flattenMode>
<outputDirectory>${project.build.directory}</outputDirectory>
<updatePomFile>true</updatePomFile>
<embedBuildProfileDependencies>true</embedBuildProfileDependencies>
<artifactSet>
<includes>
<include>${project.groupId}:liquibase-maven-plugin</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/maven/**/pom.xml</exclude>
</excludes>
</filter>
</filters>
<createDependencyReducedPom>false</createDependencyReducedPom>
<createSourcesJar>false</createSourcesJar>
<createTestSourcesJar>false</createTestSourcesJar>
<keepDependenciesWithProvidedScope>false</keepDependenciesWithProvidedScope>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
<!-- Use a hand-crafted pom for distribution in this jar vs. what gets generated by maven -->
<resource>META-INF/maven/org.liquibase/liquibase-maven-plugin/pom.xml</resource>
<file>${basedir}/src/main/maven/release.pom.xml</file>
</transformer>
</transformers>
</configuration>
<executions>
<execution>
<id>flatten</id>
<phase>compile</phase>
<phase>package</phase>
<goals>
<goal>flatten</goal>
<goal>shade</goal>
</goals>
</execution>
</executions>
Expand All @@ -145,13 +148,29 @@
<exists>../../liquibase-pro/pom.xml</exists>
</file>
</activation>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>liquibase-commercial</artifactId>
<version>${liquibase-pro.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<configuration>
<artifactId>liquibase-maven-plugin</artifactId>
<file>${project.build.directory}/liquibase-maven-plugin-${project.version}.jar</file>
<sources>${project.build.directory}/liquibase-maven-plugin-${project.version}-sources.jar</sources>
<pomFile>${basedir}/src/main/maven/release.pom.xml</pomFile>
</configuration>
<executions>
<execution>
<id>custom-install</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>
Expand All @@ -166,3 +185,4 @@
</plugins>
</reporting>
</project>

49 changes: 49 additions & 0 deletions liquibase-maven-plugin/src/main/maven/release.pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>
<name>Liquibase Maven Plugin</name>
<description>A Maven plugin wraps up some of the functionality of Liquibase</description>
<url>http://www.liquibase.org/liquibase-maven-plugin</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<developers>
<developer>
<id>nvoxland</id>
<name>Nathan Voxland</name>
<email>[email protected]</email>
<roles>
<role>architect</role>
<role>developer</role>
</roles>
<timezone>-6</timezone>
</developer>
</developers>
<scm>
<connection>scm:git:[email protected]:liquibase/liquibase.git/liquibase-maven-plugin</connection>
<developerConnection>scm:git:[email protected]:liquibase/liquibase.git/liquibase-maven-plugin</developerConnection>
<url>scm:git:[email protected]:liquibase/liquibase.git/liquibase-maven-plugin</url>
</scm>
<dependencies>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-commercial</artifactId>
<version>0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>

0 comments on commit dbd9f22

Please sign in to comment.