-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] testing whether integration-tests as module works for plugins
[WIP] remove extension from IT, allow skipping main ITs
- Loading branch information
Showing
18 changed files
with
213 additions
and
12 deletions.
There are no files selected for viewing
142 changes: 142 additions & 0 deletions
142
liberty-maven-plugin-integration-tests/assembly-server/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
<?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.it</groupId> | ||
<artifactId>liberty-maven-plugin-integration-tests</artifactId> | ||
<version>3.8.3-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>assembly-server</artifactId> | ||
<packaging>pom</packaging> | ||
|
||
<properties> | ||
<!-- Specify Liberty profile server installation directory --> | ||
<liberty.install.dir>${libertyInstallDir}</liberty.install.dir> | ||
</properties> | ||
|
||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<version>3.1.0</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-install-plugin</artifactId> | ||
<version>3.1.1</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>io.openliberty.tools</groupId> | ||
<artifactId>liberty-maven-plugin</artifactId> | ||
<version>${project.version}</version> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<!-- install the liberty server zip the local maven repo. This is used | ||
by the liberty-packaging-test and liberty-packaging-it tests --> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-install-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>install-liberty-to-repo</id> | ||
<phase>compile</phase> | ||
<goals> | ||
<goal>install-file</goal> | ||
</goals> | ||
<configuration> | ||
<file>${basedir}/target/liberty.zip</file> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>${project.artifactId}</artifactId> | ||
<version>${project.version}</version> | ||
<packaging>zip</packaging> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<profiles> | ||
<profile> | ||
<id>offline-its</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<!-- zip up the liberty server to deploy it to the local maven repo | ||
(next plugin) --> | ||
<!-- I would expect the server is already available as a zip, but I | ||
can't find it --> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<phase>generate-resources</phase> | ||
<configuration> | ||
<target> | ||
<zip basedir="${liberty.install.dir}" destfile="${basedir}/target/liberty.zip" | ||
excludes="usr/servers/**" /> | ||
</target> | ||
</configuration> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>online-its</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>io.openliberty.tools</groupId> | ||
<artifactId>liberty-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>downloading-wlp</id> | ||
<phase>generate-resources</phase> | ||
<goals> | ||
<goal>status</goal> | ||
</goals> | ||
<configuration> | ||
<assemblyArtifact> | ||
<groupId>${runtimeGroupId}</groupId> | ||
<artifactId>${runtimeArtifactId}</artifactId> | ||
<version>${runtimeVersion}</version> | ||
<type>zip</type> | ||
</assemblyArtifact> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<phase>process-resources</phase> | ||
<configuration> | ||
<target> | ||
<zip basedir="${basedir}/target/liberty/wlp" destfile="${basedir}/target/liberty.zip" /> | ||
</target> | ||
</configuration> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?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.8.3-SNAPSHOT</version> | ||
</parent> | ||
|
||
<groupId>io.openliberty.tools.it</groupId> | ||
<artifactId>liberty-maven-plugin-integration-tests</artifactId> | ||
<version>3.8.3-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
<name>Liberty Maven Plugin :: ITs</name> | ||
|
||
<modules> | ||
<module>assembly-server</module> | ||
<module>config-directory-it</module> | ||
</modules> | ||
|
||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>build-helper-maven-plugin</artifactId> | ||
<version>3.3.0</version> | ||
<inherited>true</inherited> | ||
<executions> | ||
<execution> | ||
<id>portnumber</id> | ||
<phase>pre-integration-test</phase> | ||
<goals> | ||
<goal>reserve-network-port</goal> | ||
</goals> | ||
<configuration> | ||
<portNames> | ||
<name>liberty.port</name> | ||
</portNames> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
liberty-maven-plugin/src/it/config-directory-it/invoker.properties
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters