Specifically for a dependency on the J2EE specification api, you can
choose to depend on "geronimo-spec-j2ee" from the repository.

E.g.
      <dependency>
        <groupId>geronimo-spec</groupId>
        <artifactId>geronimo-spec-j2ee</artifactId>
        <version>1.4-rc4</version>
        <scope>provided</scope>
      </dependency>

More generally, to depend on local libraries, use "system" scope:

        <dependency>
          <groupId>activemq</groupId>
      <artifactId>activemq-core</artifactId>
      <version>3.2.1</version>
      <scope>system</scope>
 <systemPath>${basedir}/lib/activemq-3.2.1/activemq-core-3.2.1.jar</systemPath>
    </dependency>


Tim


On 1/27/06, Samuel Liard <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just start with maven 2 and I have some trouble..
>
> I just want to add a dependency to a jar file (a jar
> file in my local machine).
> Something like :
>     <dependency>
>       <groupId>j2ee</groupId>
>       <artifactId>j2ee</artifactId>
>       <version>1.4</version>
>       <scope>compile</scope>
>     </dependency>
> add the j2ee.jar file is in /lib dir...
>
> In maven 1, I use a project.properties to do that :
> maven.jar.override = on
> maven.jar.j2ee = ../LIB/j2ee.jar
>
> In the same direction I want to add dependency whith
> Jonas :
>     <dependency>
>       <groupId>jonas</groupId>
>       <artifactId>jonas</artifactId>
>       <version>4.3.5</version>
>       <scope>compile</scope>
>     </dependency>
> And in a pom file list all jar file use with a jonas
> dependency.
>
> Is it possible ?
> And, more important, how to do that ? :)
>
> Thanks
>
> Samuel Liard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to