Skip to content

Commit 2b5271d

Browse files
authored
Merge pull request #293 from jmtd/OPENJDK-781-maven-openjdk17
[OPENJDK-781] maven module for openjdk17
2 parents 17500e0 + 8c228f9 commit 2b5271d

File tree

7 files changed

+46
-6
lines changed

7 files changed

+46
-6
lines changed

modules/maven/8.2.3.6.8/configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
# This file is shipped by a Maven package and sets JAVA_HOME to
55
# an OpenJDK-specific path. This causes problems for OpenJ9 containers
66
# as the path is not correct for them. We don't need this in any of
7-
# the containers because ew set JAVA_HOME in the container metadata.
7+
# the containers because we set JAVA_HOME in the container metadata.
88
# Blank the file rather than removing it, to avoid a warning message
99
# from /usr/bin/mvn.
1010
if [ -f /etc/java/maven.conf ]; then

modules/maven/8.2.3.6/configure.sh renamed to modules/maven/8.6.3.6.11/configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
# This file is shipped by a Maven package and sets JAVA_HOME to
55
# an OpenJDK-specific path. This causes problems for OpenJ9 containers
66
# as the path is not correct for them. We don't need this in any of
7-
# the containers because ew set JAVA_HOME in the container metadata.
7+
# the containers because we set JAVA_HOME in the container metadata.
88
# Blank the file rather than removing it, to avoid a warning message
99
# from /usr/bin/mvn.
1010
if [ -f /etc/java/maven.conf ]; then

modules/maven/8.2.3.6/module.yaml renamed to modules/maven/8.6.3.6.11/module.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
schema_version: 1
22
name: jboss.container.maven
3-
version: '8.2.3.6'
3+
version: '8.6.3.6.11'
44
description: Provides Maven v3.6 capabilities to an image.
55

66
labels:
@@ -19,7 +19,7 @@ modules:
1919

2020
packages:
2121
install:
22-
- maven
22+
- maven-openjdk11
2323

2424
execute:
2525
- script: configure.sh

modules/maven/8.6.3.6.17/configure.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
set -e
3+
4+
# This file is shipped by a Maven package and sets JAVA_HOME to
5+
# an OpenJDK-specific path. This causes problems for OpenJ9 containers
6+
# as the path is not correct for them. We don't need this in any of
7+
# the containers because we set JAVA_HOME in the container metadata.
8+
# Blank the file rather than removing it, to avoid a warning message
9+
# from /usr/bin/mvn.
10+
if [ -f /etc/java/maven.conf ]; then
11+
:> /etc/java/maven.conf
12+
fi

modules/maven/8.6.3.6.17/module.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
schema_version: 1
2+
name: jboss.container.maven
3+
# Version scheme: RHEL major . RHEL minor . Maven major . Maven minor . JDK version
4+
version: '8.6.3.6.17'
5+
description: Provides Maven v3.6 capabilities to an image.
6+
7+
labels:
8+
- name: io.fabric8.s2i.version.maven
9+
value: "3.6"
10+
11+
envs:
12+
- name: JBOSS_CONTAINER_MAVEN_36_MODULE
13+
value: /opt/jboss/container/maven/36/
14+
- name: MAVEN_VERSION
15+
value: "3.6"
16+
17+
modules:
18+
install:
19+
- name: jboss.container.maven.module
20+
21+
packages:
22+
install:
23+
- maven-openjdk17
24+
25+
execute:
26+
- script: configure.sh

ubi8-openjdk-11.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ modules:
4747
- name: jboss.container.prometheus
4848
- name: jboss.container.jolokia
4949
- name: jboss.container.maven
50-
version: "8.2.3.6"
50+
version: "8.6.3.6.11"
5151
- name: jboss.container.util.nss-wrapper
5252
- name: jboss.container.java.s2i.bash
53+
# required due to jolokia
5354
- name: jboss.container.java.singleton-jdk
5455

5556
help:

ubi8-openjdk-17.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ modules:
4646
version: "17"
4747
- name: jboss.container.prometheus
4848
- name: jboss.container.maven
49-
version: "8.2.3.6"
49+
version: "8.6.3.6.17"
5050
- name: jboss.container.java.s2i.bash
51+
# needed for after prometheus
5152
- name: jboss.container.java.singleton-jdk
5253

5354
help:

0 commit comments

Comments
 (0)