Authored by ping

update

Showing 100 changed files with 104 additions and 0 deletions

Too many changes to show.

To preserve performance only 100 of 100+ files are displayed.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.yohomars.search</groupId>
<artifactId>yohomars-search-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>deploy</artifactId>
<build>
<finalName>yohomars-search-service</finalName>
<plugins>
<plugin>
<groupId>com.yoho.tools</groupId>
<artifactId>maven-autoconfig-plugin</artifactId>
<version>1.0.0-SNAPSHOT</version>
<configuration>
<exploding>false</exploding>
<dest>${basedir}/src/main</dest>
<type>Directory</type>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>autoconfig</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<configuration>
<tasks>
<unzip src="target/yohomars-search-service.zip" dest="target" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8"?>
<config>
<group>
<property name="yohomars.search.service.env.webapphome" defaultValue="/home/test/yohomars-search-service/deploy" description="应用根目录"/>
<property name="yohomars.search.service.env.serverport" defaultValue="7" description="应用端口"/>
<property name="yohomars.search.service.env.namespace" defaultValue="yohomars-search" description="应用命名空间"/>
<property name="yoho.env.javahome" defaultValue="/usr/local/java" description="" />
<property name="yoho.env.productmode" defaultValue="TEST" description="" />
<property name="yoho.env.serverhome" defaultValue="/usr/local/tomcat" description="" />
<property name="yoho.env.servertype" defaultValue="tomcat" description="" />
</group>
<script>
<generate template="META-INF/autoconf/bin/env.sh" destfile="bin/env.sh"/>
<generate template="META-INF/autoconf/bin/env.bat" destfile="bin/env.bat"/>
<generate template="META-INF/autoconf/conf/tomcat/server.xml" destfile="conf/tomcat/server.xml"/>
</script>
</config>
... ...
set JAVA_MEM_OPT= -Xms1024m -Xmx1024m -XX:MaxPermSize=128m -Djava.net.preferIPv4Stack=true
set JAVA_HOME=${yoho.env.javahome}
set WEB_APP_HOME=${yohomars.search.service.env.webapphome}
#if("${yoho.env.servertype}"=="jboss")
set JBOSS_HOME=${yoho.env.serverhome}
set JBOSS_BASE_DIR=${yohomars.search.service.env.webapphome}/jboss_server
set JBOSS_SERVER_BASE_DIR= -Djboss.server.base.dir=%JBOSS_BASE_DIR%
#end
#if("${yoho.env.servertype}"=="tomcat")
set CATALINA_HOME=${yoho.env.serverhome}
set CATALINA_BASE=${yohomars.search.service.env.webapphome}/tomcat_server
#end
rem set JAVA_DEBUG_OPT= -server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8082,server=y,suspend=n
rem SET JMX_FILE_ACL="%WEB_APP_HOME%\conf\jmx\*.properties"
rem CACLS %JMX_FILE_ACL% /t /c /p %USERNAME%:f
rem SET TIGER_JMX_OPT= -Dcom.sun.management.config.file=%WEB_APP_HOME%\conf\jmx\jmx_monitor_management.properties
rem SET JAVA_OPTS=%JAVA_OPTS% %TIGER_JMX_OPT%
... ...