Project

General

Profile

Deploy ecosway-adaptor » History » Version 2

chin-yeh, 10/29/2010 04:02 PM

1 1 chin-yeh
h1. Deploy ecosway-adaptor
2 2 chin-yeh
3
See also [[Build components from sources]]
4
5
We will use the project to get the list of libraries needed by the *ecosway-adaptor*.:
6
> http://192.168.2.13:50000/svn/qconnector/trunk/build-ecosway-adaptor
7
8
Before continue, please prepare the following information:
9
* module or component name, e.g. _ecwyadaptor_
10
* module or component version, e.g. _1.0-SNAPSHOT_
11
* the SVN URL, e.g. http://192.168.2.13:50000/svn/qconnector/tags/{module_name}_{module_version}/{module_name}
12
13
*Component name:* build-ecosway-adaptor
14
*Component version:* x.x.x-SNAPSHOT (see [[Documentation#ModulesComponents|Documentation]] to get the latest released version)
15
*SVN URL:* http://192.168.2.13:50000/svn/qconnector/tags/build-ecosway-adaptor_{component_version}/build-ecosway-adaptor
16
17
*Steps:*
18
# checkout the project from SVN
19
<pre>
20
$ svn co http://192.168.2.13:50000/svn/qconnector/tags/build-ecosway-adaptor_{component_version}/build-ecosway-adaptor
21
</pre>
22
# <code>cd</code> to the checkout-ed folder, *build-ecosway-adaptor*
23
<pre>
24
$ cd build-ecosway-adaptor
25
</pre>
26
# execute the maven command to compile and build the module:
27
## if deploy to *jboss 4.2.x*
28
<pre>
29
$ mvn clean package
30
</pre>
31
## if deploy to *jboss 4.0.x*
32
<pre>
33
$ mvn -P jboss-4.0 clean package 
34
</pre>
35
## *Note:* You could skip the unit tests but *strongly* not recommended:
36
### if deploy to *jboss 4.2.x*
37
<pre>
38
$ mvn -Dmaven.test.skip=true clean package
39
</pre>
40
### if deploy to *jboss 4.0.x*
41
<pre>
42
$ mvn -Dmaven.test.skip=true -P jboss-4.0 clean package
43
</pre>
44
# if no error, the binary file of the module can be found in *target* directory
45
# <code>cd</code> to the directory, *target/build-ecosway-adaptor/WEB-INF/lib*
46
# rename the following files:
47
** from ecosway-adaptor-x.x.jar to *ecosway-adaptor.jar*
48
** from soapadaptor-x.x.jar to *soapadaptor.jar*
49
** from xml-mapper-x.x.jar to *xml-mapper.jar*
50
# 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_
51
# restart the jboss
52
# done