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:28:40 GMT
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

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