Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into skipInstallFeature
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylking committed Aug 18, 2023
2 parents ef03dd5 + 63faac0 commit 4d9d196
Show file tree
Hide file tree
Showing 21 changed files with 108 additions and 53 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ jobs:
uses: stCarolas/[email protected]
with:
maven-version: 3.9.2
- name: Cache maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
# Install dependencies
- name: Install ci.ant and ci.common
run: |
Expand Down Expand Up @@ -107,12 +101,6 @@ jobs:
cp -r D:/a/ci.maven/ci.maven C:/ci.maven
git clone https://github.com/cherylking/ci.common.git --branch addSkipInstallFeature --single-branch C:/ci.common
git clone https://github.com/OpenLiberty/ci.ant.git C:/ci.ant
- name: Cache maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Set up Maven
uses: stCarolas/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions liberty-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
</profiles>
<streamLogsOnFailures>true</streamLogsOnFailures>
<mavenOpts>-Dfile.encoding=UTF-8</mavenOpts>
<postBuildHookScript>cleanTest</postBuildHookScript>
</configuration>
<executions>
<execution>
Expand Down
8 changes: 6 additions & 2 deletions liberty-maven-plugin/src/it/binary-scanner-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
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>

<groupId>io.openliberty.tools.it</groupId>
<parent>
<groupId>io.openliberty.tools.it</groupId>
<artifactId>tests</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>binary-scanner-it</artifactId>
<version>1.1</version>
<packaging>jar</packaging>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>io.openliberty.tools.it</groupId>
<artifactId>multi-module-package-it</artifactId>
<version>1.0</version>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>my-war</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.openliberty.tools.it</groupId>
<artifactId>multi-module-package-it</artifactId>
<version>1.0</version>
<version>1.0-SNAPSHOT</version>
</parent>

<groupId>io.openliberty.tools.it</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@

<modelVersion>4.0.0</modelVersion>

<groupId>io.openliberty.tools.it</groupId>
<parent>
<groupId>io.openliberty.tools.it</groupId>
<artifactId>tests</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>multi-module-package-it</artifactId>
<version>1.0</version>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Deploy app on Liberty and package server</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<id>stop-server-before-clean</id>
<phase>pre-clean</phase>
<goals>
<goal>stop-server</goal>
<goal>stop</goal>
</goals>
</execution>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<id>stop-server-before-clean</id>
<phase>pre-clean</phase>
<goals>
<goal>stop-server</goal>
<goal>stop</goal>
</goals>
</execution>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<id>stop-server-before-clean</id>
<phase>pre-clean</phase>
<goals>
<goal>stop-server</goal>
<goal>stop</goal>
</goals>
</execution>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<id>stop-server-before-clean</id>
<phase>pre-clean</phase>
<goals>
<goal>stop-server</goal>
<goal>stop</goal>
</goals>
</execution>
<execution>
Expand Down
8 changes: 6 additions & 2 deletions liberty-maven-plugin/src/it/generate-features-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
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>

<groupId>io.openliberty.tools.it</groupId>
<parent>
<groupId>io.openliberty.tools.it</groupId>
<artifactId>tests</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>generate-features-it</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
<id>stop-server</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop-server</goal>
<goal>stop</goal>
</goals>
</execution>
<execution>
Expand Down
8 changes: 6 additions & 2 deletions liberty-maven-plugin/src/it/loose-war-ejb-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
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">

<groupId>io.openliberty.tools.it</groupId>
<parent>
<groupId>io.openliberty.tools.it</groupId>
<artifactId>tests</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>ejb-war-test</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>

<modelVersion>4.0.0</modelVersion>
Expand Down
8 changes: 6 additions & 2 deletions liberty-maven-plugin/src/it/loose-war-ejb-type-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
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">

<groupId>io.openliberty.tools.it</groupId>
<parent>
<groupId>io.openliberty.tools.it</groupId>
<artifactId>tests</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>ejb-type-war-test</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>

<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<id>stop-server-before-clean</id>
<phase>pre-clean</phase>
<goals>
<goal>stop-server</goal>
<goal>stop</goal>
</goals>
</execution>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<id>stop-server-before-clean</id>
<phase>pre-clean</phase>
<goals>
<goal>stop-server</goal>
<goal>stop</goal>
</goals>
</execution>
<execution>
Expand Down
41 changes: 39 additions & 2 deletions liberty-maven-plugin/src/it/setup/test-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,43 @@
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>

</project>

<profiles>
<profile>
<id>test-cleanup</id>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>process-test-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}</outputDirectory>
<resources>
<resource>
<!-- Relative to test project in ci.maven/target/it -->
<!-- Path to resource dir containing cleanTest.bsh -->
<directory>../../../src/test/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
40 changes: 22 additions & 18 deletions liberty-maven-plugin/src/it/springboot-tests/pom.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://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>
<modelVersion>4.0.0</modelVersion>

<groupId>io.openliberty.tools.it</groupId>
<artifactId>springboot-tests</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<parent>
<groupId>io.openliberty.tools.it</groupId>
<artifactId>tests</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<artifactId>springboot-tests</artifactId>
<packaging>pom</packaging>

<modules>
<module>springboot-appsdirectory-apps-it</module>
<module>springboot-appsdirectory-dropins-it</module>
</modules>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>

<modules>
<module>springboot-appsdirectory-apps-it</module>
<module>springboot-appsdirectory-dropins-it</module>
</modules>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<id>stop-server-before-clean</id>
<phase>pre-clean</phase>
<goals>
<goal>stop-server</goal>
<goal>stop</goal>
</goals>
</execution>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<id>stop-server-before-clean</id>
<phase>pre-clean</phase>
<goals>
<goal>stop-server</goal>
<goal>stop</goal>
</goals>
</execution>
<execution>
Expand Down
4 changes: 4 additions & 0 deletions liberty-maven-plugin/src/test/resources/cleanTest.bsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//Runs clean in the test project directory
Runtime.getRuntime().exec("../../../../mvnw clean", null, basedir);
System.out.println("Cleaned target dir(s) for " + basedir);
return true;

0 comments on commit 4d9d196

Please sign in to comment.