How to use buckminster to add an external jar library for IDempiere

393 views
Skip to first unread message

Kevin Yang

unread,
Jan 7, 2014, 8:01:59 AM1/7/14
to idem...@googlegroups.com
Hi Community,

As I looked into "/targetPlatform", I found that there are so many JARs in "/targetPlatform/plugins", Such as org.apache.poi_3.7.0.jar, org.apache.commons.logging_1.0.4.v201101211617.jar, etc.
I know they were downloaded when I installed IDempiere though Buckminster. 

Currently, I need to include org.apache.poi.ooxml(poi-ooxml) to parse Excel 2007, But this time I don't want to add an new project and export the APIs. I want to try the way as include POI though Buckminster.
After I looked into  adempiere.cquery and adempiere.rmap, I have tried to add

<cq:advisorNode namePattern="^org\.apache\.poi\.ooxml$" componentType="osgi.bundle" versionOverride="[3.7.0,4.0.0)"/>  in adempiere.cquery, 
<rm:locator pattern="^org\.apache\.poi\.ooxml$" searchPathRef="workspace.bundle.jar"/> in adempiere.rmap.

All this two are added before the original POI's. And then I clicked "Resolved and materialize", but the poi-ooxml is still not appear.
I am new with Buckminster. Would you please give me some suggestions if you know how to do it? 

Thank you very much to view my topic.

Best Regards,
Kevin

Kevin Yang

unread,
Jan 7, 2014, 12:58:57 PM1/7/14
to idem...@googlegroups.com
I have down load the poi-ooxml from https://www.versioneye.com/java/org.apache.servicemix.bundles:org.apache.servicemix.bundles.poi/3.9_2, And I copy it to the targetPlatform, It can work. but there is still some dependencies required list as below

CurrentRequired
1.91.5commons-codec : commons-codec
3.93.9org.apache.poi : poi-ooxml-schemas
2.6.02.3.0org.apache.xmlbeans : xmlbeans
1.0.11.0.1stax : stax-api
1.6.11.6.1dom4j : dom4j
2.0.21.0.b2xml-apis : xml-apis

commons-codec is existing in ID with version 1.3.0. lower than the required version 1.5. How can I handle this conflict? Can I update commons-codec's version from 1.3 to 1.9? Or Can I manage them with buckminster?

Reply all
Reply to author
Forward
0 new messages