Skip to content

Commit

Permalink
more workflow changes to use maven 3.9.9
Browse files Browse the repository at this point in the history
Signed-off-by: Arun Venmany <[email protected]>
  • Loading branch information
arunvenmany-ibm committed Jan 16, 2025
1 parent 55d998d commit 32f40d7
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.2/apache-maven-3.9.2-bin.zip
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
3 changes: 0 additions & 3 deletions liberty-maven-plugin/src/it/dev-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,8 @@
<argLine>-enableassertions</argLine>
<workingDirectory>${project.build.directory}</workingDirectory>
<includes>
<include>**/*DevTest.java</include>
<include>**/*DevRecompileWithDefaultExecutionIdTest.java</include>
<include>**/*DevRecompileWithCustomExecutionIdTest.java</include>
<include>**/*DevHotTestingTest.java</include>
<include>**/*DevGenerateFeaturesDependenciesTest.java</include>
</includes>
<systemPropertyVariables>
<mavenPluginVersion>@pom.version@</mavenPluginVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>java-compile</id>
<phase>compile</phase>
<goals> <goal>compile</goal> </goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ protected static void setUpBeforeClass(String params, String projectRoot, boolea
}

protected static void startProcess(String params, boolean isDevMode) throws IOException, InterruptedException, FileNotFoundException {
startProcess(params, isDevMode, "mvn compile liberty:");
startProcess(params, isDevMode, "mvn liberty:");
}

protected static void startProcess(String params, boolean isDevMode, String mavenPluginCommand) throws IOException, InterruptedException, FileNotFoundException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ public static void cleanUpAfterClass() throws Exception {
@Test
public void updateDependencyTest() throws Exception {
assertTrue(verifyLogMessageExists("Liberty is running in dev mode.", 10000));
assertTrue(getLogTail(), verifyLogMessageExists("Running maven-compiler-plugin:compile#java-compile", 10000));
assertTrue(getLogTail(), verifyLogMessageExists("Nothing to compile - all classes are up to date.", 10000));

File generatedFeaturesFile = getGeneratedFeaturesFile();
File targetGeneratedFeaturesFile = getTargetGeneratedFeaturesFile();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ public static void cleanUpAfterClass() throws Exception {

@Test
public void autoTestsInvocationTest() throws Exception {
assertTrue(getLogTail(), verifyLogMessageExists("Running maven-compiler-plugin:compile#default-compile", 20000));
assertTrue(getLogTail(), verifyLogMessageExists("Nothing to compile - all classes are up to date.", 20000));
assertTrue(verifyLogMessageExists("Tests will run automatically", 20000));

testModifyJavaFile();
Expand Down

0 comments on commit 32f40d7

Please sign in to comment.