1. Get yourself a repo manager. I suggest Nexus, but there are others.
2. Deploy the jar to a repo in the manager.
3. Declare the dependency in your pom the normal Maven way.

This has been discussed several times on the list and there are also
numerous blog posts. Here's one:
http://www.sonatype.com/people/2010/08/benefits-of-a-repository-manager-part-ii-caching-and-collaborating/

/Anders

On Wed, Sep 15, 2010 at 10:11, Daniel Rindt <dri...@visetics.com> wrote:

> Am Dienstag, den 14.09.2010, 21:37 +0200 schrieb per-henrik hedman:
> > And given that it's within Tomcat it probably exists at Central, so
> > you won't need to add a repository declaration to your pom.xml.
>
> Hey per,
>
> thanks for your reply. Yes i am talking about a jar, i mentioned as
> package. So the package is always installed on all runtimes. So how can
> i integrate it into my pom.xml properly?
> The jar resides in /usr/share/java/javamail.jar.
>
> Thanks
> Daniel
>

Reply via email to