You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael McGrady <mm...@topiatechnology.com> on 2008/09/19 22:55:35 UTC
Including Local Jar Files in Build Classpath
I want to include some local jar files (located in lib/) in my Maven
build classpath. How do I do that?
MG
Michael McGrady
Senior Engineer
Topia Technology, Inc.
mmcgrady@topiatechnology.com
1 (253) 720-3365
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Including Local Jar Files in Build Classpath
Posted by Stevo Slavić <ss...@gmail.com>.
Hello Michael,
Maybe you should consider a more "Maven way", of installing those libraries
into your local repository by using Maven's install plugin and its
install-file mojo, and then adding them as dependencies in your project's
POM. Check this<http://maven.apache.org/plugins/maven-install-plugin/usage.html>link
on Maven install plugin usage.
Regards,
Stevo.
On Fri, Sep 19, 2008 at 10:55 PM, Michael McGrady <
mmcgrady@topiatechnology.com> wrote:
> I want to include some local jar files (located in lib/) in my Maven build
> classpath. How do I do that?
>
> MG
>
>
> Michael McGrady
> Senior Engineer
> Topia Technology, Inc.
> mmcgrady@topiatechnology.com
> 1 (253) 720-3365
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: Including Local Jar Files in Build Classpath
Posted by Martin Gainty <mg...@hotmail.com>.
store at location used by maven.repo.local
http://maven.apache.org/maven-1.x/plugins/jar/properties.html
e.g.
<localRepository>/path/to/local/repository</localRepository>
]]></configuration>
<description>The ArtifactRepository instance referencing the local artifact
repository.</description>
<cliOptions>
<cliOption>
<key>-Dmaven.repo.local=/path/to/local/repo</key>
<value>Override the local repository location on a per-build basis.</value>
or of course pass in as command line parameter ..
HTH
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> From: mmcgrady@topiatechnology.com
> To: users@maven.apache.org
> Subject: Including Local Jar Files in Build Classpath
> Date: Fri, 19 Sep 2008 13:55:35 -0700
>
> I want to include some local jar files (located in lib/) in my Maven
> build classpath. How do I do that?
>
> MG
>
>
> Michael McGrady
> Senior Engineer
> Topia Technology, Inc.
> mmcgrady@topiatechnology.com
> 1 (253) 720-3365
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
_________________________________________________________________
See how Windows Mobile brings your life together—at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/