-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frontend-maven-plugin: checksum computation is missing some frontend ressources #10612
Comments
If we don't want to include tests resources, and only skip frontend build, we should use a dedicated maven property (e.g. <plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven-antrun-plugin.version}</version>
<executions>
<execution>
<id>eval-frontend-checksum</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<condition else="false" property="skip.frontend.build" value="true"> and <plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<executions>
<execution>
<id>npm install</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<skip>${skip.frontend.build}</skip>
</configuration>
</execution>
<execution>
<id>build front</id>
<phase>generate-resources</phase>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<skip>${skip.frontend.build}</skip>
<arguments>run build</arguments>
<environmentVariables>
<APP_VERSION>${project.version}</APP_VERSION>
</environmentVariables>
<npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
</configuration>
</execution> |
What do you think about extracting this logic into a dedicated module, instead of keeping in |
This is a good idea! This would also make this checksum logic optional: you can add it only when you need it. |
…n of resources) into a dedicated module See #10612
The
frontend-maven-plugin
module setup thechecksum-maven-plugin
to compute the checksum of frontend resources, and avoid running again all npm tasks (build and tests).However the list of resources is incomplete, and is missing at least:
src/test/webapp/**/*.*
tsconfig.build.json
vite.config.ts
vitest.config.ts
The text was updated successfully, but these errors were encountered: