Skip to content

Commit 6155061

Browse files
committed
Improve the docs.
Since we use precompiled binary content parts, we need to copy those resources next to the compiled class files (the maven plugin doesn't do that for us)
1 parent 8a86aaa commit 6155061

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

docs/pre-compiling.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,32 @@ Use [binary encoding] for maximum performance! To activate it with precompiled t
264264
<configuration>
265265
<binaryStaticContent>true</binaryStaticContent>
266266
...
267+
</plugin>
268+
269+
<!-- Since we use precompiled binary content parts, we need to copy those resources next to the compiled class files (the maven plugin doesn't do that for us) -->
270+
<plugin>
271+
<artifactId>maven-resources-plugin</artifactId>
272+
<executions>
273+
<execution>
274+
<phase>process-classes</phase>
275+
<goals>
276+
<goal>copy-resources</goal>
277+
</goals>
278+
<configuration>
279+
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
280+
<resources>
281+
<resource>
282+
<directory>${project.basedir}/target/generated-sources/jte</directory>
283+
<includes>
284+
<include>**/*.bin</include>
285+
</includes>
286+
<filtering>false</filtering>
287+
</resource>
288+
</resources>
289+
</configuration>
290+
</execution>
291+
</executions>
292+
</plugin>
267293
```
268294

269295
=== "Gradle"

0 commit comments

Comments
 (0)