Project

General

Profile

Deploy ecosway-adaptor » History » Revision 3

Revision 2 (chin-yeh, 10/29/2010 04:02 PM) → Revision 3/4 (chin-yeh, 11/25/2010 11:21 AM)

h1. Deploy ecosway-adaptor 

 See also [[Build components from sources]] 

 We will use the project to get the list of libraries needed by the *ecosway-adaptor*.: 
 > http://192.168.2.13:50000/svn/qconnector/trunk/build-ecosway-adaptor 

 Before continue, please prepare the following information: 
 * module or component name, e.g. _ecwyadaptor_ 
 * module or component version, e.g. _1.0-SNAPSHOT_ 
 * the SVN URL, e.g. http://192.168.2.13:50000/svn/qconnector/tags/{module_name}_{module_version}/{module_name} 

 *Component name:* ecosway-adaptor build-ecosway-adaptor 
 *Component version:* x.x.x-x x.x.x-SNAPSHOT (see [[Documentation#ModulesComponents|Documentation]] to get the latest released version) 
 *SVN URL:* http://192.168.2.13:50000/svn/qconnector/tags/ecosway-adaptor_{component_version}/ecosway-adaptor http://192.168.2.13:50000/svn/qconnector/tags/build-ecosway-adaptor_{component_version}/build-ecosway-adaptor 

 *Steps:* 
 # checkout the project from SVN 
 <pre> 
 $ svn co http://192.168.2.13:50000/svn/qconnector/tags/build-ecosway-adaptor_{component_version}/ecosway-adaptor http://192.168.2.13:50000/svn/qconnector/tags/build-ecosway-adaptor_{component_version}/build-ecosway-adaptor 
 </pre> 
 # <code>cd</code> to the checkout-ed folder, *ecosway-adaptor* *build-ecosway-adaptor* 
 <pre> 
 $ cd ecosway-adaptor build-ecosway-adaptor 
 </pre> 
 # execute the maven command to compile and build the module: 
 ## if deploy to *jboss 4.2.x* 
 <pre> 
 $ mvn clean package 
 </pre> 
 ## if deploy to *jboss 4.0.x* 
 <pre> 
 $ mvn -P jboss-4.0 clean package  
 </pre> 
 ## *Note:* You could skip the unit tests but *strongly* not recommended: 
 ### if deploy to *jboss 4.2.x* 
 <pre> 
 $ mvn -Dmaven.test.skip=true clean package 
 </pre> 
 ### if deploy to *jboss 4.0.x* 
 <pre> 
 $ mvn -Dmaven.test.skip=true -P jboss-4.0 clean package 
 </pre> 
 # if no error, the binary file of the module can be found in *target* directory 
 # upload <code>cd</code> to the directory, *target/build-ecosway-adaptor/WEB-INF/lib* 
 # rename the following files to target server, e.g. e.g _usstore/WEB-INF/lib_: files: 
 ** from ecosway-adaptor-x.x.jar to *ecosway-adaptor.jar* 
 ** from soapadaptor-x.x.jar to *soapadaptor.jar* 
 ** from xml-mapper-x.x.jar to *xml-mapper.jar* 
 # upload all of the files in the folder *dist* directory, *target/build-ecosway-adaptor/WEB-INF/lib* to the target server, e.g _usstore/WEB-INF/lib_ 
 # restart the jboss 
 # done