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 ?
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 ?
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 ?
The suggestions by both Lars and Saptarshi might help … but why you wanted to do it through jar?
You said you only have few classes, so my suggestion would be - to put then in either support-system or options. In fact we could suggest a better location if you could tell us what these classes are doing?
Thank you,
Abyot.
···
On Mon, Dec 21, 2009 at 11:55 AM, Saptarshi Purkayastha sunbiz@gmail.com wrote:
There are a few ways to do it, although I would avoid putting more libraries into trunk without a lot of contemplation
Anyways, the steps follow (using the normal Java pattern of things, don’t know if DHIS2 follows a different style) :
1.) Place the lib jar into: /src/main/webapp/WEB-INF/lib/mylib.jar
2.) add the dependency (mylib.jar) into pom.xml as follows:
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 ?
Yup, maybe you have been seen this dependency before. If we use maven to build this so after downloaded the package as poi-ooxml***-3.5-FINAL*****.jar** Maven will automatically download another package is that ooxml-schemas-1.0.jar with over **14MB
**Because poi-ooxml-3.5-FINAL has got a pom file with structure like this:
**<dependencies>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.5-FINAL</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>ooxml-schemas</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId></artifactId>
<version>1.6.1</version>
</dependency>
</dependencies>**
You can see the highlight dependency as above.
Thanks !
···
On Mon, Dec 21, 2009 at 5:45 PM, Lars Helge Øverland larshelge@gmail.com wrote:
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 ?