xsd not included in jar

12 views
Skip to first unread message

kwark

unread,
Sep 25, 2009, 11:00:35 AM9/25/09
to spring-modules-fork
Hello,

It looks like the xsds, f.e. springmodules-ehcache.xsd are not
included in the latest SNAPSHOT build jar.
Can you fix this, please? Otherwise I can't use <ehcache:config> and
other related tags in my applicationcontext.

Thanks,

Peter

Jason Thrasher

unread,
Sep 25, 2009, 11:48:52 AM9/25/09
to spring-modules-fork
Peter,
I'm not familiar with the ehcache module itself, but you could try
updating the XSD url to point to one here:
http://www.springmodules.org/
http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd
Note that this is a 0.9-SNAPSHOT version. Paul Davis is kindly
hosting those files after having the same frustrations that you have.

Jason

Stefan Engel

unread,
Oct 8, 2009, 8:40:44 AM10/8/09
to spring-modules-fork
Hi,
the XSDs are referenced in META-INF/spring.schemas. In the former
versions of spring-modules (e.g.0.8), the now missing XSDs were
included in the jar in the config packages in
org.springmodules.cache.config (ehcache, gigaspaces, ...). Currently
the XSDs aren't packaged. To add the missing XSDs to the jar when
packaging, you have to add the following <build>-snippet to the
pom.xml in "projects/spring-modules-cache". This fragment tells maven
to copy the necessary resources to the correct places.

--snip--
diff --git a/projects/spring-modules-cache/pom.xml b/projects/spring-
modules-cache/pom.xml
index f00e75b..6a06a50 100644
--- a/projects/spring-modules-cache/pom.xml
+++ b/projects/spring-modules-cache/pom.xml
@@ -11,7 +11,24 @@
<artifactId>spring-modules-cache</artifactId>
<version>0.10-SNAPSHOT</version>
<packaging>jar</packaging>
-
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**/*.xsd</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
+ </build>
+
<dependencies>
<dependency>
<groupId>opensymphony</groupId>
--snip--

Stefan

astubbs

unread,
Oct 30, 2009, 3:02:05 AM10/30/09
to spring-modules-fork, seng...@googlemail.com
Stefan, if you want decent credit, submit it as a git patch as opposed
to diff and you'll get proper author credit. Either that or do a pull
request and it'll get in faster... There's quite a queue!
Either that, or someone else apply this patch and push it into your
github and it'll eventually come form there..
Reply all
Reply to author
Forward
0 new messages