Gary,
Is this your own private library or some 3rd party tool? They usually
have different approaches which are all appropriate.
The options are basically the following
1.) try to find it as a dependency available in mvnrepository.com
(i.e. its available in the maven central repo and can be gotten
already from there)
2.) install a copy in your local repository
http://maven.apache.org/plugins/maven-install-plugin/usage.html
mvn install:install-file -Dfile=<location of file> \
-DgroupId=<some-group-id-for-your-jar> \
-DartifactId=<some-name-for-your-jar>
-Dversion=<version-of-your-jar>
and then reference in your pom.xml via
<dependency>
<artifactId>some-name-for-your-jar</artifactId>
<groupId>some-name-for-your-jar</groupId>
<version>version-of-your-jar</version>
</dependency>
3.) probably the easiest (and most effective if you need to deploy
and test on multiple machines locally)
<dependency>
<artifactId>some-name-for-your-jar</artifactId>
<groupId>some-name-for-your-jar</groupId>
<version>version-of-your-jar</version>
<scope>system</scope>
<systemPath>/path/to/your/file.jar</systemPath> <!-- put this
inside the project the dependency is required within. -->
</dependency>
The Last, while easiest, isn't very portable and you;d not be able to
publish the project you use it in into a maven repository for reuse
by others. The most permanent solution is to find a way to have it
deployed into the maven central repository so you can do (1) and all
the users of your library/tool can do (1) as well.
Hope this helps,
Mark
On Sep 10, 2008, at 7:51 PM, Gary Browne wrote:
Hi all
I'm trying to install an add on but not sure how/where to include
the .jar files using maven on 1.5.
Any assistance would be much appreciated.
Thanks
Gary
Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946
----------------------------------------------------------------------
---
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win
great prizes
Grand prize is a trip for two to an Open Source event anywhere in
the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech