Re: EAR project produces application.xml, but EJB module is missing

2012-04-19 Thread Stephane Nicoll
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 typeejb/type it is working! I missed
   the
  fact
   that maven coordinates include the packaging, while the default
   packaging
  is
   typejar/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:
  
 typeejb/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




Re: EAR project produces application.xml, but EJB module is missing

2012-04-19 Thread Barrie Treloar
On Fri, Apr 20, 2012 at 2:06 PM, Stephane Nicoll
stephane.nic...@gmail.com wrote:
 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.

Don't forget the patch and tests please.
That will improve the chances of being included.

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



RE: EAR project produces application.xml, but EJB module is missing

2012-03-06 Thread Markus KARG
What do you mean with maps to?

 -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 typeejb/type it is working! I missed
  the
 fact
  that maven coordinates include the packaging, while the default
  packaging
 is
  typejar/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:
 
typeejb/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



Re: EAR project produces application.xml, but EJB module is missing

2012-03-04 Thread Stephen Coy
The number one reason I've had this problem in the past is forgetting to 
specify:

typeejb/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



RE: EAR project produces application.xml, but EJB module is missing

2012-03-04 Thread Markus KARG
You are right, when adding typeejb/type it is working! I missed the fact
that maven coordinates include the packaging, while the default packaging is
typejar/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:
 
   typeejb/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



Re: EAR project produces application.xml, but EJB module is missing

2012-03-04 Thread Stephen Connolly
Because ejb type maps to jar extension

On Sunday, 4 March 2012, Markus KARG mar...@headcrashing.eu wrote:
 You are right, when adding typeejb/type it is working! I missed the
fact
 that maven coordinates include the packaging, while the default packaging
is
 typejar/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:

   typeejb/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