You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by EDH <ed...@eds.com> on 2009/10/30 17:57:39 UTC
Re: maven xmlbeans problem
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 <yo...@gmail.com>
>> 27-08-2009 02:48
>> Please respond to
>> "Maven Users List" <us...@maven.apache.org>
>>
>>
>> To
>> users@maven.apache.org
>> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>>
>
--
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org