วันพุธที่ 30 เมษายน พ.ศ. 2557

Config Maven สำหรับ Websphere

เป็นการ Config Eclipse เพิ่มเติมสำหรับ Add Reference Websphere  ครับ
โดยเพิ่ม ข้อมูลตามนี้ แยกตามแต่ละชนิดของ Application (ในส่วน additionalProjectFacets) แล้วใส่เลขเวอร์ชั่นของ Websphere  ลงไป

 <plugin>  
                     <groupId>org.apache.maven.plugins</groupId>  
                     <artifactId>maven-eclipse-plugin</artifactId>  
                     <version>2.9</version>  
                     <configuration>  
                          <wtpversion>2.0</wtpversion>  
                          <additionalProjectFacets>  
                               <jst.ear>6.0</jst.ear>  
                               <com.ibm.websphere.extended.ear>8.0</com.ibm.websphere.extended.ear>  
                               <com.ibm.websphere.coexistence.ear>8.0</com.ibm.websphere.coexistence.ear>  
                          </additionalProjectFacets>  
                     </configuration>  
                </plugin>  

1. Web Project เพิ่ม
     - com.ibm.websphere.extended.web
     - com.ibm.websphere.coexistence.web
2. EJB Project
     - com.ibm.websphere.extended.ejb
3. Enterprise Project
     - com.ibm.websphere.extended.ear
     - com.ibm.websphere.coexistence.ear

Related Posts:

  • Config Maven ให้โหลด Source และ API Docsปกติสามารถโหลดได้จาก Command Line ได้เลยครับ หรือจะไป Config บน settings.xml 1. แบบที่ทำผ่าน Command Line ให้เพิ่ม -DdownloadSources=true -Ddownload… Read More
  • การสร้าง jax-ws บน Tomcatผมเขียนโดยใช้ maven ในการสร้าง Project น่ะครับ และทำให้รันบน Tomcat ถ้าบน Application Server ใช้ Config น้อยกว่านี้น่ะครับ1. เพิ่ม Config ใน Maven เข้… Read More
  • Config Maven สำหรับ Websphereเป็นการ Config Eclipse เพิ่มเติมสำหรับ Add Reference Websphere  ครับ โดยเพิ่ม ข้อมูลตามนี้ แยกตามแต่ละชนิดของ Application (ในส่วน additionalProje… Read More
  • Config Maven ให้ eclipse มองเห็นเป็น Dynamic Web Project โดยปกติ ตอนสร้าง เราจะใช้ -DarchetypeArtifactId=maven-archetype-webapp ในการสร้าง dynamic project แต่พอเราสร้างให้ใช้กับ eclipse แล้ว eclipse จะมอง… Read More
  • การ Config SpringBoot ให้ใช้งานแบบมี web.xmlการ Config แบบนี้จะต้องย้ายพวก filter ออกมาจาก annotation แล้วมา config บน web.xml ให้หมดด้วยครับ ไม่งั้นจะใช้งานไม่ได้ ใน web.xml ผมมีตัวอย่างของการ … Read More