Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix to include the XSDs in the jar

  • Loading branch information...
commit 6a39ea56aea3f63c5d315cd3d9ecf7967d357b1b 1 parent 787b2d7
@jstrachan jstrachan authored
Showing with 17 additions and 6 deletions.
  1. +17 −6 bai/bai-core/pom.xml
View
23 bai/bai-core/pom.xml
@@ -95,6 +95,21 @@
<build>
<defaultGoal>install</defaultGoal>
+ <resources>
+ <resource>
+ <directory>target/schema</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -173,17 +188,13 @@
</schemagen>
<copy file="${project.build.directory}/schema/bai.xsd"
tofile="${project.build.directory}/schema/bai-v${bai.schema.version}.xsd"/>
- <copy file="${project.build.directory}/schema/bai.xsd"
- tofile="${project.build.directory}/classes/bai.xsd"/>
- <copy file="${project.build.directory}/schema/bai.xsd"
- tofile="${project.build.directory}/classes/bai-v${bai.schema.version}.xsd"/>
<copy file="${user.home}/.m2/repository/org/apache/camel/camel-spring/${camel-version}/camel-spring-${camel-version}.xsd"
- tofile="${project.build.directory}/classes/camel-spring.xsd" failonerror="false"/>
+ tofile="${project.build.directory}/schema/camel-spring.xsd" failonerror="false"/>
<!-- or use a system property to find the local mvn repo -->
<copy file="${maven.repo.local}/org/apache/camel/camel-spring/${camel-version}/camel-spring-${camel-version}.xsd"
- tofile="${project.build.directory}/classes/camel-spring.xsd" failonerror="false"/>
+ tofile="${project.build.directory}/schema/camel-spring.xsd" failonerror="false"/>
<!--
<replace file="${project.build.directory}/schema/bai-v${bai.schema.version}.xsd" token="http://fuse.fusesource.org/schema/bai" value="http://fuse.fusesource.org/schema/bai/v${bai.schema.version}" />
Please sign in to comment.
Something went wrong with that request. Please try again.