Commit 78690714 by xieshaohua

治理工单初始化

parent d58bae8a
#!/bin/bash
BASE_LOC="$(dirname "${ABS_SCRIPT_PATH}")"
APP_NAME="governWorkOrder"
TEMP_DIR="-Djava.io.tmpdir=/tmp"
PROFILE="default"
CONFIG_URL="http://c0:8082"
JVM_OPTS="-Xmx128M -Xms128M"
JAVA_OPTS="-server $JVM_OPTS -XX:+UseCompressedOops -XX:+UseG1GC"
SPRING_OPTS="" #"--spring.cloud.config.uri=$CONFIG_URL --spring.profiles.active=$PROFILE --logging.config=$BASE_LOC/config/logback-custom.xml"
JAR_NAME="$APP_NAME.jar"
nohup java $JAVA_OPTS $TEMP_DIR -jar $BASE_LOC/lib/$JAR_NAME $SPRING_OPTS 2>&1 > $BASE_LOC/console.log &
echo "$JAR_NAME started."
<assembly>
<id>dist</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>true</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>${project.basedir}/assembly/bin</directory>
<outputDirectory>bin</outputDirectory>
<includes>
<include>**/*.sh</include>
</includes>
<fileMode>755</fileMode>
</fileSet>
<fileSet>
<directory>${project.basedir}/../runtime/src/main/resources</directory>
<outputDirectory>config</outputDirectory>
<includes>
<include>**/*.xml</include>
</includes>
<fileMode>755</fileMode>
</fileSet>
<fileSet>
<directory>${project.basedir}/../runtime/target</directory>
<outputDirectory>lib</outputDirectory>
<includes>
<include>**/*.jar</include>
</includes>
<fileMode>755</fileMode>
</fileSet>
</fileSets>
</assembly>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<groupId>com.keymobile.governworkorder</groupId>
<artifactId>parent</artifactId>
<version>product-v1-1.0.1-rc1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>build</artifactId>
<packaging>pom</packaging>
<build>
<finalName>governworkorder</finalName>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>assembly/server-dist.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>create-assemblies</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment