Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<version.hibernate>5.3.20.Final</version.hibernate>
<version.undertow>2.2.5.Final</version.undertow>
<version.httpcomponents>4.5.13</version.httpcomponents>
<build.args>clean install -DskipTests</build.args>
</properties>

<scm>
Expand Down Expand Up @@ -247,6 +248,38 @@

<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.39.1</version>
<inherited>false</inherited>
<configuration>
<!-- <dockerHost>unix:///run/user/1000/podman/podman.sock</dockerHost>-->
<images>
<image>
<name>quay.io/mrizzi/windup-builder:20220307182148CET</name>
<run>
<volumes>
<bind>
<volume>./:/${project.artifactId}:Z</volume>
<volume>${user.home}/.m2:${user.home}/.m2:Z</volume>
</bind>
</volumes>
<log>
<prefix>Container build::</prefix>
<color>blue</color>
</log>
<user>root</user>
<cmd>mvn --settings /${project.artifactId}/settings.xml -Dorg.apache.maven.user-settings=/${project.artifactId}/settings.xml -Dmaven.repo.local=${user.home}/.m2/repository ${build.args} -f /${project.artifactId}</cmd>
<wait>
<log>Finished at:</log>
<time>28800000</time>
</wait>
</run>
</image>
</images>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down
80 changes: 50 additions & 30 deletions ui-pf4/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

<properties>
<webpack.environment>development</webpack.environment>
<node.version>v12.22.9</node.version>
<yarn.version>v1.22.17</yarn.version>
<frontend-maven-plugin.version>1.12.1</frontend-maven-plugin.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -205,62 +208,79 @@
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<configuration>
<workingDirectory>src/main/webapp</workingDirectory>
<installDirectory>${project.build.directory}</installDirectory>
</configuration>
<executions>
<execution>
<id>npm-install</id>
<phase>compile</phase>
<id>install node and npm</id>
<goals>
<goal>exec</goal>
<goal>install-node-and-yarn</goal>
</goals>

<configuration>
<executable>yarn</executable>
<workingDirectory>src/main/webapp</workingDirectory>
<arguments>
<argument>install</argument>
</arguments>
<nodeVersion>${node.version}</nodeVersion>
<yarnVersion>${yarn.version}</yarnVersion>
</configuration>
</execution>
<execution>
<id>yarn install</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>yarn-install</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>

<execution>
<id>webpack-build</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
<goal>yarn</goal>
</goals>

<configuration>
<executable>yarn</executable>
<workingDirectory>src/main/webapp</workingDirectory>
<environmentVariables>
<NODE_ENV>production</NODE_ENV>
</environmentVariables>
<arguments>
<argument>build</argument>
<argument>--profile</argument>
</arguments>
<arguments>build --profile</arguments>
</configuration>
</execution>

<execution>
<id>webpack-build-freemarker</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
<goal>yarn</goal>
</goals>

<configuration>
<executable>yarn</executable>
<workingDirectory>src/main/webapp</workingDirectory>
<arguments>
<argument>build:freemarker</argument>
</arguments>
<arguments>build:freemarker</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>nodejs10</id>
<properties>
<node.version>v10.24.1</node.version>
</properties>
</profile>
<profile>
<id>nodejs14</id>
<properties>
<node.version>v14.19.0</node.version>
</properties>
</profile>
</profiles>
</project>