]> git.basschouten.com Git - openhab-addons.git/commitdiff
[jsscripting] Fix maven build (#13747)
authorFlorian Hotze <florianh_dev@icloud.com>
Sun, 20 Nov 2022 16:30:23 +0000 (17:30 +0100)
committerGitHub <noreply@github.com>
Sun, 20 Nov 2022 16:30:23 +0000 (17:30 +0100)
This fixed the maven build, that fails because webpack-cli version 5.0.0 doesn’t properly process the given entrypoint.
Instead, webpack tries to use the entrypoint from openhab-js‘ webpack config file.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
bundles/org.openhab.automation.jsscripting/pom.xml

index 8a69afe509151f7eb534856409d822f3b71b1910..3c2659a5494d6f50188a22d65aed67b9c97f8ad6 100644 (file)
@@ -48,9 +48,9 @@
       <plugin>
         <groupId>com.github.eirslett</groupId>
         <artifactId>frontend-maven-plugin</artifactId>
-        <version>1.12.0</version>
+        <version>1.12.1</version>
         <configuration>
-          <nodeVersion>v16.17.1</nodeVersion>
+          <nodeVersion>v16.17.1</nodeVersion> <!-- DO NOT DOWNGRADE: NodeJS < 16 doesn't support Apple Silicon -->
           <workingDirectory>target/js</workingDirectory>
         </configuration>
         <executions>
@@ -67,7 +67,7 @@
               <goal>npm</goal>
             </goals>
             <configuration>
-              <arguments>install ${ohjs.version} webpack webpack-cli</arguments>
+              <arguments>install ${ohjs.version} webpack@5.75.0 webpack-cli@4.10.0</arguments> <!-- webpack-cli >= 5.0.0 doesn't properly process the given entrypoint -->
             </configuration>
           </execution>
           <execution>