edh wrote: > > What if I have one module that contains xsd's that are included in other > xsd's which are part of other modules ? > E.g. > myapp > pom.xml > domainx\src\main\xsd\domain.xsd > pom.xml (type.jar) > service1 > service1\src\main\xsd\service1.xsd > pom.xml (type.jar > service2 > service2\src\main\xsd\service2.xsd > pom.xml (type.jar > > service1 and service2 xsd's include domain.xsd. > > How can I generate source and class files for/from service1 and service2 > xsd's knowing that they include domain.xsd which is in another module ? > > > Nicolas Duminil wrote: >> >> You need to have a master pom with the packaging of type "pom". Your >> configure.jar would be a module of this master pom having the packaging >> of >> type "jar". This way, every time you build, if something has changed in >> the configure.jar sources, this artefact will be rebuilt and redeployed. >> And yes, when the XSD changes, you have to rebuild the jar and, >> consequently, the associated maven artefact, doesn't it sound obvious to >> you ? >> >> >> >> youhaodeyi <[email protected]> >> 27-08-2009 02:48 >> Please respond to >> "Maven Users List" <[email protected]> >> >> >> To >> [email protected] >> cc >> >> Subject >> Re: maven xmlbeans problem >> >> >> >> >> >> >> >> How can I create the first module? Do you mean I run the command "mvn >> install" on the configure.jar file? >> If so, every time the xsd file changed, I have to install the >> cnofigure.jar >> file manually. >> >> Nicolas Duminil wrote: >>> >>> You have to have a main pom having two modules: the first one installs >>> your configure.jar as an artefact in your local repository. The second >> one >>> is the one you've showed, to which you add a dependency to the previous >>> generated artefact. >>> >>> Nicolas >>> >> >> -- >> View this message in context: >> http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25164219.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> >> >
-- View this message in context: http://old.nabble.com/maven-xmlbeans-problem-tp25149630p26133539.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
