You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by RAM <li...@gmail.com> on 2008/09/22 10:49:08 UTC

Problems using XSD

Hi All,

         I have few clarifications using XSD's from multiple Projects using
Maven and then generating Java Objects using XMLBeans Plugin. Any
help/guidance is appreciated:

 I have 2 Projects now.

*Project 1*: Called as XSD-PROJECT which just holds all the xsd's. This
Project builds a "jar" file which contains all the xsd's.

*Project 2: *This Project is a web Project, in which, we have WSDL & 1 more
XSD under WEB-INF.

Our requirement is to use *Project 1* as dependency for *Project 2 *and
generate the Java Objects using XMLBeans plugin for the Project 2. The
generated classes should include all the Java Object for all the XSD's from
both the locations.

We are using XMLBeans 2.3.0 & Maven 2.0.9.

-- 
Thanks,
Ram

Re: Problems using XSD

Posted by RAM <li...@gmail.com>.
Thanks Wayne,

 You correctly mentioned about using Unpack Dependency plugin. I used it &
it resolved my issue.

Thanks for the response.

Regards,
Ram


On 9/22/08, Wayne Fay <wa...@gmail.com> wrote:
>
> What exactly is your question? I read the email twice, and there's no
> question in it.
>
> If the XMLBeans plugin supports reading XSD files from a Jar and
> generating the source, this should be pretty simple with a little
> configuration.
>
> If it does not, you will probably need to use the dependency plugin to
> unpack the XSD jar into Project 2's target folder so the XMLBeans
> plugin has XSD files to work on so it can generate the source
> properly. Or you could modify the XMLBeans plugin source code so it
> supports reading from Jars.
>
> Wayne
>
> On Mon, Sep 22, 2008 at 1:49 AM, RAM <li...@gmail.com> wrote:
> > Hi All,
> >
> >         I have few clarifications using XSD's from multiple Projects
> using
> > Maven and then generating Java Objects using XMLBeans Plugin. Any
> > help/guidance is appreciated:
> >
> >  I have 2 Projects now.
> >
> > *Project 1*: Called as XSD-PROJECT which just holds all the xsd's. This
> > Project builds a "jar" file which contains all the xsd's.
> >
> > *Project 2: *This Project is a web Project, in which, we have WSDL & 1
> more
> > XSD under WEB-INF.
> >
> > Our requirement is to use *Project 1* as dependency for *Project 2 *and
> > generate the Java Objects using XMLBeans plugin for the Project 2. The
> > generated classes should include all the Java Object for all the XSD's
> from
> > both the locations.
> >
> > We are using XMLBeans 2.3.0 & Maven 2.0.9.
> >
> > --
> > Thanks,
> > Ram
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Thanks Ram

Re: Problems using XSD

Posted by Wayne Fay <wa...@gmail.com>.
What exactly is your question? I read the email twice, and there's no
question in it.

If the XMLBeans plugin supports reading XSD files from a Jar and
generating the source, this should be pretty simple with a little
configuration.

If it does not, you will probably need to use the dependency plugin to
unpack the XSD jar into Project 2's target folder so the XMLBeans
plugin has XSD files to work on so it can generate the source
properly. Or you could modify the XMLBeans plugin source code so it
supports reading from Jars.

Wayne

On Mon, Sep 22, 2008 at 1:49 AM, RAM <li...@gmail.com> wrote:
> Hi All,
>
>         I have few clarifications using XSD's from multiple Projects using
> Maven and then generating Java Objects using XMLBeans Plugin. Any
> help/guidance is appreciated:
>
>  I have 2 Projects now.
>
> *Project 1*: Called as XSD-PROJECT which just holds all the xsd's. This
> Project builds a "jar" file which contains all the xsd's.
>
> *Project 2: *This Project is a web Project, in which, we have WSDL & 1 more
> XSD under WEB-INF.
>
> Our requirement is to use *Project 1* as dependency for *Project 2 *and
> generate the Java Objects using XMLBeans plugin for the Project 2. The
> generated classes should include all the Java Object for all the XSD's from
> both the locations.
>
> We are using XMLBeans 2.3.0 & Maven 2.0.9.
>
> --
> Thanks,
> Ram
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org