Skip to content

Commit dd13d25

Browse files
authored
Fix #72 Include JSON schema files in JAR (#73)
Signed-off-by: Andres Almiray <aalmiray@gmail.com>
1 parent 3055c23 commit dd13d25

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

sdk/pom.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,34 @@
8181
</dependencies>
8282

8383
<build>
84+
<resources>
85+
<resource>
86+
<directory>${project.build.directory}/schemas</directory>
87+
</resource>
88+
</resources>
89+
8490
<plugins>
91+
<plugin>
92+
<groupId>org.apache.maven.plugins</groupId>
93+
<artifactId>maven-resources-plugin</artifactId>
94+
<executions>
95+
<execution>
96+
<id>copy-resources</id>
97+
<phase>generate-resources</phase>
98+
<goals>
99+
<goal>copy-resources</goal>
100+
</goals>
101+
<configuration>
102+
<outputDirectory>${project.build.directory}/schemas/spec/schemas</outputDirectory>
103+
<resources>
104+
<resource>
105+
<directory>../spec/schemas</directory>
106+
</resource>
107+
</resources>
108+
</configuration>
109+
</execution>
110+
</executions>
111+
</plugin>
85112
<plugin>
86113
<groupId>org.moditect</groupId>
87114
<artifactId>moditect-maven-plugin</artifactId>

0 commit comments

Comments
 (0)