Skip to content

Commit eb5343e

Browse files
committed
[OPENJDK-1569] Update Maven modules to 3.8, simplify version scheme
Update all references to the 3.6 AppStream for Maven to 3.8. Modify the version scheme used for our cekit maven modules. The prior scheme, dating from the days when we maintained RHEL7 and RHEL8 images in the same branch, encoded a triplet of RHEL major version; Maven version; JDK major version into a single version string, conforming to a specification that limited us to integers separated by '.'. E.g. 8.6.3.6.11 => RHEL 8.6, Maven 3.6, JDK11 Now that we are separating out image sources by RHEL major version, we can get rid of the first part of the version string to simplify things. Since this commit replaces a single maven version across the whole branch (3.6) with another (3.8), we also do not need to mention it in the module version. Instead, just mention the JDK major version. singleton-jdk module no longer needed for the ubi8/openjdk-17 image. Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 8da45db commit eb5343e

File tree

12 files changed

+42
-44
lines changed

12 files changed

+42
-44
lines changed
File renamed without changes.

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

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

66
labels:
77
- name: io.fabric8.s2i.version.maven
88
value: "3.6"
99

1010
envs:
11-
- name: JBOSS_CONTAINER_MAVEN_36_MODULE
12-
value: /opt/jboss/container/maven/36/
11+
- name: JBOSS_CONTAINER_MAVEN_38_MODULE
12+
value: /opt/jboss/container/maven/38/
1313
- name: MAVEN_VERSION
14-
value: "3.6"
14+
value: "3.8"
1515

1616
modules:
1717
install:
File renamed without changes.

modules/maven/8.6.3.6.17/module.yaml renamed to modules/maven/17/module.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
schema_version: 1
22
name: jboss.container.maven
33
# 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.
4+
version: '17'
5+
description: Provides Maven v3.8 capabilities to an image.
66

77
labels:
88
- name: io.fabric8.s2i.version.maven
99
value: "3.6"
1010

1111
envs:
12-
- name: JBOSS_CONTAINER_MAVEN_36_MODULE
13-
value: /opt/jboss/container/maven/36/
12+
- name: JBOSS_CONTAINER_MAVEN_38_MODULE
13+
value: /opt/jboss/container/maven/38/
1414
- name: MAVEN_VERSION
15-
value: "3.6"
15+
value: '3.8'
1616

1717
modules:
1818
install:
1919
- name: jboss.container.maven.module
20+
version: '3.8'
2021

2122
packages:
2223
install:

modules/maven/8.2.3.6.8/module.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.
File renamed without changes.

modules/maven/8/module.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
schema_version: 1
2+
name: jboss.container.maven
3+
version: '8'
4+
description: Provides Maven v3.8 capabilities to an image.
5+
6+
labels:
7+
- name: io.fabric8.s2i.version.maven
8+
value: "3.8"
9+
10+
envs:
11+
- name: JBOSS_CONTAINER_MAVEN_38_MODULE
12+
value: /opt/jboss/container/maven/38/
13+
- name: MAVEN_VERSION
14+
value: "3.8"
15+
16+
modules:
17+
install:
18+
- name: jboss.container.maven.module
19+
20+
packages:
21+
install:
22+
- maven-openjdk8
23+
24+
execute:
25+
- script: configure.sh
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[maven]
22
name=maven
3-
stream=3.6
3+
stream=3.8
44
profiles=
55
state=enabled

modules/maven/module/module.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
schema_version: 1
22
name: jboss.container.maven.module
3-
version: '3.6'
3+
version: '3.8'
44
description: ^
5-
Enables the AppStream RPM Module for Maven 3.6 packages.
5+
Enables the AppStream RPM Module for Maven 3.8 packages.
66

77
execute:
88
- script: configure.sh

ubi8-openjdk-11.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ modules:
4747
version: "8.6.11"
4848
- name: jboss.container.jolokia
4949
- name: jboss.container.maven
50-
version: "8.6.3.6.11"
50+
version: "11"
5151
- name: jboss.container.java.s2i.bash
5252
- name: jboss.container.util.pkg-update
5353
# required due to jolokia

0 commit comments

Comments
 (0)