front end JavaScript library with key obfuscated - mvn clean package - fix for Windows
</dependencies>
</dependencyManagement>
+ <!-- Required by exec-maven-plugin to run NPM *.CMD script on Windows -->
+ <profiles>
+ <profile>
+ <id>Windows</id>
+ <activation>
+ <os>
+ <family>Windows</family>
+ </os>
+ </activation>
+ <properties>
+ <script.extension>.cmd</script.extension>
+ </properties>
+ </profile>
+ <profile>
+ <id>unix</id>
+ <activation>
+ <os>
+ <family>unix</family>
+ </os>
+ </activation>
+ <properties>
+ <script.extension></script.extension>
+ </properties>
+ </profile>
+ </profiles>
+
<build>
<pluginManagement>
<plugins>
</execution>
</executions>
<configuration>
- <executable>./js/node_modules/.bin/javascript-obfuscator</executable>
+
+ <executable>./js/node_modules/.bin/javascript-obfuscator${script.extension}</executable>
<arguments>
<argument>./js/index.js</argument>
<argument>--output</argument>
