ได้รับโจทย์ในให้ทำการเขียน Java Custom เพื่ออ่าน File Excel จึงมีความจำเป็นต้องใช้ Library ข้างนอก ซึ่งโดยปกติมันจะเป็น Jar file มาให้
ในขณะที่ทำการ Test Jar ไฟล์นั้น สามารถทำด้วยวิธีการ Hot Deploy ตามนี้
- ไปที่ folder <WebSphere>\AppServer\profiles\ctgAppSrv01\installedApps\ctgCell01\MAXIMO.ear
- เข้าไปที่ lib Folder
- copy Jar File ที่ต้องการเพิ่มเข้าไปใน Folder นี้
- กลับไปที่ folder MAXIMO.ear
- แตกไฟล์ businessobjects.jar เป็น Folder ชื่อ businessobjects.jar
- เปลี่ยนชื่อ file businessobjects.jar เป็นชื่ออื่น เช่น businessobjects.orig
- เข้าไปยัง Folder businessobjects.jar\META-INF
- แก้ไขไฟล์ MANIFEST.mf เพิ่มชื่อ lib ที่เพิ่มเข้าไป
- จากนั้น Restart MXServer
สำหรับการ build ear ไฟล์ให้ทำตามขั้นตอนนี้
1. Place the below Jar File in the path ibm\SMP\maximo\applications\maximo\lib
2. Modify the file buildmaximoear-build.xml under path IBM\SMP\maximo\deployment
Place the path of the new Library file in the tag <property name=”maximo.businessobjectsclasspath” value=”${maximo.propertiesjarfile}
3. Similarly modify the file buildmaximoear.xml under the path IBM\SMP\maximo\deployment
4. Build ear and Deploy ear
อ้างอิง : http://helloworldmaximo.blogspot.com/2017/08/steps-to-add-new-jar-file-in-maximo.html