Authored by wangshusheng

打包

... ... @@ -4,7 +4,7 @@
<group>
<!--yohobuy.resources-autoconfig-env-->
<property name="yohobuy.rfid.env.webapphome" defaultValue="/home/master/yohobuy-rfid/deploy" description="应用根目录"/>
<property name="yohobuy.rfid.env.serverport" defaultValue="7" description="应用端口"/>
<property name="yohobuy.rfid.env.serverport" defaultValue="8" description="应用端口"/>
</group>
<script>
<generate template="META-INF/autoconf/bin/env.sh" destfile="bin/env.sh"/>
... ...
... ... @@ -8,25 +8,25 @@ BASE_BIN_DIR=`dirname $0`
. $BASE_BIN_DIR/functions.sh
export JAVA_HOME=${yoho.env.javahome}
export WEB_APP_HOME=${yohobuy.product.env.webapphome}
export SERVER_PORT=${yohobuy.product.env.serverport}
export WEB_APP_HOME=${yohobuy.rfid.env.webapphome}
export SERVER_PORT=${yohobuy.rfid.env.serverport}
export PRODUCTION_MODE="${yoho.env.productmode}"
export SERVER_HOME=${yoho.env.serverhome}
export SERVER_TYPE=${yoho.env.servertype}
export SERVER_NAMESPACE=${yohobuy.product.env.namespace}
export SERVER_NAMESPACE=${yohobuy.rfid.env.namespace}
export GW_URL=$Gateway_URL
#if("${yoho.env.servertype}"=="jboss")
export SERVER_BASE_DIR=" -Djboss.server.base.dir=${yohobuy.product.env.webapphome}/.jboss/default "
export SERVER_BASE_DIR=" -Djboss.server.base.dir=${yohobuy.rfid.env.webapphome}/.jboss/default "
#end
#if("${yoho.env.servertype}"=="tomcat")
export SERVER_BASE_DIR=" -Dcatalina.base=${yohobuy.product.env.webapphome}/.tomcat "
export SERVER_BASE_DIR=" -Dcatalina.base=${yohobuy.rfid.env.webapphome}/.tomcat "
#end
export NAMING_PORT=`expr 9000 + $SERVER_PORT`
export HTTP_SERVER_PORT=`expr 8080 + $SERVER_PORT`
export DEBUG_PORT=`expr 8800 + $SERVER_PORT`
export NAMING_PORT=`expr 9010 + $SERVER_PORT`
export HTTP_SERVER_PORT=`expr 8090 + $SERVER_PORT`
export DEBUG_PORT=`expr 8810 + $SERVER_PORT`
export CHECK_SERVER_STARTUP_URL="http://127.0.0.1:$HTTP_SERVER_PORT/$SERVER_NAMESPACE/common/ok.jsp"
export STARTUP_SUCCESS_MSG="Server Online Resources ok"
... ... @@ -35,13 +35,13 @@ export JAVA_DEBUG_OPT=" -server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp
export TIGER_JMX_OPT=" -Dcom.sun.management.config.file=$WEB_APP_HOME/conf/jmx/jmx_monitor_management.properties "
#jmx
export JMX_PORT=`expr 9600 + $SERVER_PORT`
export JMX_PORT=`expr 9610 + $SERVER_PORT`
export LOCAL_IP=`/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"|awk 'NR==1 {print}'`
export CATALINA_OPTS="$CATALINA_OPTS -Djava.rmi.server.hostname=$LOCAL_IP -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
GC_LOGS_DIR=/Data/logs/gc/product
HEAPDUMP_LOGS_DIR=/Data/logs/heapDump/product
GC_LOGS_DIR=/Data/logs/gc/rfid
HEAPDUMP_LOGS_DIR=/Data/logs/heapDump/rfid
if [ ! -d $GC_LOGS_DIR ]; then
mkdir -p $GC_LOGS_DIR
... ...
... ... @@ -6,17 +6,17 @@ BASE_BIN_DIR=`dirname $0`
. $BASE_BIN_DIR/functions.sh
export JAVA_HOME=$yoho.env.javahome
export WEB_APP_HOME=/home/test/yohobuy-product/deploy
export SERVER_PORT=3
export WEB_APP_HOME=/home/test/yohobuy-rfid/deploy
export SERVER_PORT=8
export PRODUCTION_MODE="$yoho.env.productmode"
export SERVER_HOME=$yoho.env.serverhome
export SERVER_TYPE=$yoho.env.servertype
export SERVER_NAMESPACE=product
export SERVER_NAMESPACE=rfid
export NAMING_PORT=`expr 9000 + $SERVER_PORT`
export HTTP_SERVER_PORT=`expr 8080 + $SERVER_PORT`
export NAMING_PORT=`expr 9010 + $SERVER_PORT`
export HTTP_SERVER_PORT=`expr 8090 + $SERVER_PORT`
export CHECK_SERVER_STARTUP_URL="http://127.0.0.1:$HTTP_SERVER_PORT/$SERVER_NAMESPACE/common/ok.jsp"
export STARTUP_SUCCESS_MSG="Server Online Resources ok"
... ...
... ... @@ -19,7 +19,7 @@
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
-->
<Server port="8117" shutdown="SHUTDOWN">
<Server port="8118" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<!-- Security listener. Documentation at /docs/config/listeners.html
<Listener className="org.apache.catalina.security.SecurityListener" />
... ... @@ -66,7 +66,7 @@
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
-->
<Connector port="8097" protocol="HTTP/1.1"
<Connector port="8098" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" compressionMinSize="2048"
noCompressionUserAgents="gozilla,traviata"
... ... @@ -90,7 +90,7 @@
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8003" protocol="AJP/1.3" redirectPort="8443" />
<Connector port="8018" protocol="AJP/1.3" redirectPort="8443" />
<!-- An Engine represents the entry point (within Catalina) that processes
... ...
... ... @@ -112,28 +112,10 @@
-->
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
<compilerArguments>
<extdirs>${basedir}/web/src/main/webapp/WEB-INF/lib/JW.UHF.jar</extdirs>
</compilerArguments>
</configuration>
</plugin>
</plugins>
</build>
<modules>
<module>service</module>
<module>web</module>
<module>deploy</module>
</modules>
</project>
\ No newline at end of file
... ...
... ... @@ -17,10 +17,6 @@
<dependency>
<groupId>com.yoho.rfid</groupId>
<artifactId>yoho-rfid-common</artifactId>
</dependency>
<dependency>
<groupId>com.yoho.rfid</groupId>
<artifactId>yoho-rfid-service</artifactId>
</dependency>
<dependency>
... ...