On Tue, Mar 6, 2012 at 6:24 PM, Markus KARG <mar...@headcrashing.eu> wrote:

> What do you mean with "maps to"?
>

An EJB is a .jar file. If you don't specify any type, jar is the default
and since they share the same extension, Maven is able to resolve the
dependency. One improvement would be to look at the pom file and realize
the packaging is set to ejb and issue a warning in this case.

Feel free to open a Jira for this.

Thanks,
S.


>
> > -----Original Message-----
> > From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> > Sent: Sonntag, 4. März 2012 13:01
> > To: Maven Users List
> > Subject: Re: EAR project produces application.xml, but EJB module is
> > missing
> >
> > Because ejb type maps to jar extension
> >
> > On Sunday, 4 March 2012, Markus KARG <mar...@headcrashing.eu> wrote:
> > > You are right, when adding <type>ejb</type> it is working! I missed
> > > the
> > fact
> > > that maven coordinates include the packaging, while the default
> > > packaging
> > is
> > > <type>jar</type>. The odd thing is that dependency resolution is
> > > working without that. So it actually seems, module resolution is
> > > working correctly while dependency resolution ignores <type>.
> > >
> > > Thanks a lot!
> > > Markus
> > >
> > >> -----Original Message-----
> > >> From: Stephen Coy [mailto:st...@resolvesw.com]
> > >> Sent: Sonntag, 4. März 2012 09:44
> > >> To: Maven Users List
> > >> Subject: Re: EAR project produces application.xml, but EJB module is
> > >> missing
> > >>
> > >> The number one reason I've had this problem in the past is
> > forgetting
> > >> to specify:
> > >>
> > >>       <type>ejb</type>
> > >>
> > >> in the dependency declarations for EJB jars.
> > >>
> > >>
> > >> On 04/03/2012, at 2:33 AM, Markus KARG wrote:
> > >>
> > >> > Maven 3.0.4 is producing application.xml containing <module>
> > >> > entries for some dependencies (RAR modules), but which is missing
> > >> > <module> entries for other dependencies (EJB modules). This is
> > >> > weird as the
> > >> pom
> > >> > more or less is empty. It just contains the dependencies (RAR
> > >> > modules and EJB modules) and Java EE version (6). So I assume one
> > >> > cannot do wrong. Is that a bug in Maven or what the heck is the
> > >> > trick to get
> > >> <module> entries for EJB modules?
> > >> >
> > >>
> > >>
> > >> --------------------------------------------------------------------
> > -
> > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > >> For additional commands, e-mail: users-h...@maven.apache.org
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > >
> > >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to