|
Re: scomp question: msg#00096text.xml.xmlbeans.user
This is easy to do if you use maven and the [geronimo]-maven-xmlbeans plugin. I think there is a version in xmlbeans source but I don't know if it ever got released. --make sure each xsd is in a separate maven (sub) project -- in each project.xml's dependency section list the modules whose schema you would like to be in the classpath. A dependency should look something like this: <dependency> <groupId>geronimo</groupId> <artifactId>geronimo-connector-builder</artifactId> <version>${pom.currentVersion}</version> <properties> <xmlbeans>true</xmlbeans> </properties> </dependency> the <properties> <xmlbeans>true</xmlbeans> </properties> part puts the dependency jar on the xmlbeans classpath. In your maven.xml add a preGoal like: <preGoal name="java:compile"> <xmlbeans:schema2java sourcedir="${basedir}/src" sourceschema="schema/geronimo-connector_1_5.xsd" xmlconfigs="${basedir}/src/schema/xmlconfig.xml" targetdir="${basedir}/target/xmlbeans" cataloglocation="${basedir}/../j2ee-schema/src/catalog/resolver- catalog.xml"/> </preGoal> indicating which schemas from the current project you wish to compile. There are lots of examples of this in the geronimo project: most xxx-builder modules use this. If nowhere else, the plugin is located at http://www.ibiblio.org/maven/geronimo/plugins/geronimo-xmlbeans-plugin -1.0-M1.jar thanks david jencks On Jan 13, 2005, at 10:54 AM, Dogan Atay wrote: Hi, |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | scomp question: 00096, Dogan Atay |
|---|---|
| Next by Date: | RE: scomp question: 00096, Radu Preotiuc-Pietro |
| Previous by Thread: | scomp questioni: 00096, Dogan Atay |
| Next by Thread: | RE: scomp question: 00096, Radu Preotiuc-Pietro |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |