Update custom Maven build cache configuration for js directory

Closes #35669

Signed-off-by: Jon Koops <jonkoops@gmail.com>
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
This commit is contained in:
Jon Koops 2024-12-10 11:07:02 +01:00 committed by GitHub
parent 27b0bf5791
commit 55c714a89a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 45 deletions

View File

@ -41,6 +41,8 @@
<runAlways> <runAlways>
<plugins> <plugins>
<plugin artifactId="maven-failsafe-plugin"/> <plugin artifactId="maven-failsafe-plugin"/>
<!-- The Maven Frontend plugin will build all JS parts in the subfolders, and has its own caching, therefore, run it always -->
<plugin groupId="com.github.eirslett" artifactId="frontend-maven-plugin"/>
</plugins> </plugins>
<goalsLists> <goalsLists>
<goalsList artifactId="maven-install-plugin"> <goalsList artifactId="maven-install-plugin">

View File

@ -25,28 +25,11 @@
</property> </property>
</activation> </activation>
<build> <build>
<plugins> <resources>
<plugin> <resource>
<artifactId>maven-resources-plugin</artifactId> <directory>maven-resources-community</directory>
<executions> </resource>
<execution> </resources>
<id>copy-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>maven-resources-community</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build> </build>
</profile> </profile>
<profile> <profile>

View File

@ -25,28 +25,11 @@
</property> </property>
</activation> </activation>
<build> <build>
<plugins> <resources>
<plugin> <resource>
<artifactId>maven-resources-plugin</artifactId> <directory>maven-resources-community</directory>
<executions> </resource>
<execution> </resources>
<id>copy-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>maven-resources-community</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build> </build>
</profile> </profile>
<profile> <profile>

View File

@ -27,8 +27,10 @@
<properties> <properties>
<node.version>v22.11.0</node.version> <node.version>v22.11.0</node.version>
<pnpm.version>9.14.4</pnpm.version> <pnpm.version>9.14.4</pnpm.version>
<!-- The JavaScript projects use the non-standard 'src' folder for their sources, therefore, name it here explicitly --> <!-- The JavaScript projects use non-standard folders for their sources, therefore, name it here explicitly -->
<maven.build.cache.input.1>src</maven.build.cache.input.1> <maven.build.cache.input.1>src</maven.build.cache.input.1>
<maven.build.cache.input.2>public</maven.build.cache.input.2>
<maven.build.cache.input.3>scripts</maven.build.cache.input.3>
</properties> </properties>
<build> <build>