Browse Source

Add module of poi

master
shihxuancheng 5 years ago
parent
commit
ea6bfdecff
3 changed files with 14 additions and 0 deletions
  1. 7
      wildfly_tml/modules/make_modules.sh
  2. 2
      wildfly_tml/modules/module_poi.xml
  3. 5
      wildfly_tml/modules/module_poi_317.xml

7
wildfly_tml/modules/make_modules.sh

@ -1,5 +1,12 @@
#variablies #variablies
WF_MODULE_PATH=${JBOSS_HOME}'/modules' WF_MODULE_PATH=${JBOSS_HOME}'/modules'
# #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
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
#setup module of wanhai base #setup module of wanhai base
echo 'Download jars of com.wanhai.base=>' echo 'Download jars of com.wanhai.base=>'

2
wildfly_tml/modules/module_poi.xml

@ -0,0 +1,2 @@
<module-alias xmlns="urn:jboss:module:1.3" name="org.apache.poi" target-name="org.apache.poi" target-slot="3.17">
</module-alias>

5
wildfly_tml/modules/module_poi_317.xml

@ -0,0 +1,5 @@
<module xmlns="urn:jboss:module:1.3" name="org.apache.poi" slot="3.17">
<resources>
<resource-root path="poi-3.17.jar"/>
</resources>
</module>
Loading…
Cancel
Save