Deploy ecosway-adaptor » History » Revision 2
Revision 1 (chin-yeh, 10/29/2010 03:33 PM) → Revision 2/4 (chin-yeh, 10/29/2010 04:02 PM)
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:* build-ecosway-adaptor
*Component version:* 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/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}/build-ecosway-adaptor
</pre>
# <code>cd</code> to the checkout-ed folder, *build-ecosway-adaptor*
<pre>
$ cd 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
# <code>cd</code> to the directory, *target/build-ecosway-adaptor/WEB-INF/lib*
# rename the following 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 directory, *target/build-ecosway-adaptor/WEB-INF/lib* to the target server, e.g _usstore/WEB-INF/lib_
# restart the jboss
# done