Browse Source

Add dependencies for poi module

master
shihxuancheng 5 years ago
parent
commit
c96a3d1b36
4 changed files with 58 additions and 2 deletions
  1. 17
      wildfly_tml/modules/make_modules.sh
  2. 5
      wildfly_tml/modules/module_collections4.xml
  3. 22
      wildfly_tml/modules/module_poi_317.xml
  4. 16
      wildfly_tml/modules/module_xmlbeans.xml

17
wildfly_tml/modules/make_modules.sh

@ -1,9 +1,24 @@
#variablies
WF_MODULE_PATH=${JBOSS_HOME}'/modules'
# #setup module of apache commons collections4
echo 'Download jars of org.apache.commons.collections4=>'
mkdir -p ${WF_MODULE_PATH}/org/apache/commons/collections4/main
curl -# -o ${WF_MODULE_PATH}/org/apache/commons/collections4/main/commons-collections4-4.1.jar http://khhwtml02t.wanhai.com:8181/repository/maven-public/org/apache/commons/commons-collections4/4.1/commons-collections4-4.1.jar
cp ./module_collections4.xml ${WF_MODULE_PATH}/org/apache/commons/collections4/main/module.xml
# #setup module of apache xmlbeans
echo 'Download jars of org.apache.xmlbeans=>'
mkdir -p ${WF_MODULE_PATH}/org/apache/xmlbeans/main
curl -# -o ${WF_MODULE_PATH}/org/apache/xmlbeans/main/xmlbeans-2.6.0.jar http://khhwtml02t.wanhai.com:8181/repository/maven-public/org/apache/xmlbeans/xmlbeans/2.6.0/xmlbeans-2.6.0.jar
cp ./module_xmlbeans.xml ${WF_MODULE_PATH}/org/apache/xmlbeans/main/module.xml
# #setup module of poi
echo 'Download jars of org.apache.poi=>'
mkdir -p ${WF_MODULE_PATH}/org/apache/poi/3.17/main
curl -# -o ${WF_MODULE_PATH}/org/apache/poi/3.17/main/poi-3.17.jar https://repo1.maven.org/maven2/org/apache/poi/poi/3.17/poi-3.17.jar
curl -# -o ${WF_MODULE_PATH}/org/apache/poi/3.17/main/poi-3.17.jar http://khhwtml02t.wanhai.com:8181/repository/maven-public/org/apache/poi/poi/3.17/poi-3.17.jar
curl -# -o ${WF_MODULE_PATH}/org/apache/poi/3.17/main/poi-ooxml-3.17.jar http://khhwtml02t.wanhai.com:8181/repository/maven-public/org/apache/poi/poi-ooxml/3.17/poi-ooxml-3.17.jar
curl -# -o ${WF_MODULE_PATH}/org/apache/poi/3.17/main/poi-ooxml-schemas-3.17.jar http://khhwtml02t.wanhai.com:8181/repository/maven-public/org/apache/poi/poi-ooxml-schemas/3.17/poi-ooxml-schemas-3.17.jar
cp ./module_poi_317.xml ${WF_MODULE_PATH}/org/apache/poi/3.17/main/module.xml
#setup default slot of poi module(default is 3.17)
mkdir ${WF_MODULE_PATH}/org/apache/poi/main && cp ./module_poi.xml ${WF_MODULE_PATH}/org/apache/poi/main/module.xml

5
wildfly_tml/modules/module_collections4.xml

@ -0,0 +1,5 @@
<module xmlns="urn:jboss:module:1.3" name="org.apache.commons.collections4">
<resources>
<resource-root path="commons-collections4-4.1.jar"/>
</resources>
</module>

22
wildfly_tml/modules/module_poi_317.xml

@ -1,5 +1,25 @@
<module xmlns="urn:jboss:module:1.3" name="org.apache.poi" slot="3.17">
<resources>
<resource-root path="poi-3.17.jar"/>
<resource-root path="poi-3.17.jar"/>
<resource-root path="poi-ooxml-3.17.jar"/>
<resource-root path="poi-ooxml-schemas-3.17.jar"/>
</resources>
<dependencies>
<module name="org.apache.commons.collections4"/>
<module name="org.apache.xmlbeans"/>
<system export="true">
<paths>
<path name="org/xml/sax"/>
<path name="org/xml/sax/helpers"/>
<path name="org/w3c/dom"/>
<path name="javax/xml/stream"/>
<path name="javax/xml/stream/events"/>
<path name="javax/xml/namespace"/>
<path name="javax/xml/parsers"/>
<path name="javax/xml/transform"/>
<path name="javax/xml/transform/dom"/>
<path name="javax/xml/transform/stream"/>
</paths>
</system>
</dependencies>
</module>

16
wildfly_tml/modules/module_xmlbeans.xml

@ -0,0 +1,16 @@
<module xmlns="urn:jboss:module:1.3" name="org.apache.xmlbeans" slot="2.6.0">
<resources>
<resource-root path="xmlbeans-2.6.0.jar"/>
</resources>
<dependencies>
<system export="true">
<paths>
<path name="org/xml/sax"/>
<path name="org/xml/sax/ext"/>
<path name="org/w3c/dom"/>
<path name="javax/xml/stream"/>
<path name="javax/xml/namespace"/>
</paths>
</system>
</dependencies>
</module>
Loading…
Cancel
Save