liberty-maven-plugin
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.12.0</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven</artifactId>
<version>3.12.0</version>
</parent>
<artifactId>liberty-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>liberty-maven-plugin</name>
<description>Liberty Maven Plugin : Install, Start/Stop, Package, Create Server, Deploy/Undeploy applications</description>
<url>https://github.com/OpenLiberty/ci.maven</url>
<prerequisites>
<maven>${maven.version}</maven>
</prerequisites>
<repositories>
<!-- Configure Sonatype OSS Maven snapshots repository when using snapshots -->
<repository>
<id>central-portal-snapshots</id>
<name>Central Portal Snapshots</name>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-ant-tasks</artifactId>
<version>1.9.18</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>${maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-model</artifactId>
<version>${maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-mapping</artifactId>
<version>3.0.0</version>
</dependency>
<!-- dependencies to annotations -->
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>${maven.plugin.tools.version}</version>
<scope>provided</scope> <!-- annotations are needed only to build the plugin -->
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.5.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-build-api</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>io.openliberty.tools</groupId>
<artifactId>ci.common</artifactId>
<version>1.8.40</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.18.0</version>
</dependency>
<dependency>
<groupId>org.twdata.maven</groupId>
<artifactId>mojo-executor</artifactId>
<version>2.4.1</version>
</dependency>
<dependency>
<groupId>xmlunit</groupId>
<artifactId>xmlunit</artifactId>
<version>1.6</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>${maven.plugin.tools.version}</version>
<executions>
<execution>
<id>help-goal</id>
<goals>
<goal>helpmojo</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>offline-its</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<debug>false</debug>
<goals>
<goal>install</goal>
</goals>
<projectsDirectory>src/it</projectsDirectory>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<properties>
<libertyInstallDir>${libertyInstallDir}</libertyInstallDir>
</properties>
<profiles>
<profile>offline-its</profile>
</profiles>
<streamLogsOnFailures>true</streamLogsOnFailures>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>install</goal>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>online-its</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<preBuildHookScript>setup</preBuildHookScript>
<debug>false</debug>
<goals>
<goal>install</goal>
</goals>
<projectsDirectory>src/it</projectsDirectory>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<properties>
<runtime>${runtime}</runtime>
<runtimeGroupId>${runtimeGroupId}</runtimeGroupId>
<runtimeArtifactId>${runtimeArtifactId}</runtimeArtifactId>
<runtimeKernelId>${runtimeKernelId}</runtimeKernelId>
<runtimeVersion>${runtimeVersion}</runtimeVersion>
</properties>
<profiles>
<profile>online-its</profile>
</profiles>
<streamLogsOnFailures>true</streamLogsOnFailures>
<mavenOpts>-Dfile.encoding=UTF-8</mavenOpts>
<postBuildHookScript>cleanTest</postBuildHookScript>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>install</goal>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- Profiles for WLP vs OL -->
<profile>
<id>wlp-its</id>
<activation>
<property>
<name>runtime</name>
<value>wlp</value>
</property>
</activation>
<properties>
<runtime>wlp</runtime>
<runtimeGroupId>com.ibm.websphere.appserver.runtime</runtimeGroupId>
<runtimeArtifactId>wlp-javaee7</runtimeArtifactId>
<runtimeKernelId>wlp-kernel</runtimeKernelId>
<runtimeVersion>${runtimeVersion}</runtimeVersion>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<pomExcludes>
<pomExclude>binary-scanner-it/pom.xml</pomExclude>
<pomExclude>springboot-3-tests/pom.xml</pomExclude>
<pomExclude>toolchain-java-warning-jvmoption-custom-file-it/pom.xml</pomExclude>
<pomExclude>toolchain-java-warning-jvmoption-file-it/pom.xml</pomExclude>
<pomExclude>toolchain-java-warning-jvmoption-property-it/pom.xml</pomExclude>
<pomExclude>dev-container-it/pom.xml</pomExclude>
<pomExclude>compile-jsp-source-17-it/pom.xml</pomExclude>
<pomExclude>compile-jsp-source-17-jakarta-it/pom.xml</pomExclude>
</pomExcludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>ol-its</id>
<activation>
<property>
<name>runtime</name>
<value>ol</value>
</property>
</activation>
<properties>
<runtime>ol</runtime>
<runtimeGroupId>io.openliberty</runtimeGroupId>
<runtimeArtifactId>openliberty-runtime</runtimeArtifactId>
<runtimeKernelId>openliberty-kernel</runtimeKernelId>
<runtimeVersion>${runtimeVersion}</runtimeVersion>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<pomExcludes>
<pomExclude>server-config-props-it/pom.xml</pomExclude>
<pomExclude>basic-it/pom.xml</pomExclude>
<pomExclude>assembly-it/pom.xml</pomExclude>
<pomExclude>assembly-with-code-it/pom.xml</pomExclude>
<pomExclude>server-param-pom-override-it/pom.xml</pomExclude>
<pomExclude>server-param-default-it/pom.xml</pomExclude>
<pomExclude>server-param-configdir-not-override-it/pom.xml</pomExclude>
<pomExclude>install-features-it/pom.xml</pomExclude>
<pomExclude>binary-scanner-it/pom.xml</pomExclude>
<pomExclude>springboot-3-tests/pom.xml</pomExclude>
<pomExclude>toolchain-java-warning-jvmoption-custom-file-it/pom.xml</pomExclude>
<pomExclude>toolchain-java-warning-jvmoption-file-it/pom.xml</pomExclude>
<pomExclude>toolchain-java-warning-jvmoption-property-it/pom.xml</pomExclude>
<pomExclude>dev-container-it/pom.xml</pomExclude>
<pomExclude>compile-jsp-source-17-it/pom.xml</pomExclude>
<pomExclude>compile-jsp-source-17-jakarta-it/pom.xml</pomExclude>
</pomExcludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<!-- WLP/OP profiles for windows on appveyor -->
<profile>
<id>windows-wlp-its</id>
<activation>
<os>
<family>Windows</family>
</os>
<property>
<name>runtime</name>
<value>wlp</value>
</property>
</activation>
<properties>
<runtime>wlp</runtime>
<runtimeGroupId>com.ibm.websphere.appserver.runtime</runtimeGroupId>
<runtimeArtifactId>wlp-javaee7</runtimeArtifactId>
<runtimeKernelId>wlp-kernel</runtimeKernelId>
<runtimeVersion>${runtimeVersion}</runtimeVersion>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<pomExcludes>
<pomExclude>dev-it/pom.xml</pomExclude>
<pomExclude>toolchain-run-it/pom.xml</pomExclude>
<pomExclude>dev-container-it/pom.xml</pomExclude>
<pomExclude>generate-features-it/pom.xml</pomExclude>
<pomExclude>binary-scanner-it/pom.xml</pomExclude>
<pomExclude>springboot-3-tests/pom.xml</pomExclude>
<pomExclude>toolchain-java-warning-jvmoption-custom-file-it/pom.xml</pomExclude>
<pomExclude>toolchain-java-warning-jvmoption-file-it/pom.xml</pomExclude>
<pomExclude>toolchain-java-warning-jvmoption-property-it/pom.xml</pomExclude>
<pomExclude>compile-jsp-source-17-it/pom.xml</pomExclude>
<pomExclude>compile-jsp-source-17-jakarta-it/pom.xml</pomExclude>
</pomExcludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
<profile>
<id>windows-ol-its</id>
<activation>
<os>
<family>Windows</family>
</os>
<property>
<name>runtime</name>
<value>ol</value>
</property>
</activation>
<properties>
<runtime>ol</runtime>
<runtimeGroupId>io.openliberty</runtimeGroupId>
<runtimeArtifactId>openliberty-runtime</runtimeArtifactId>
<runtimeKernelId>openliberty-kernel</runtimeKernelId>
<runtimeVersion>${runtimeVersion}</runtimeVersion>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<pomExcludes>
<pomExclude>dev-it/pom.xml</pomExclude>
<pomExclude>toolchain-run-it/pom.xml</pomExclude>
<pomExclude>dev-container-it/pom.xml</pomExclude>
<pomExclude>basic-it/pom.xml</pomExclude>
<pomExclude>assembly-it/pom.xml</pomExclude>
<pomExclude>assembly-with-code-it/pom.xml</pomExclude>
<pomExclude>server-param-pom-override-it/pom.xml</pomExclude>
<pomExclude>server-param-default-it/pom.xml</pomExclude>
<pomExclude>server-param-configdir-not-override-it/pom.xml</pomExclude>
<pomExclude>install-features-it/pom.xml</pomExclude>
<pomExclude>generate-features-it/pom.xml</pomExclude>
<pomExclude>binary-scanner-it/pom.xml</pomExclude>
<pomExclude>springboot-3-tests/pom.xml</pomExclude>
<pomExclude>toolchain-java-warning-jvmoption-custom-file-it/pom.xml</pomExclude>
<pomExclude>toolchain-java-warning-jvmoption-file-it/pom.xml</pomExclude>
<pomExclude>toolchain-java-warning-jvmoption-property-it/pom.xml</pomExclude>
<pomExclude>compile-jsp-source-17-it/pom.xml</pomExclude>
<pomExclude>compile-jsp-source-17-jakarta-it/pom.xml</pomExclude>
</pomExcludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
</project>