maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samuel Le Berrigaud" <samuel...@gmail.com>
Subject Re: How to specify local dependency in maven2
Date Tue, 04 Mar 2008 07:42:57 GMT
Not that I know of. And I believe there is not.

The maven way of managing dependencies is to declare those in the POM (or to
get them transitively for maven2), using libraries from a directory would go
against that.

Hope it helps.
SaM

On Tue, Mar 4, 2008 at 6:36 PM, Dipankar Ghosal <
dipankar.ghosal@globallogic.com> wrote:

>
>
> Thanks Samuel..
>
> However is there any way to include all libraries that are present in a
> particular folder.
> Say i have 20 odd jars in C:\lib folder?
>
>
>
> Samuel Le Berrigaud wrote:
> >
> > Hi,
> >
> > you would have to use the system scope. See the system dependencies
> > section
> > at
> >
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
> > .
> >
> > However I would recommend you create a private repository internally to
> > your
> > company so that you can more easily share those dependencies with your
> > team.
> > This way those dependencies will work the same way as any other maven
> > dependency. Consistency is good.
> >
> > SaM
> >
> > On Tue, Mar 4, 2008 at 6:00 PM, Dipankar Ghosal <
> > dipankar.ghosal@globallogic.com> wrote:
> >
> >>
> >> I have a WebSphere Portlet project which uses many IBM jars(Available
> at
> >> installation directory in local system).
> >>
> >> I need to use these jars while performing maven build.
> >>
> >> How do i specify the location of the jars so that maven uses the jars
> >> from
> >> local location rather than download from remote repository.
> >>
> >> Is there any option like specifying the local jars in
> >> project.properties(available in maven 1.1)
> >> ################################################
> >> #
> >> # Register local jar files to maven. This prevents maven from
> >> # trying to download these dependencies
> >> #
> >> ################################################
> >> maven.jar.wps = ${wps.home}/wps.jar
> >> maven.jar.jsr168-api = ${wps.home}/shared/app/jsr168-api.jar
> >>
> >> Any help will be appreciated
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/How-to-specify-local-dependency-in-maven2-tp15821419s177p15821419.html
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> > --
> > Samuel Le Berrigaud
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-specify-local-dependency-in-maven2-tp15821419s177p15821761.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Samuel Le Berrigaud

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message