-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1858 from arunvenmany-ibm/initial_recompile_fix
passing default execution id for all tasks in execute mojo
- Loading branch information
Showing
25 changed files
with
917 additions
and
11 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -58,7 +58,7 @@ jobs: | |
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.9.2 | ||
maven-version: 3.9.9 | ||
# Install dependencies | ||
- name: Install ci.ant and ci.common | ||
run: | | ||
|
@@ -107,7 +107,7 @@ jobs: | |
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.9.2 | ||
maven-version: 3.9.9 | ||
# Install ci.ant | ||
- name: Install ci.ant | ||
working-directory: C:/ci.ant | ||
|
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
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
259 changes: 259 additions & 0 deletions
259
...-maven-plugin/src/it/dev-it/resources/basic-dev-project-with-default-execution-id/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,259 @@ | ||
<?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> | ||
|
||
<groupId>dev-it-tests</groupId> | ||
<artifactId>basic-dev-project-with-default-execution-id</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<packaging>war</packaging> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>ISO_8859_1</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<maven.compiler.source>1.8</maven.compiler.source> | ||
<maven.compiler.target>1.8</maven.compiler.target> | ||
<liberty.jvm.minheap>-Xms512m</liberty.jvm.minheap> | ||
<app.name>LibertyProject</app.name> | ||
<!-- tag::ports[] --> | ||
<testServerHttpPort>9080</testServerHttpPort> | ||
<testServerHttpsPort>9443</testServerHttpsPort> | ||
<!-- end::ports[] --> | ||
<packaging.type>usr</packaging.type> | ||
</properties> | ||
|
||
<repositories> | ||
<!-- Sonatype repository used to get the latest binary scanner jar --> | ||
<repository> | ||
<id>oss-sonatype</id> | ||
<name>oss-sonatype</name> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots/</url> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
</repository> | ||
</repositories> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>io.openliberty.features</groupId> | ||
<artifactId>features-bom</artifactId> | ||
<version>RUNTIME_VERSION</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
<dependencies> | ||
<!-- Open Liberty features --> | ||
<dependency> | ||
<groupId>io.openliberty.features</groupId> | ||
<artifactId>jaxrs-2.1</artifactId> | ||
<type>esa</type> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.openliberty.features</groupId> | ||
<artifactId>jsonp-1.1</artifactId> | ||
<type>esa</type> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.openliberty.features</groupId> | ||
<artifactId>cdi-2.0</artifactId> | ||
<type>esa</type> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.openliberty.features</groupId> | ||
<artifactId>mpConfig-1.3</artifactId> | ||
<type>esa</type> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.openliberty.features</groupId> | ||
<artifactId>mpRestClient-1.2</artifactId> | ||
<type>esa</type> | ||
<scope>provided</scope> | ||
</dependency> | ||
<!-- Umbrella dependency replace 1 --> | ||
<!-- Umbrella dependency replace 2 --> | ||
<!-- <dependency> | ||
<groupId>io.openliberty.features</groupId> | ||
<artifactId>mpHealth-1.0</artifactId> | ||
<type>esa</type> | ||
<scope>provided</scope> | ||
</dependency> --> | ||
<!-- <dependency> | ||
<groupId>io.openliberty.features</groupId> | ||
<artifactId>abcd</artifactId> | ||
<version>1.0</version> | ||
</dependency> --> | ||
<!-- For tests --> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.13.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.cxf</groupId> | ||
<artifactId>cxf-rt-rs-client</artifactId> | ||
<version>3.2.6</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.cxf</groupId> | ||
<artifactId>cxf-rt-rs-extension-providers</artifactId> | ||
<version>3.2.6</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.glassfish</groupId> | ||
<artifactId>javax.json</artifactId> | ||
<version>1.0.4</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<!-- Java utility classes --> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
<version>3.0</version> | ||
</dependency> | ||
<!-- Support for JDK 9 and above--> | ||
<dependency> | ||
<groupId>javax.xml.bind</groupId> | ||
<artifactId>jaxb-api</artifactId> | ||
<version>2.3.1</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.sun.xml.bind</groupId> | ||
<artifactId>jaxb-core</artifactId> | ||
<version>2.3.0.1</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>javax.activation</groupId> | ||
<artifactId>activation</artifactId> | ||
<version>1.1.1</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>javax.batch</groupId> | ||
<artifactId>javax.batch-api</artifactId> | ||
<version>1.0.1</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<!-- Test runtime dependency for run goal --> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<version>2.0.7</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-classic</artifactId> | ||
<version>1.3.12</version> | ||
<scope>runtime</scope> | ||
</dependency> | ||
<!-- ADDITIONAL_DEPENDENCIES --> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-war-plugin</artifactId> | ||
<version>3.4.0</version> | ||
<configuration> | ||
<failOnMissingWebXml>false</failOnMissingWebXml> | ||
<packagingExcludes>pom.xml</packagingExcludes> | ||
</configuration> | ||
</plugin> | ||
<!-- Plugin to run unit tests --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>3.1.2</version> | ||
<executions> | ||
<execution> | ||
<phase>test</phase> | ||
<id>default-test</id> | ||
<configuration> | ||
<excludes> | ||
<exclude>**/it/**</exclude> | ||
</excludes> | ||
<reportsDirectory>${project.build.directory}/test-reports/unit</reportsDirectory> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- Enable liberty-maven plugin --> | ||
<plugin> | ||
<groupId>io.openliberty.tools</groupId> | ||
<artifactId>liberty-maven-plugin</artifactId> | ||
<version>SUB_VERSION</version> | ||
<configuration> | ||
<assemblyArtifact> | ||
<groupId>io.openliberty</groupId> | ||
<artifactId>openliberty-kernel</artifactId> | ||
<version>RUNTIME_VERSION</version> | ||
<type>zip</type> | ||
</assemblyArtifact> | ||
<packageName>${app.name}</packageName> | ||
<include>${packaging.type}</include> | ||
<bootstrapProperties> | ||
<default.http.port>${testServerHttpPort}</default.http.port> | ||
<default.https.port>${testServerHttpsPort}</default.https.port> | ||
<com.ibm.ws.logging.message.format>json</com.ibm.ws.logging.message.format> | ||
</bootstrapProperties> | ||
<jvmOptions> | ||
<param>-Xms512m</param> | ||
</jvmOptions> | ||
<!-- ADDITIONAL_CONFIGURATION --> | ||
</configuration> | ||
</plugin> | ||
<!-- Plugin to run functional tests --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-failsafe-plugin</artifactId> | ||
<version>3.1.2</version> | ||
<executions> | ||
<execution> | ||
<phase>integration-test</phase> | ||
<id>integration-test</id> | ||
<goals> | ||
<goal>integration-test</goal> | ||
</goals> | ||
<configuration> | ||
<includes> | ||
<include>**/it/**/*.java</include> | ||
</includes> | ||
<!-- tag::system-props[] --> | ||
<systemPropertyVariables> | ||
<liberty.test.port>${testServerHttpPort}</liberty.test.port> | ||
</systemPropertyVariables> | ||
<!-- end::system-props[] --> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>verify-results</id> | ||
<goals> | ||
<goal>verify</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<summaryFile>${project.build.directory}/test-reports/it/failsafe-summary.xml</summaryFile> | ||
<reportsDirectory>${project.build.directory}/test-reports/it</reportsDirectory> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
37 changes: 37 additions & 0 deletions
37
...urces/basic-dev-project-with-default-execution-id/src/main/java/com/demo/HelloLogger.java
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,37 @@ | ||
/******************************************************************************* | ||
* (c) Copyright IBM Corporation 2020. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*******************************************************************************/ | ||
package com.demo; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.Produces; | ||
|
||
import static javax.ws.rs.core.MediaType.TEXT_PLAIN; | ||
|
||
@Path("/show-log") | ||
public class HelloLogger { | ||
private static final Logger log = LoggerFactory.getLogger(HelloLogger.class); | ||
|
||
@GET | ||
@Produces(TEXT_PLAIN) | ||
public String showLog() { | ||
log.info("Here is the Log"); | ||
return "Log has been shown"; | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...rces/basic-dev-project-with-default-execution-id/src/main/java/com/demo/HelloServlet.java
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,39 @@ | ||
/******************************************************************************* | ||
* (c) Copyright IBM Corporation 2019. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*******************************************************************************/ | ||
package com.demo; | ||
|
||
import java.io.IOException; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import javax.servlet.ServletException; | ||
import javax.servlet.annotation.WebServlet; | ||
import javax.servlet.http.HttpServlet; | ||
import javax.servlet.http.HttpServletRequest; | ||
import javax.servlet.http.HttpServletResponse; | ||
|
||
@WebServlet(urlPatterns="/servlet") | ||
public class HelloServlet extends HttpServlet { | ||
private static final long serialVersionUID = 1L; | ||
|
||
private static final Logger log = LoggerFactory.getLogger(HelloLogger.class); | ||
|
||
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | ||
log.info("SLF4J Logger is ready for messages."); | ||
response.getWriter().append("hello world"); | ||
} | ||
} |
Oops, something went wrong.