On Mar 10, 2008, at 8:39 PM, P.Sathish Kumar wrote:
Hi David,
Thanks for your reply.
In my project, I have one pom.xml to build, in this pom.xml, I
included the xmlbean-maven-plugin to compile xsds and to generate
jar file.
The maven-xmlbeans-plugin does not generate a jar file itself. If
you want a jar file with the generated classes separate from other
classes you need a separate project from the other classes.
My problem is I want to include this generated jar to the
dependecy of the same project. For dependencies maven will search
the repository with artifactId.
You cannot do this in one maven project, you need two. On the other
hand, why do you want a separate jar? If you just include the
xmlbeans plugin the generated stuff will get included in the same jar
as the rest of the project, simplifying the classloading setup when
you try to use the code.
thanks
david jencks
Thanks,
P.Sathish kumar
On 3/10/08, David Jencks <[EMAIL PROTECTED]> wrote:
I don't understand.
If you use the xmlbeans plugin in an existing project the generated
classes get compiled and included in the project's jar
If you have a separate project that just compiles the schemas you get
a jar with just the compiled classes that you can then use as a
dependency in other projects.
What's the problem?
thanks
david jencks
On Mar 10, 2008, at 4:24 AM, P.Sathish Kumar wrote:
> Hi Friends,
>
> I am using the xmlbean-maven-plugin to generate the jar file by
> compiling xsds.
>
> I want to include this created jar file to the dependencies of my
> project.
>
> I have only one POM.xml for my project which contains the goals for
> creating jars and compiling my project.
>
> Pls, Help me to include the created jar file to the dependency of
> my project inorder to compile.
>
> Thanks,
> Sathish
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]