Skip to content

Commit 35454bd

Browse files
committed
[OPENJDK-4152] Add Maven 25 module
Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 5f81c17 commit 35454bd

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

modules/maven/25/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/25/module.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
schema_version: 1
2+
name: jboss.container.maven
3+
version: '3.9.25'
4+
description: Provides Maven v3.9 capabilities to an image.
5+
6+
envs:
7+
- name: JBOSS_CONTAINER_MAVEN_39_MODULE
8+
value: /opt/jboss/container/maven/39/
9+
- name: MAVEN_VERSION
10+
value: '3.9'
11+
12+
modules:
13+
install:
14+
- name: jboss.container.maven.module
15+
16+
packages:
17+
install:
18+
- maven-openjdk25
19+
20+
execute:
21+
- script: configure.sh

0 commit comments

Comments
 (0)