Output Vite build directly into Maven target directory (#30490)

Signed-off-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
Jon Koops 2024-06-19 14:36:04 +02:00 committed by GitHub
parent dc109381e1
commit 2b35b4430c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 2 additions and 16 deletions

View file

@ -56,13 +56,6 @@
<resource>
<directory>maven-resources</directory>
</resource>
<resource>
<directory>dist</directory>
<targetPath>theme/keycloak.v3/account/resources</targetPath>
<excludes>
<exclude>index.html</exclude>
</excludes>
</resource>
</resources>
<plugins>

View file

@ -31,6 +31,7 @@ export default defineConfig(({ mode }) => {
port: 5173,
},
build: {
outDir: "target/classes/theme/keycloak.v3/account/resources",
...lib,
sourcemap: true,
target: "esnext",

View file

@ -56,13 +56,6 @@
<resource>
<directory>maven-resources</directory>
</resource>
<resource>
<directory>dist</directory>
<targetPath>theme/keycloak.v2/admin/resources</targetPath>
<excludes>
<exclude>index.html</exclude>
</excludes>
</resource>
</resources>
<plugins>

View file

@ -10,6 +10,7 @@ export default defineConfig({
port: 5174,
},
build: {
outDir: "target/classes/theme/keycloak.v2/admin/resources",
sourcemap: true,
target: "esnext",
modulePreload: false,

View file

@ -26,7 +26,5 @@
<properties>
<!-- The JavaScript projects use the non-standard 'src' folder for their sources, therefore, name it here explicitly -->
<maven.build.cache.input.1>src</maven.build.cache.input.1>
<!-- The child projects will package from the 'dist' folder, which is listed as a resource, but isn't a source folder -->
<maven.build.cache.exclude.value.1>dist</maven.build.cache.exclude.value.1>
</properties>
</project>