Skip to content

Commit b18a86e

Browse files
Fix Android CI Java version and Maven plugin classpath
- **Android CI:** - Updated `.github/workflows/scripts-android.yml` to explicitly set `JAVA_HOME` to Java 17 for the `reactivecircus/android-emulator-runner` step. This resolves `UnsupportedClassVersionError` in `sdkmanager` (which requires Java 17+), ensuring the Android SDK and emulator are correctly initialized within the CI container (where the default `JAVA_HOME` is Java 8). - **Maven Plugin:** - Modified `maven/codenameone-maven-plugin/pom.xml` to move `xalan` and `serializer` dependencies to the top of the dependency list. This prioritizes them on the classpath over `codenameone-designer` (a fat jar), resolving a `NoClassDefFoundError: org/apache/xml/serializer/OutputPropertiesFactory` that occurred during CSS compilation in archetype integration tests.
1 parent 6fc2725 commit b18a86e

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/scripts-android.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ jobs:
139139
ls -l /dev/kvm || true
140140
- name: Run Android instrumentation tests
141141
uses: reactivecircus/android-emulator-runner@v2
142+
env:
143+
JAVA_HOME: /usr/lib/jvm/zulu17-ca-amd64
142144
with:
143145
api-level: 31
144146
arch: x86_64

maven/codenameone-maven-plugin/pom.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@
3434
</profiles>
3535

3636
<dependencies>
37+
<dependency>
38+
<groupId>xalan</groupId>
39+
<artifactId>xalan</artifactId>
40+
<version>2.7.3</version>
41+
</dependency>
42+
<dependency>
43+
<groupId>xalan</groupId>
44+
<artifactId>serializer</artifactId>
45+
<version>2.7.3</version>
46+
</dependency>
3747
<dependency>
3848
<groupId>org.jdom</groupId>
3949
<artifactId>jdom2</artifactId>
@@ -219,16 +229,6 @@
219229
<artifactId>maven-model</artifactId>
220230

221231
</dependency>
222-
<dependency>
223-
<groupId>xalan</groupId>
224-
<artifactId>xalan</artifactId>
225-
<version>2.7.3</version>
226-
</dependency>
227-
<dependency>
228-
<groupId>xalan</groupId>
229-
<artifactId>serializer</artifactId>
230-
<version>2.7.3</version>
231-
</dependency>
232232
</dependencies>
233233

234234
<build>

0 commit comments

Comments
 (0)