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.

  1 +<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">
  2 + <modelVersion>4.0.0</modelVersion>
  3 + <parent>
  4 + <groupId>com.yohomars.search</groupId>
  5 + <artifactId>yohomars-search-parent</artifactId>
  6 + <version>0.0.1-SNAPSHOT</version>
  7 + </parent>
  8 + <artifactId>deploy</artifactId>
  9 +
  10 + <build>
  11 + <finalName>yohomars-search-service</finalName>
  12 + <plugins>
  13 + <plugin>
  14 + <groupId>com.yoho.tools</groupId>
  15 + <artifactId>maven-autoconfig-plugin</artifactId>
  16 + <version>1.0.0-SNAPSHOT</version>
  17 + <configuration>
  18 + <exploding>false</exploding>
  19 + <dest>${basedir}/src/main</dest>
  20 + <type>Directory</type>
  21 + </configuration>
  22 + <executions>
  23 + <execution>
  24 + <phase>package</phase>
  25 + <goals>
  26 + <goal>autoconfig</goal>
  27 + </goals>
  28 + </execution>
  29 + </executions>
  30 + </plugin>
  31 + <plugin>
  32 + <artifactId>maven-assembly-plugin</artifactId>
  33 + <configuration>
  34 + <descriptors>
  35 + <descriptor>src/main/assembly/assembly.xml</descriptor>
  36 + </descriptors>
  37 + </configuration>
  38 + <executions>
  39 + <execution>
  40 + <phase>package</phase>
  41 + <goals>
  42 + <goal>single</goal>
  43 + </goals>
  44 + </execution>
  45 + </executions>
  46 + </plugin>
  47 + <plugin>
  48 + <artifactId>maven-antrun-plugin</artifactId>
  49 + <executions>
  50 + <execution>
  51 + <phase>package</phase>
  52 + <configuration>
  53 + <tasks>
  54 + <unzip src="target/yohomars-search-service.zip" dest="target" />
  55 + </tasks>
  56 + </configuration>
  57 + <goals>
  58 + <goal>run</goal>
  59 + </goals>
  60 + </execution>
  61 + </executions>
  62 + </plugin>
  63 + </plugins>
  64 + </build>
  65 +</project>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +
  3 +<config>
  4 + <group>
  5 + <property name="yohomars.search.service.env.webapphome" defaultValue="/home/test/yohomars-search-service/deploy" description="应用根目录"/>
  6 + <property name="yohomars.search.service.env.serverport" defaultValue="7" description="应用端口"/>
  7 + <property name="yohomars.search.service.env.namespace" defaultValue="yohomars-search" description="应用命名空间"/>
  8 + <property name="yoho.env.javahome" defaultValue="/usr/local/java" description="" />
  9 + <property name="yoho.env.productmode" defaultValue="TEST" description="" />
  10 + <property name="yoho.env.serverhome" defaultValue="/usr/local/tomcat" description="" />
  11 + <property name="yoho.env.servertype" defaultValue="tomcat" description="" />
  12 + </group>
  13 + <script>
  14 + <generate template="META-INF/autoconf/bin/env.sh" destfile="bin/env.sh"/>
  15 + <generate template="META-INF/autoconf/bin/env.bat" destfile="bin/env.bat"/>
  16 + <generate template="META-INF/autoconf/conf/tomcat/server.xml" destfile="conf/tomcat/server.xml"/>
  17 + </script>
  18 +</config>
  1 +set JAVA_MEM_OPT= -Xms1024m -Xmx1024m -XX:MaxPermSize=128m -Djava.net.preferIPv4Stack=true
  2 +set JAVA_HOME=${yoho.env.javahome}
  3 +set WEB_APP_HOME=${yohomars.search.service.env.webapphome}
  4 +
  5 +#if("${yoho.env.servertype}"=="jboss")
  6 +set JBOSS_HOME=${yoho.env.serverhome}
  7 +set JBOSS_BASE_DIR=${yohomars.search.service.env.webapphome}/jboss_server
  8 +set JBOSS_SERVER_BASE_DIR= -Djboss.server.base.dir=%JBOSS_BASE_DIR%
  9 +#end
  10 +
  11 +#if("${yoho.env.servertype}"=="tomcat")
  12 +set CATALINA_HOME=${yoho.env.serverhome}
  13 +set CATALINA_BASE=${yohomars.search.service.env.webapphome}/tomcat_server
  14 +#end
  15 +
  16 +
  17 +rem set JAVA_DEBUG_OPT= -server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8082,server=y,suspend=n
  18 +rem SET JMX_FILE_ACL="%WEB_APP_HOME%\conf\jmx\*.properties"
  19 +rem CACLS %JMX_FILE_ACL% /t /c /p %USERNAME%:f
  20 +rem SET TIGER_JMX_OPT= -Dcom.sun.management.config.file=%WEB_APP_HOME%\conf\jmx\jmx_monitor_management.properties
  21 +rem SET JAVA_OPTS=%JAVA_OPTS% %TIGER_JMX_OPT%