You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marco Mistroni <mm...@gmail.com> on 2006/03/11 18:09:26 UTC

EJB3/J2EE project using Maven2

Hello all,
 i have done a J2EE project which includes some EJB3, using Maven2.
as of now, main limitation (due to its simplicity) is that i am NOT using
maven-ejb-plugin since i am letting jboss figure out the ejb-jar.xml from
the deployed package
the current project does not use any maven-ejb3 plugins, nor any
maven-par-plugins... but it's a very simple example of a J2EE
project using maven2
Btw, i have copied from a sample that i have downloaded from some
maven repositories
i'd like to send it to the whole list, but i guess it's impractical
if someone is interested, please let me know email and i send it
privately
alternatively, if i can post it to some maven guy so that it ends up in some
repositories, i will be glad to do so

regards
 marco

Re: EJB3/J2EE project using Maven2

Posted by Todd Orr <to...@gmail.com>.
Two different projects is less than ideal. One project should contain
all relevant code and resources. It is a soution, though. Does anybody
have any idea when teh ejb plugin will be upgraded to handle ejb3?
I've seen several patches, but none have made it into any of the
recent releases.

On 4/20/06, Marco Mistroni <mm...@gmail.com> wrote:
> Hello,
>   i'll send out htis evening.... i have it at home
>
> rgds
>  marco
>
> On 4/20/06, Arik Kfir <ar...@gmail.com> wrote:
> >
> > oh, and I link them (inside the EAR) using the manifest of course...
> >
> > all except the client-module go into the ear...
> >
> > On 4/20/06, Arik Kfir <ar...@gmail.com> wrote:
> > >
> > > A seperate project, used both by the server side and the client side:
> > >
> > > myapp
> > >     pom.xml
> > >     persistence-module (contains the entity-beans)
> > >         pom.xml (JAR packaging)
> > >     common-module (contains the interfaces for SLSBs/SFSBs, depends on
> > > persistence-module)
> > >         pom.xml (JAR packaging)
> > >     server-module (contains implementations of SLSBs,depends on
> > > common-module)
> > >         pom.xml (JAR packaging)
> > >     client-module (swing ui, depends on common-module)
> > >         pom.xml
> > >
> > >
> > >
> > > On 4/20/06, Todd Orr <to...@gmail.com> wrote:
> > > >
> > > > How do you handle client jar creation?
> > > >
> > > > On 4/19/06, Arik Kfir <ar...@gmail.com> wrote:
> > > > > Yes a while back I've done the same thing. Ever since the ejb3 spec
> > > > removed
> > > > > the "par" extension and specified that ejb3 should be named "jar"
> > like
> > > > any
> > > > > other classes-related package, I haven't used the
> > > > maven-par/ejb3-plugins
> > > > > (that's cause there's no more ejb-jar.xml file)
> > > > >
> > > > > This does not mean they're obsolete - if you have a big, complex
> > ejb3
> > > > > project you might still need to create an ejb-jar.xml file, in which
> > > > case
> > > > > the maven-jar-plugin does not cut it...
> > > > >
> > > > > On 4/20/06, Todd Orr <to...@gmail.com> wrote:
> > > > > >
> > > > > > I'm also interested in this project.
> > > > > >
> > > > > > On 3/11/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > > > > > > Hello all,
> > > > > > >  i have done a J2EE project which includes some EJB3, using
> > > > Maven2.
> > > > > > > as of now, main limitation (due to its simplicity) is that i am
> > > > NOT
> > > > > > using
> > > > > > > maven-ejb-plugin since i am letting jboss figure out the
> > > > ejb-jar.xmlfrom
> > > > > > > the deployed package
> > > > > > > the current project does not use any maven-ejb3 plugins, nor any
> > > > > > > maven-par-plugins... but it's a very simple example of a J2EE
> > > > > > > project using maven2
> > > > > > > Btw, i have copied from a sample that i have downloaded from
> > some
> > > > > > > maven repositories
> > > > > > > i'd like to send it to the whole list, but i guess it's
> > > > impractical
> > > > > > > if someone is interested, please let me know email and i send it
> > > > > > > privately
> > > > > > > alternatively, if i can post it to some maven guy so that it
> > ends
> > > > up in
> > > > > > some
> > > > > > > repositories, i will be glad to do so
> > > > > > >
> > > > > > > regards
> > > > > > >  marco
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > ______________________________________
> > > > > Cheers,
> > > > >       Arik Kfir                                   arikkfir@gmail.com
> > > > >       Linux user, number 415067 - http://counter.li.org/
> > > > >       http://corleon.dnsalias.org
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > >
> > > ______________________________________
> > > Cheers,
> > >       Arik Kfir                                   arikkfir@gmail.com
> > >       Linux user, number 415067 - http://counter.li.org/
> > >       http://corleon.dnsalias.org
> > >
> >
> >
> >
> > --
> > ______________________________________
> > Cheers,
> >       Arik Kfir                                   arikkfir@gmail.com
> >       Linux user, number 415067 - http://counter.li.org/
> >       http://corleon.dnsalias.org
> >
>
>

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


Re: EJB3/J2EE project using Maven2

Posted by Marco Mistroni <mm...@gmail.com>.
Hello,
  i'll send out htis evening.... i have it at home

rgds
 marco

On 4/20/06, Arik Kfir <ar...@gmail.com> wrote:
>
> oh, and I link them (inside the EAR) using the manifest of course...
>
> all except the client-module go into the ear...
>
> On 4/20/06, Arik Kfir <ar...@gmail.com> wrote:
> >
> > A seperate project, used both by the server side and the client side:
> >
> > myapp
> >     pom.xml
> >     persistence-module (contains the entity-beans)
> >         pom.xml (JAR packaging)
> >     common-module (contains the interfaces for SLSBs/SFSBs, depends on
> > persistence-module)
> >         pom.xml (JAR packaging)
> >     server-module (contains implementations of SLSBs,depends on
> > common-module)
> >         pom.xml (JAR packaging)
> >     client-module (swing ui, depends on common-module)
> >         pom.xml
> >
> >
> >
> > On 4/20/06, Todd Orr <to...@gmail.com> wrote:
> > >
> > > How do you handle client jar creation?
> > >
> > > On 4/19/06, Arik Kfir <ar...@gmail.com> wrote:
> > > > Yes a while back I've done the same thing. Ever since the ejb3 spec
> > > removed
> > > > the "par" extension and specified that ejb3 should be named "jar"
> like
> > > any
> > > > other classes-related package, I haven't used the
> > > maven-par/ejb3-plugins
> > > > (that's cause there's no more ejb-jar.xml file)
> > > >
> > > > This does not mean they're obsolete - if you have a big, complex
> ejb3
> > > > project you might still need to create an ejb-jar.xml file, in which
> > > case
> > > > the maven-jar-plugin does not cut it...
> > > >
> > > > On 4/20/06, Todd Orr <to...@gmail.com> wrote:
> > > > >
> > > > > I'm also interested in this project.
> > > > >
> > > > > On 3/11/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > > > > > Hello all,
> > > > > >  i have done a J2EE project which includes some EJB3, using
> > > Maven2.
> > > > > > as of now, main limitation (due to its simplicity) is that i am
> > > NOT
> > > > > using
> > > > > > maven-ejb-plugin since i am letting jboss figure out the
> > > ejb-jar.xmlfrom
> > > > > > the deployed package
> > > > > > the current project does not use any maven-ejb3 plugins, nor any
> > > > > > maven-par-plugins... but it's a very simple example of a J2EE
> > > > > > project using maven2
> > > > > > Btw, i have copied from a sample that i have downloaded from
> some
> > > > > > maven repositories
> > > > > > i'd like to send it to the whole list, but i guess it's
> > > impractical
> > > > > > if someone is interested, please let me know email and i send it
> > > > > > privately
> > > > > > alternatively, if i can post it to some maven guy so that it
> ends
> > > up in
> > > > > some
> > > > > > repositories, i will be glad to do so
> > > > > >
> > > > > > regards
> > > > > >  marco
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > ______________________________________
> > > > Cheers,
> > > >       Arik Kfir                                   arikkfir@gmail.com
> > > >       Linux user, number 415067 - http://counter.li.org/
> > > >       http://corleon.dnsalias.org
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> >
> > ______________________________________
> > Cheers,
> >       Arik Kfir                                   arikkfir@gmail.com
> >       Linux user, number 415067 - http://counter.li.org/
> >       http://corleon.dnsalias.org
> >
>
>
>
> --
> ______________________________________
> Cheers,
>       Arik Kfir                                   arikkfir@gmail.com
>       Linux user, number 415067 - http://counter.li.org/
>       http://corleon.dnsalias.org
>

Re: EJB3/J2EE project using Maven2

Posted by Arik Kfir <ar...@gmail.com>.
oh, and I link them (inside the EAR) using the manifest of course...

all except the client-module go into the ear...

On 4/20/06, Arik Kfir <ar...@gmail.com> wrote:
>
> A seperate project, used both by the server side and the client side:
>
> myapp
>     pom.xml
>     persistence-module (contains the entity-beans)
>         pom.xml (JAR packaging)
>     common-module (contains the interfaces for SLSBs/SFSBs, depends on
> persistence-module)
>         pom.xml (JAR packaging)
>     server-module (contains implementations of SLSBs,depends on
> common-module)
>         pom.xml (JAR packaging)
>     client-module (swing ui, depends on common-module)
>         pom.xml
>
>
>
> On 4/20/06, Todd Orr <to...@gmail.com> wrote:
> >
> > How do you handle client jar creation?
> >
> > On 4/19/06, Arik Kfir <ar...@gmail.com> wrote:
> > > Yes a while back I've done the same thing. Ever since the ejb3 spec
> > removed
> > > the "par" extension and specified that ejb3 should be named "jar" like
> > any
> > > other classes-related package, I haven't used the
> > maven-par/ejb3-plugins
> > > (that's cause there's no more ejb-jar.xml file)
> > >
> > > This does not mean they're obsolete - if you have a big, complex ejb3
> > > project you might still need to create an ejb-jar.xml file, in which
> > case
> > > the maven-jar-plugin does not cut it...
> > >
> > > On 4/20/06, Todd Orr <to...@gmail.com> wrote:
> > > >
> > > > I'm also interested in this project.
> > > >
> > > > On 3/11/06, Marco Mistroni < mmistroni@gmail.com> wrote:
> > > > > Hello all,
> > > > >  i have done a J2EE project which includes some EJB3, using
> > Maven2.
> > > > > as of now, main limitation (due to its simplicity) is that i am
> > NOT
> > > > using
> > > > > maven-ejb-plugin since i am letting jboss figure out the
> > ejb-jar.xmlfrom
> > > > > the deployed package
> > > > > the current project does not use any maven-ejb3 plugins, nor any
> > > > > maven-par-plugins... but it's a very simple example of a J2EE
> > > > > project using maven2
> > > > > Btw, i have copied from a sample that i have downloaded from some
> > > > > maven repositories
> > > > > i'd like to send it to the whole list, but i guess it's
> > impractical
> > > > > if someone is interested, please let me know email and i send it
> > > > > privately
> > > > > alternatively, if i can post it to some maven guy so that it ends
> > up in
> > > > some
> > > > > repositories, i will be glad to do so
> > > > >
> > > > > regards
> > > > >  marco
> > > > >
> > > > >
> > > >
> > > >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > ______________________________________
> > > Cheers,
> > >       Arik Kfir                                   arikkfir@gmail.com
> > >       Linux user, number 415067 - http://counter.li.org/
> > >       http://corleon.dnsalias.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
>
> ______________________________________
> Cheers,
>       Arik Kfir                                   arikkfir@gmail.com
>       Linux user, number 415067 - http://counter.li.org/
>       http://corleon.dnsalias.org
>



--
______________________________________
Cheers,
      Arik Kfir                                   arikkfir@gmail.com
      Linux user, number 415067 - http://counter.li.org/
      http://corleon.dnsalias.org

Re: EJB3/J2EE project using Maven2

Posted by Arik Kfir <ar...@gmail.com>.
A seperate project, used both by the server side and the client side:

myapp
    pom.xml
    persistence-module (contains the entity-beans)
        pom.xml (JAR packaging)
    common-module (contains the interfaces for SLSBs/SFSBs, depends on
persistence-module)
        pom.xml (JAR packaging)
    server-module (contains implementations of SLSBs,depends on
common-module)
        pom.xml (JAR packaging)
    client-module (swing ui, depends on common-module)
        pom.xml


On 4/20/06, Todd Orr <to...@gmail.com> wrote:
>
> How do you handle client jar creation?
>
> On 4/19/06, Arik Kfir <ar...@gmail.com> wrote:
> > Yes a while back I've done the same thing. Ever since the ejb3 spec
> removed
> > the "par" extension and specified that ejb3 should be named "jar" like
> any
> > other classes-related package, I haven't used the maven-par/ejb3-plugins
> > (that's cause there's no more ejb-jar.xml file)
> >
> > This does not mean they're obsolete - if you have a big, complex ejb3
> > project you might still need to create an ejb-jar.xml file, in which
> case
> > the maven-jar-plugin does not cut it...
> >
> > On 4/20/06, Todd Orr <to...@gmail.com> wrote:
> > >
> > > I'm also interested in this project.
> > >
> > > On 3/11/06, Marco Mistroni <mm...@gmail.com> wrote:
> > > > Hello all,
> > > >  i have done a J2EE project which includes some EJB3, using Maven2.
> > > > as of now, main limitation (due to its simplicity) is that i am NOT
> > > using
> > > > maven-ejb-plugin since i am letting jboss figure out the
> ejb-jar.xmlfrom
> > > > the deployed package
> > > > the current project does not use any maven-ejb3 plugins, nor any
> > > > maven-par-plugins... but it's a very simple example of a J2EE
> > > > project using maven2
> > > > Btw, i have copied from a sample that i have downloaded from some
> > > > maven repositories
> > > > i'd like to send it to the whole list, but i guess it's impractical
> > > > if someone is interested, please let me know email and i send it
> > > > privately
> > > > alternatively, if i can post it to some maven guy so that it ends up
> in
> > > some
> > > > repositories, i will be glad to do so
> > > >
> > > > regards
> > > >  marco
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > ______________________________________
> > Cheers,
> >       Arik Kfir                                   arikkfir@gmail.com
> >       Linux user, number 415067 - http://counter.li.org/
> >       http://corleon.dnsalias.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
______________________________________
Cheers,
      Arik Kfir                                   arikkfir@gmail.com
      Linux user, number 415067 - http://counter.li.org/
      http://corleon.dnsalias.org

Re: EJB3/J2EE project using Maven2

Posted by Todd Orr <to...@gmail.com>.
How do you handle client jar creation?

On 4/19/06, Arik Kfir <ar...@gmail.com> wrote:
> Yes a while back I've done the same thing. Ever since the ejb3 spec removed
> the "par" extension and specified that ejb3 should be named "jar" like any
> other classes-related package, I haven't used the maven-par/ejb3-plugins
> (that's cause there's no more ejb-jar.xml file)
>
> This does not mean they're obsolete - if you have a big, complex ejb3
> project you might still need to create an ejb-jar.xml file, in which case
> the maven-jar-plugin does not cut it...
>
> On 4/20/06, Todd Orr <to...@gmail.com> wrote:
> >
> > I'm also interested in this project.
> >
> > On 3/11/06, Marco Mistroni <mm...@gmail.com> wrote:
> > > Hello all,
> > >  i have done a J2EE project which includes some EJB3, using Maven2.
> > > as of now, main limitation (due to its simplicity) is that i am NOT
> > using
> > > maven-ejb-plugin since i am letting jboss figure out the ejb-jar.xmlfrom
> > > the deployed package
> > > the current project does not use any maven-ejb3 plugins, nor any
> > > maven-par-plugins... but it's a very simple example of a J2EE
> > > project using maven2
> > > Btw, i have copied from a sample that i have downloaded from some
> > > maven repositories
> > > i'd like to send it to the whole list, but i guess it's impractical
> > > if someone is interested, please let me know email and i send it
> > > privately
> > > alternatively, if i can post it to some maven guy so that it ends up in
> > some
> > > repositories, i will be glad to do so
> > >
> > > regards
> > >  marco
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> ______________________________________
> Cheers,
>       Arik Kfir                                   arikkfir@gmail.com
>       Linux user, number 415067 - http://counter.li.org/
>       http://corleon.dnsalias.org
>

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


Re: EJB3/J2EE project using Maven2

Posted by Arik Kfir <ar...@gmail.com>.
Yes a while back I've done the same thing. Ever since the ejb3 spec removed
the "par" extension and specified that ejb3 should be named "jar" like any
other classes-related package, I haven't used the maven-par/ejb3-plugins
(that's cause there's no more ejb-jar.xml file)

This does not mean they're obsolete - if you have a big, complex ejb3
project you might still need to create an ejb-jar.xml file, in which case
the maven-jar-plugin does not cut it...

On 4/20/06, Todd Orr <to...@gmail.com> wrote:
>
> I'm also interested in this project.
>
> On 3/11/06, Marco Mistroni <mm...@gmail.com> wrote:
> > Hello all,
> >  i have done a J2EE project which includes some EJB3, using Maven2.
> > as of now, main limitation (due to its simplicity) is that i am NOT
> using
> > maven-ejb-plugin since i am letting jboss figure out the ejb-jar.xmlfrom
> > the deployed package
> > the current project does not use any maven-ejb3 plugins, nor any
> > maven-par-plugins... but it's a very simple example of a J2EE
> > project using maven2
> > Btw, i have copied from a sample that i have downloaded from some
> > maven repositories
> > i'd like to send it to the whole list, but i guess it's impractical
> > if someone is interested, please let me know email and i send it
> > privately
> > alternatively, if i can post it to some maven guy so that it ends up in
> some
> > repositories, i will be glad to do so
> >
> > regards
> >  marco
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
______________________________________
Cheers,
      Arik Kfir                                   arikkfir@gmail.com
      Linux user, number 415067 - http://counter.li.org/
      http://corleon.dnsalias.org

Re: EJB3/J2EE project using Maven2

Posted by Todd Orr <to...@gmail.com>.
I'm also interested in this project.

On 3/11/06, Marco Mistroni <mm...@gmail.com> wrote:
> Hello all,
>  i have done a J2EE project which includes some EJB3, using Maven2.
> as of now, main limitation (due to its simplicity) is that i am NOT using
> maven-ejb-plugin since i am letting jboss figure out the ejb-jar.xml from
> the deployed package
> the current project does not use any maven-ejb3 plugins, nor any
> maven-par-plugins... but it's a very simple example of a J2EE
> project using maven2
> Btw, i have copied from a sample that i have downloaded from some
> maven repositories
> i'd like to send it to the whole list, but i guess it's impractical
> if someone is interested, please let me know email and i send it
> privately
> alternatively, if i can post it to some maven guy so that it ends up in some
> repositories, i will be glad to do so
>
> regards
>  marco
>
>

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


Re: EJB3/J2EE project using Maven2

Posted by Pete <pe...@gmail.com>.
Hi Marco,

Can you try sending it to me again please. I know yesterday you tried
sending the M1 version, but I never received it.

many thanks
Pete


On 11/03/06, Marco Mistroni <mm...@gmail.com> wrote:
>
> Hello all,
> i have done a J2EE project which includes some EJB3, using Maven2.
> as of now, main limitation (due to its simplicity) is that i am NOT using
> maven-ejb-plugin since i am letting jboss figure out the ejb-jar.xml from
> the deployed package
> the current project does not use any maven-ejb3 plugins, nor any
> maven-par-plugins... but it's a very simple example of a J2EE
> project using maven2
> Btw, i have copied from a sample that i have downloaded from some
> maven repositories
> i'd like to send it to the whole list, but i guess it's impractical
> if someone is interested, please let me know email and i send it
> privately
> alternatively, if i can post it to some maven guy so that it ends up in
> some
> repositories, i will be glad to do so
>
> regards
> marco
>
>