Many thanks for the pointers. This is what worked:
<dependency>
<groupId>geronimo-spec</groupId>
<artifactId>geronimo-spec-j2ee</artifactId>
<version>1.4-rc4</version>
</dependency>
I was not sure what to do with the point about using a reference
implementation from Sun. What changes would I make to my pom.xml for that?
Regards
Nathan
-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 12:25 PM
To: Maven Users List; [EMAIL PROTECTED]
Cc: Nicolas Chalumeau
Subject: Re: M2 EJB basics
On 6/9/05, Nathan Sowatskey (nsowatsk) <[EMAIL PROTECTED]> wrote:
> 1 - I would normally (I think) wanted to have been able to refer to
> the file called jboss-j2ee.jar in the $JBOSS_HOME/server/all/lib dir.
> Of course I can copy and rename as I have below, but that doesn't seem
> right. What do other people do here?
You have a few options:
- install in the local repo, as you have
- use a reference implementation - j2ee from sun for compilation
- use geronimo-spec for compilation (it is available in the repo already)
> 2 - It seems as though the relationship between a dependency and a jar
> is 1:1. If I wanted to just add all of the jars in a given directory,
> how would I do that?
Create another dependency with packaging = pom, say j2ee-all, that declared
dependencies on all the others, then refer to that from your projects.
> [INFO]
> G:\nm_poc\ejb\jar\src\main\java\com\cisco\nm\poc\inventory\ejb\Invento
> ry ession.java:[125,15] InventoryQueryResponse(java.util.Collection)
> in com.cisco nm.poc.inventory.util.InventoryQueryResponse cannot be
> applied to ()
This appears to me to be a compile error in your code.
Cheers,
Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]