You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2026/06/04 18:00:20 UTC

(jspwiki) branch master updated: Deactivate wro4j on GH Actions builds, it seems to activate the MBean Server which in turn seems to not be available under some JDKs

This is an automated email from the ASF dual-hosted git repository.

juanpablo-santos pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git


The following commit(s) were added to refs/heads/master by this push:
     new a943fba58 Deactivate wro4j on GH Actions builds, it seems to activate the MBean Server which in turn seems to not be available under some JDKs
a943fba58 is described below

commit a943fba589570a7c1391861e719ee3c822f9f738
Author: Juan Pablo Santos Rodríguez <ju...@gmail.com>
AuthorDate: Thu Jun 4 19:59:58 2026 +0200

    Deactivate wro4j on GH Actions builds, it seems to activate the MBean Server which in turn seems to not be available under some JDKs
---
 .github/workflows/maven.yml | 2 +-
 jspwiki-main/pom.xml        | 2 +-
 jspwiki-markdown/pom.xml    | 2 +-
 jspwiki-war/pom.xml         | 2 +-
 pom.xml                     | 1 +
 5 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index a86733297..39d3b80ba 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -59,7 +59,7 @@ jobs:
         distribution: 'temurin'
         java-version: ${{ matrix.java }}
     - name: Build with Maven
-      run: mvn clean package -T 1C -V -B -Pintegration-tests "-Dplugin.surefire.junit5-tree-reporter.enable-console=true"
+      run: mvn clean package -T 1C -V -B -Pintegration-tests "-Dplugin.surefire.junit5-tree-reporter.enable-console=true -Dplugin.wro4j.default-phase=none"
 #    - name: Dependency scan
 #      run: mvn org.sonatype.ossindex.maven:ossindex-maven-plugin:LATEST:audit
 # token required
diff --git a/jspwiki-main/pom.xml b/jspwiki-main/pom.xml
index bf334e554..9b707e553 100644
--- a/jspwiki-main/pom.xml
+++ b/jspwiki-main/pom.xml
@@ -327,7 +327,7 @@
                 <executions>
                     <execution>
                         <id>buildPlainEditorSyntaxJS</id>
-                        <phase>prepare-package</phase>
+                        <phase>${plugin.wro4j.default-phase}</phase>
                         <goals>
                             <goal>run</goal>
                         </goals>
diff --git a/jspwiki-markdown/pom.xml b/jspwiki-markdown/pom.xml
index bb73d8b23..81f3702e4 100644
--- a/jspwiki-markdown/pom.xml
+++ b/jspwiki-markdown/pom.xml
@@ -152,7 +152,7 @@
         <executions>
           <execution>
             <id>buildPlainEditorSyntaxJS</id>
-            <phase>prepare-package</phase>
+            <phase>${plugin.wro4j.default-phase}</phase>
             <goals>
               <goal>run</goal>
             </goals>
diff --git a/jspwiki-war/pom.xml b/jspwiki-war/pom.xml
index a882be852..64030f68d 100644
--- a/jspwiki-war/pom.xml
+++ b/jspwiki-war/pom.xml
@@ -136,7 +136,7 @@
                 <executions>
                     <execution>
                         <id>buildDefaultJsAndCss</id>
-                        <phase>prepare-package</phase>
+                        <phase>${plugin.wro4j.default-phase}</phase>
                         <goals>
                             <goal>run</goal>
                             <!--<goal>jshint</goal>-->
diff --git a/pom.xml b/pom.xml
index f86c16721..6a1489844 100644
--- a/pom.xml
+++ b/pom.xml
@@ -123,6 +123,7 @@
     <plugin.sonar.version>5.3.0.6276</plugin.sonar.version>
     <plugin.sonar-report.version>0.1</plugin.sonar-report.version>
     <plugin.wro4j.version>2.1.1</plugin.wro4j.version>
+    <plugin.wro4j.default-phase>prepare-package</plugin.wro4j.default-phase>
     <plugin.eclipse-lifecycle-mapping.version>1.0.0</plugin.eclipse-lifecycle-mapping.version>
     <maven.compiler.source>${jdk.version}</maven.compiler.source> <!-- override values from parent pom -->
     <maven.compiler.target>${jdk.version}</maven.compiler.target>