← Back to team overview

dhis2-devs team mailing list archive

Re: JAR File and External Dependency in POM

 

On Mon, Dec 21, 2009 at 11:36 AM, Hieu Dang Duy
<hieu.hispvietnam@xxxxxxxxx>wrote:

> Dear all,
>
> I've got one jar file how can I embed this into DHIS2 resource with using
> dependency in pom.xml ?
> Anyway, If I have got a few of classes. So how can I make an external
> dependency in pom.xml file ?
>
> Can someone show me that way in step by step ?
>
> Thank you all so much !
>
> --
> Hieu.HISPVietnam
> Good Health !
>

Hi Hieu,

you can either

- use a system dependency and include the jar directly in the source code:
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#System_Dependencies

- if you need it in a web module you can put it under /WEB-INF/lib

- we can create a mvn project out of it and upload it to the dhis2 maven2
repository.


BUT we really try to avoid using JAR dependencies which are not in the Maven
repository. What JAR file are we talking about here?

Lars

Follow ups

References