Skip to content

Commit

Permalink
Fix #72 Include JSON schema files in JAR
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Almiray <[email protected]>
  • Loading branch information
aalmiray committed Feb 13, 2024
1 parent 3055c23 commit a705673
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,34 @@
</dependencies>

<build>
<resources>
<resource>
<directory>${project.build.directory}/schemas</directory>
</resource>
</resources>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/schemas/spec/schemas</outputDirectory>
<resources>
<resource>
<directory>../spec/schemas</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
Expand Down

0 comments on commit a705673

Please sign in to comment.