-Microservice Bus
+openo-msb
+===============
+
+microservice bus for openo
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<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/maven-v4_0_0.xsd">\r
+ <parent>\r
+ <artifactId>apiroute-parent</artifactId>\r
+ <groupId>org.openo.msb.msb-core.apiroute</groupId>\r
+ <version>1.0.0-SNAPSHOT</version>\r
+ </parent>\r
+ <modelVersion>4.0.0</modelVersion>\r
+ <groupId>org.openo.msb.msb-core.apiroute</groupId>\r
+ <artifactId>apiroute-service</artifactId>\r
+ <name>openo/msb/msb-core/apiroute/apiroute-service</name>\r
+ <version>1.0.0-SNAPSHOT</version>\r
+ <build>\r
+ <resources>\r
+ <resource>\r
+ <directory>src/main/java</directory>\r
+ <includes>\r
+ <include>**/*.properties</include>\r
+ </includes>\r
+ </resource>\r
+ <resource>\r
+ <directory>src/main/resources</directory>\r
+ </resource>\r
+ </resources>\r
+ <plugins>\r
+ <plugin>\r
+ <artifactId>maven-jar-plugin</artifactId>\r
+ <version>2.4</version>\r
+ <configuration>\r
+ <archive>\r
+ <manifest>\r
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>\r
+ </manifest>\r
+ </archive>\r
+ </configuration>\r
+ </plugin>\r
+ <plugin>\r
+ <artifactId>maven-shade-plugin</artifactId>\r
+ <version>2.3</version>\r
+ <executions>\r
+ <execution>\r
+ <phase>package</phase>\r
+ <goals>\r
+ <goal>shade</goal>\r
+ </goals>\r
+ <configuration>\r
+ <transformers>\r
+ <transformer />\r
+ <transformer>\r
+ <mainClass>org.openo.msb.ApiRouteApp</mainClass>\r
+ </transformer>\r
+ </transformers>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ <configuration>\r
+ <createDependencyReducedPom>true</createDependencyReducedPom>\r
+ <filters>\r
+ <filter>\r
+ <artifact>*:*</artifact>\r
+ <excludes>\r
+ <exclude>META-INF/*.SF</exclude>\r
+ <exclude>META-INF/*.DSA</exclude>\r
+ <exclude>META-INF/*.RSA</exclude>\r
+ </excludes>\r
+ </filter>\r
+ </filters>\r
+ </configuration>\r
+ </plugin>\r
+ <plugin>\r
+ <artifactId>maven-surefire-plugin</artifactId>\r
+ <configuration>\r
+ <skip>true</skip>\r
+ </configuration>\r
+ </plugin>\r
+ </plugins>\r
+ </build>\r
+ <dependencies>\r
+ <dependency>\r
+ <groupId>junit</groupId>\r
+ <artifactId>junit</artifactId>\r
+ <version>4.11</version>\r
+ <scope>test</scope>\r
+ <exclusions>\r
+ <exclusion>\r
+ <artifactId>hamcrest-core</artifactId>\r
+ <groupId>org.hamcrest</groupId>\r
+ </exclusion>\r
+ </exclusions>\r
+ </dependency>\r
+ </dependencies>\r
+</project>\r
+\r
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
- <dependency>
- <groupId>net.sf.json-lib</groupId>
- <artifactId>json-lib</artifactId>
- </dependency>
+ <dependency>
+ <groupId>net.sf.json-lib</groupId>
+ <artifactId>json-lib</artifactId>
+ <version>2.4</version>
+ <classifier>jdk15</classifier>
+ </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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>org.openo.msb.msb-core</groupId>
+ <artifactId>msb-core-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>distributions-parent</artifactId>
+ <name>openo/msb/msb-core/distributions-parent</name>
+ <packaging>pom</packaging>
+ <version>1.0.0-SNAPSHOT</version>
+
+ <modules>
+ <module>standalone</module>
+ </modules>
+
+ <properties>
+ <version.output>target/version</version.output>
+ <dockerFileDir>src/main/docker</dockerFileDir>
+ </properties>
+
+</project>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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/maven-v4_0_0.xsd">
+ <parent>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>distributions-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.openo.msb.msb-core.distributions</groupId>
+ <artifactId>msb-core-standalone</artifactId>
+ <name>openo/msb/msb-core/distributions/standalone</name>
+ <packaging>pom</packaging>
+ <version>1.0.0-SNAPSHOT</version>
+
+ <properties>
+ <packageid>msb-standalone</packageid>
+ <linux64id>linux64</linux64id>
+ <win64id>win64</win64id>
+ <linux64outputdir>target/assembly/${linux64id}</linux64outputdir>
+ <win64outputdir>target/assembly/${win64id}</win64outputdir>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.openo.msb.msb-core.apiroute</groupId>
+ <artifactId>apiroute-standalone</artifactId>
+ <version>${project.version}</version>
+ <type>zip</type>
+ <optional>true</optional>
+ </dependency>
+
+ <dependency>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>redis</artifactId>
+ <type>zip</type>
+ <classifier>win64</classifier>
+ <version>${project.version}</version>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>redis</artifactId>
+ <type>tar.gz</type>
+ <classifier>linux64</classifier>
+ <version>${project.version}</version>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>redis-ext</artifactId>
+ <type>zip</type>
+ <version>${project.version}</version>
+ <optional>true</optional>
+ </dependency>
+
+ <dependency>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>openresty</artifactId>
+ <type>zip</type>
+ <classifier>win64</classifier>
+ <version>${project.version}</version>
+ <optional>true</optional>
+ </dependency>
+ <dependency>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>openresty</artifactId>
+ <type>tar.gz</type>
+ <classifier>linux64</classifier>
+ <version>${project.version}</version>
+ <optional>true</optional>
+ </dependency>
+
+ <dependency>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>openresty-ext</artifactId>
+ <type>zip</type>
+ <version>${project.version}</version>
+ <optional>true</optional>
+ </dependency>
+
+
+ </dependencies>
+ <build>
+
+ <plugins>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-resources-dockerfile</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${version.output}</outputDirectory>
+ <includeEmptyDirs>true</includeEmptyDirs>
+ <resources>
+ <resource>
+ <directory>${dockerFileDir}</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
+ <overwrite>true</overwrite>
+ </configuration>
+ </execution>
+ <execution>
+ <id>copy-msb-resources-${linux64id}</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${linux64outputdir}</outputDirectory>
+ <includeEmptyDirs>true</includeEmptyDirs>
+ <resources>
+ <resource>
+ <directory>src/assembly/resource/</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.bat</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ <overwrite>true</overwrite>
+ </configuration>
+ </execution>
+
+ <execution>
+ <id>copy-msb-resources-${win64id}</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${win64outputdir}</outputDirectory>
+ <includeEmptyDirs>true</includeEmptyDirs>
+ <resources>
+ <resource>
+ <directory>src/assembly/resource/</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.sh</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ <overwrite>true</overwrite>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpacktolinux64</id>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <phase>prepare-package</phase>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.openo.msb.msb-core.apiroute</groupId>
+ <artifactId>apiroute-standalone</artifactId>
+ <type>zip</type>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>redis</artifactId>
+ <type>tar.gz</type>
+ <classifier>linux64</classifier>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>redis-ext</artifactId>
+ <type>zip</type>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>openresty</artifactId>
+ <type>tar.gz</type>
+ <classifier>linux64</classifier>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>openresty-ext</artifactId>
+ <type>zip</type>
+ </artifactItem>
+ </artifactItems>
+ <excludes>**/*.bat,*.cmd</excludes>
+ <outputDirectory>${linux64outputdir}</outputDirectory>
+ <overWriteReleases>false</overWriteReleases>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
+ </configuration>
+ </execution>
+ <execution>
+ <id>unpacktowin64</id>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <phase>prepare-package</phase>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.openo.msb.msb-core.apiroute</groupId>
+ <artifactId>apiroute-standalone</artifactId>
+ <type>zip</type>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>redis</artifactId>
+ <type>zip</type>
+ <classifier>win64</classifier>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>redis-ext</artifactId>
+ <type>zip</type>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>openresty</artifactId>
+ <type>zip</type>
+ <classifier>win64</classifier>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.openo.msb.msb-core</groupId>
+ <artifactId>openresty-ext</artifactId>
+ <type>zip</type>
+ </artifactItem>
+ </artifactItems>
+ <excludes>*.sh,*/*.sh,*/*/*.sh</excludes>
+ <outputDirectory>${win64outputdir}</outputDirectory>
+ <overWriteReleases>false</overWriteReleases>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>distribution</id>
+ <phase>package</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target name="distribution">
+ <tar destfile="${version.output}/${packageid}-${project.version}-linux64.tar.gz" longfile="posix" compression="gzip">
+ <tarfileset dir="target/assembly/linux64" filemode="0644" dirmode="0755">
+ <exclude name="**/*.sh"/>
+ <exclude name="openresty/nginx/sbin/nginx"/>
+ <exclude name="redis/redis-*"/>
+ </tarfileset>
+ <tarfileset dir="target/assembly/linux64" filemode="0755" dirmode="0755">
+ <include name="**/*.sh"/>
+ <include name="openresty/nginx/sbin/nginx"/>
+ <include name="redis/redis-*"/>
+ </tarfileset>
+ </tar>
+ <attachartifact file="${version.output}/${packageid}-${project.version}-linux64.tar.gz" classifier="linux64" type="tar.gz"/>
+
+
+ <zip destfile="${version.output}/${packageid}-${project.version}-win64.zip" update="true">
+ <zipfileset dir="target/assembly/win64" includes="**"/>
+ </zip>
+ <attachartifact file="${version.output}/${packageid}-${project.version}-win64.zip" classifier="win64" type="zip"/>
+ </target>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
+
--- /dev/null
+@REM\r
+@REM Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+@REM\r
+@REM Licensed under the Apache License, Version 2.0 (the "License");\r
+@REM you may not use this file except in compliance with the License.\r
+@REM You may obtain a copy of the License at\r
+@REM\r
+@REM http://www.apache.org/licenses/LICENSE-2.0\r
+@REM\r
+@REM Unless required by applicable law or agreed to in writing, software\r
+@REM distributed under the License is distributed on an "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+@REM See the License for the specific language governing permissions and\r
+@REM limitations under the License.\r
+@REM\r
+@echo off\r
+title msb install services\r
+\r
+set RUNHOME=%~dp0\r
+\r
+echo ### install redis\r
+cd "%RUNHOME%\redis"\r
+redisService.exe install\r
+\r
+echo ### install apiroute\r
+cd "%RUNHOME%\apiroute"\r
+apirouteService.exe install\r
+\r
+echo ### install openresty\r
+cd "%RUNHOME%\openresty\nginx"\r
+openrestyService.exe install\r
+\r
+:finalend\r
+cd "%RUNHOME%"
\ No newline at end of file
--- /dev/null
+@REM\r
+@REM Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+@REM\r
+@REM Licensed under the Apache License, Version 2.0 (the "License");\r
+@REM you may not use this file except in compliance with the License.\r
+@REM You may obtain a copy of the License at\r
+@REM\r
+@REM http://www.apache.org/licenses/LICENSE-2.0\r
+@REM\r
+@REM Unless required by applicable law or agreed to in writing, software\r
+@REM distributed under the License is distributed on an "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+@REM See the License for the specific language governing permissions and\r
+@REM limitations under the License.\r
+@REM\r
+@echo off\r
+title msb restart services\r
+\r
+set RUNHOME=%~dp0\r
+\r
+echo ### restart redis\r
+cd "%RUNHOME%\redis"\r
+redisService.exe restart\r
+\r
+echo ### restart apiroute\r
+cd "%RUNHOME%\apiroute"\r
+apirouteService.exe restart\r
+\r
+echo ### restart openresty\r
+cd "%RUNHOME%\openresty\nginx"\r
+openrestyService.exe restart\r
+\r
+:finalend\r
+cd "%RUNHOME%"
\ No newline at end of file
--- /dev/null
+@REM\r
+@REM Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+@REM\r
+@REM Licensed under the Apache License, Version 2.0 (the "License");\r
+@REM you may not use this file except in compliance with the License.\r
+@REM You may obtain a copy of the License at\r
+@REM\r
+@REM http://www.apache.org/licenses/LICENSE-2.0\r
+@REM\r
+@REM Unless required by applicable law or agreed to in writing, software\r
+@REM distributed under the License is distributed on an "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+@REM See the License for the specific language governing permissions and\r
+@REM limitations under the License.\r
+@REM\r
+@echo off\r
+title msb status services\r
+\r
+set RUNHOME=%~dp0\r
+\r
+echo ### status redis\r
+cd "%RUNHOME%\redis"\r
+redisService.exe status\r
+\r
+echo ### status apiroute\r
+cd "%RUNHOME%\apiroute"\r
+apirouteService.exe status\r
+\r
+echo ### status openresty\r
+cd "%RUNHOME%\openresty\nginx"\r
+openrestyService.exe status\r
+\r
+:finalend\r
+cd "%RUNHOME%"
\ No newline at end of file
--- /dev/null
+@REM\r
+@REM Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+@REM\r
+@REM Licensed under the Apache License, Version 2.0 (the "License");\r
+@REM you may not use this file except in compliance with the License.\r
+@REM You may obtain a copy of the License at\r
+@REM\r
+@REM http://www.apache.org/licenses/LICENSE-2.0\r
+@REM\r
+@REM Unless required by applicable law or agreed to in writing, software\r
+@REM distributed under the License is distributed on an "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+@REM See the License for the specific language governing permissions and\r
+@REM limitations under the License.\r
+@REM\r
+@echo off\r
+title msb uninstall services\r
+\r
+set RUNHOME=%~dp0\r
+\r
+echo ### uninstall redis\r
+cd "%RUNHOME%\redis"\r
+redisService.exe stop\r
+redisService.exe uninstall\r
+\r
+echo ### uninstall apiroute\r
+cd "%RUNHOME%\apiroute"\r
+apirouteService.exe stop\r
+apirouteService.exe uninstall\r
+\r
+echo ### uninstall openresty\r
+cd "%RUNHOME%\openresty\nginx"\r
+openrestyService.exe stop\r
+openrestyService.exe uninstall\r
+\r
+:finalend\r
+cd "%RUNHOME%"
\ No newline at end of file
--- /dev/null
+@REM
+@REM Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+@REM
+@REM Licensed under the Apache License, Version 2.0 (the "License");
+@REM you may not use this file except in compliance with the License.
+@REM You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing, software
+@REM distributed under the License is distributed on an "AS IS" BASIS,
+@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@REM See the License for the specific language governing permissions and
+@REM limitations under the License.
+@REM
+@echo off
+title stopping msb
+
+set RUNHOME=%~dp0
+echo ##RUNHOME %RUNHOME%
+
+rem dir /B /S stop.bat > %~dp0\stop.tmp
+rem For /f %%i in (%~dp0\stop.tmp) DO start %%i
+
+echo ### Stopping openresty
+start /D %RUNHOME%openresty stop.bat
+
+echo ### Stopping apiroute
+start /D %RUNHOME%apiroute stop.bat
+
+echo ### Stopping redis
+start /D %RUNHOME%redis stop.bat
+
+echo "Closing signal has been sent!";
+echo "Stopping in background,wait for a moment";
+rem del stop.tmp
+:finalend
\ No newline at end of file
--- /dev/null
+#!/bin/sh
+#
+# Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+DIRNAME=`dirname $0`
+RUNHOME=`cd $DIRNAME/; pwd`
+echo @RUNHOME@ $RUNHOME
+
+echo "### Stopping openresty...";
+# nohup ./startup.sh >>./nohup.log 2>&1 &
+cd ./openresty
+./stop.sh &
+cd $RUNHOME
+
+echo "\n\n### Stopping apiroute"
+cd ./apiroute
+./stop.sh &
+cd $RUNHOME
+
+echo "### Stopping redis";
+cd ./redis
+./stop.sh &
+cd $RUNHOME
+
+echo "Closing signal has been sent!";
+echo "Stopping in background,wait for a moment";
+sleep 3;
\ No newline at end of file
--- /dev/null
+@REM
+@REM Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+@REM
+@REM Licensed under the Apache License, Version 2.0 (the "License");
+@REM you may not use this file except in compliance with the License.
+@REM You may obtain a copy of the License at
+@REM
+@REM http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing, software
+@REM distributed under the License is distributed on an "AS IS" BASIS,
+@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@REM See the License for the specific language governing permissions and
+@REM limitations under the License.
+@REM
+@echo off
+title msb
+
+set RUNHOME=%~dp0
+echo ##RUNHOME %RUNHOME%
+
+rem dir /B /S run.bat > %~dp0\run.tmp
+rem For /f %%i in (%~dp0\run.tmp) DO start %%i
+
+echo ### Starting redis
+start /D %RUNHOME%redis run.bat
+
+echo ### Starting apiroute
+start /D %RUNHOME%apiroute run.bat run
+
+echo ### Starting openresty
+start /D %RUNHOME%openresty run.bat
+
+echo Startup will be finished in background...
+echo + Run "start .\apiroute-works\logs\application.log" to see what's happening
+echo + Wait a minute
+echo + Open "http://<HOST>" in your browser to access the microservice bus !
+rem del run.tmp
+:finalend
\ No newline at end of file
--- /dev/null
+#!/bin/sh
+#
+# Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+DIRNAME=`dirname $0`
+RUNHOME=`cd $DIRNAME/; pwd`
+echo @RUNHOME@ $RUNHOME
+
+echo "### Starting redis";
+#nohup ./wso2bps/bin/wso2server.sh >>./OpenTOSCA/nohup.log 2>&1 &
+cd ./redis
+./run.sh &
+cd $RUNHOME
+
+
+echo "\n\n### Starting apiroute"
+cd ./apiroute
+./run.sh &
+cd $RUNHOME
+
+
+echo "### Starting openresty...";
+# nohup ./startup.sh >>./nohup.log 2>&1 &
+cd ./openresty
+./run.sh &
+cd $RUNHOME
+
+
+echo "Startup will be finished in background...";
+echo " + Run 'tail ./apiroute-works/logs/application.log -f' to see what's happening";
+echo " + Wait a minute";
+echo " + Open 'http://<HOST>' in your browser to access the microservice bus
+stem";
--- /dev/null
+#!/bin/sh
+#
+# Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+DIRNAME=`dirname $0`
+RUNHOME=`cd $DIRNAME/; pwd`
+echo @RUNHOME@ $RUNHOME
+
+echo "### Starting redis...";
+cd ./redis
+./run.sh
+cd $RUNHOME
+
+echo "\n\n### Starting openresty...";
+cd ./openresty
+./run.sh
+cd $RUNHOME
+
+echo "\n\n### Starting apiroute..."
+cd ./apiroute
+./run.sh
--- /dev/null
+FROM java:8-alpine\r
+ADD msb-standalone-1.0.0-SNAPSHOT-linux64.tar.gz /opt/application\r
+WORKDIR /opt/application\r
+EXPOSE 10080\r
+ENTRYPOINT exec $PWD/startup4docker.sh
\ No newline at end of file
\r
<properties>\r
<openresty.linux64.version>openresty-1.9.15.1-linux64</openresty.linux64.version>\r
- <openresty.win32.version>openresty-1.9.14.1001-win32</openresty.win32.version>\r
<openresty.win64.version>openresty-1.9.14.1001-win64</openresty.win64.version>\r
</properties>\r
<build>\r
</artifacts>\r
</configuration>\r
</execution>\r
- <execution>\r
- <id>attach-artifacts-win32</id>\r
- <phase>package</phase>\r
- <goals>\r
- <goal>attach-artifact</goal>\r
- </goals>\r
- <configuration>\r
- <artifacts>\r
- <artifact>\r
- <file>src/assembly/resources/${openresty.win32.version}.zip</file>\r
- <classifier>win32</classifier>\r
- <type>zip</type>\r
- </artifact>\r
- </artifacts>\r
- </configuration>\r
- </execution>\r
<execution>\r
<id>attach-artifacts-win64</id>\r
<phase>package</phase>\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+ Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+ \r
+ Licensed under the Apache License, Version 2.0 (the "License");\r
+ you may not use this file except in compliance with the License.\r
+ You may obtain a copy of the License at\r
+ \r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+ \r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+ \r
+-->\r
+\r
+<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">\r
+ <parent>\r
+ <groupId>org.openo.msb</groupId>\r
+ <artifactId>msb-core-root</artifactId>\r
+ <version>1.0.0-SNAPSHOT</version>\r
+ </parent>\r
+ \r
+ <modelVersion>4.0.0</modelVersion>\r
+ <groupId>org.openo.msb.msb-core</groupId>\r
+ <artifactId>msb-core-parent</artifactId>\r
+ <version>1.0.0-SNAPSHOT</version>\r
+ <name>openo/msb/msb-core-parent</name>\r
+ <packaging>pom</packaging>\r
+ <modules>\r
+ <module>openresty</module>\r
+ <module>openresty-ext</module>\r
+ <module>redis</module>\r
+ <module>redis-ext</module>\r
+ <module>apiroute</module>\r
+ <module>distributions</module>\r
+ </modules>\r
+\r
+</project>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+ \r
+ Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+ \r
+ Licensed under the Apache License, Version 2.0 (the "License");\r
+ you may not use this file except in compliance with the License.\r
+ You may obtain a copy of the License at\r
+ \r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+ \r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+ \r
+-->\r
+\r
+<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">\r
+ <parent>\r
+ <groupId>org.openo.msb.msb-core</groupId>\r
+ <artifactId>msb-core-parent</artifactId>\r
+ <version>1.0.0-SNAPSHOT</version>\r
+ </parent> \r
+\r
+\r
+ <modelVersion>4.0.0</modelVersion>\r
+ <groupId>org.openo.msb.msb-core</groupId>\r
+ <artifactId>redis-ext</artifactId>\r
+ <version>1.0.0-SNAPSHOT</version>\r
+ <name>openo/msb/msb-core/redis-ext</name>\r
+ <packaging>pom</packaging>\r
+\r
+ <properties>\r
+ <outputdir>target/assembly</outputdir>\r
+ <packageid>redis-ext</packageid>\r
+ </properties>\r
+\r
+ <build>\r
+ <plugins> \r
+ <plugin>\r
+ <artifactId>maven-resources-plugin</artifactId>\r
+ <configuration>\r
+ <includeEmptyDirs>true</includeEmptyDirs>\r
+ </configuration>\r
+ <executions>\r
+ <execution>\r
+ <id>copy-resources</id> \r
+ <phase>process-resources</phase>\r
+ <goals>\r
+ <goal>copy-resources</goal>\r
+ </goals>\r
+ <configuration>\r
+ <outputDirectory>${outputdir}</outputDirectory>\r
+ <resources> \r
+ <resource>\r
+ <directory>src/assembly/resources/</directory>\r
+ <filtering>false</filtering>\r
+ <includes>\r
+ <include>**/*</include>\r
+ </includes>\r
+ </resource> \r
+ </resources>\r
+ <overwrite>true</overwrite>\r
+ </configuration>\r
+ </execution> \r
+ </executions>\r
+ </plugin>\r
+\r
+ <plugin>\r
+ <groupId>org.apache.maven.plugins</groupId>\r
+ <artifactId>maven-antrun-plugin</artifactId>\r
+ <executions>\r
+ <execution>\r
+ <id>distribution</id>\r
+ <phase>package</phase>\r
+ <goals>\r
+ <goal>run</goal>\r
+ </goals>\r
+ <configuration>\r
+ <target name="distribution">\r
+ <zip destfile="target/${packageid}-${project.version}.zip" update="true">\r
+ <zipfileset dir="target/assembly/" includes="**"/>\r
+ </zip>\r
+ <attachartifact file="target/${packageid}-${project.version}.zip" type="zip"/>\r
+ </target>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
+\r
+ </plugins>\r
+ </build>\r
+ \r
+\r
+</project>
\ No newline at end of file
--- /dev/null
+@REM\r
+@REM Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+@REM\r
+@REM Licensed under the Apache License, Version 2.0 (the "License");\r
+@REM you may not use this file except in compliance with the License.\r
+@REM You may obtain a copy of the License at\r
+@REM\r
+@REM http://www.apache.org/licenses/LICENSE-2.0\r
+@REM\r
+@REM Unless required by applicable law or agreed to in writing, software\r
+@REM distributed under the License is distributed on an "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+@REM See the License for the specific language governing permissions and\r
+@REM limitations under the License.\r
+@REM\r
+@echo off\r
+title close redis-server\r
+@if not "%ECHO%" == "" echo %ECHO%\r
+@if "%OS%" == "Windows_NT" setlocal\r
+\r
+set DIRNAME=.\r
+\r
+if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%\r
+\r
+set HOME=%DIRNAME%\r
+set _REDISCLIENT=%DIRNAME%redis-cli.exe\r
+\r
+\r
+echo ================Redis config info =============================================\r
+echo Redis_HOME=$HOME\r
+echo TIP:This shell script rewrite the AOF file in the background!\r
+echo ===============================================================================\r
+\r
+\r
+cd /d "%HOME%"\r
+echo @WORK_DIR@%HOME%\r
+echo @C_CMD@ "%_REDISCLIENT% -p 6379 BGREWRITEAOF"\r
+%_REDISCLIENT% -p 6379 BGREWRITEAOF\r
+echo closing signal has been sent,stopping in background,WAIT...\r
+timeout /t 2 /nobreak > nul \r
+exit\r
--- /dev/null
+#!/bin/sh
+#
+# Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+DIRNAME=`dirname $0`
+HOME=`cd $DIRNAME/; pwd`
+_REDISCLIENT="$HOME/redis-cli"
+
+echo ===================== Redis info =============================================
+echo Redis_HOME=$HOME
+echo TIP:This shell script rewrite the AOF file in the background!
+echo ===============================================================================
+cd $HOME; pwd
+
+echo @C_CMD@ $_REDISCLIENT -p 6379 BGREWRITEAOF
+$_REDISCLIENT -p 6379 BGREWRITEAOF
--- /dev/null
+<service>\r
+ <id>msb_redis</id>\r
+ <name>msb_redis</name>\r
+ <description>This service runs redis.</description>\r
+ <workingdirectory>%BASE%</workingdirectory>\r
+ <env name="RUNHOME" value="%BASE%"/>\r
+ <executable>redis-server.exe</executable>\r
+ <arguments>redis.conf</arguments>\r
+ <stopexecutable>redis-cli.exe</stopexecutable>\r
+ <stopargument>shutdown</stopargument>\r
+ <logmode>rotate</logmode>\r
+ <!-- stopparentprocessfirst>true</stopparentprocessfirst -->\r
+</service>
\ No newline at end of file
--- /dev/null
+@REM\r
+@REM Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+@REM\r
+@REM Licensed under the Apache License, Version 2.0 (the "License");\r
+@REM you may not use this file except in compliance with the License.\r
+@REM You may obtain a copy of the License at\r
+@REM\r
+@REM http://www.apache.org/licenses/LICENSE-2.0\r
+@REM\r
+@REM Unless required by applicable law or agreed to in writing, software\r
+@REM distributed under the License is distributed on an "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+@REM See the License for the specific language governing permissions and\r
+@REM limitations under the License.\r
+@REM\r
+@echo off\r
+title redis-server\r
+@if not "%ECHO%" == "" echo %ECHO%\r
+@if "%OS%" == "Windows_NT" setlocal\r
+\r
+set DIRNAME=.\r
+\r
+if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%\r
+\r
+set HOME=%DIRNAME%\r
+set _REDISCMD=%DIRNAME%redis-server.exe\r
+set _REDISCONF=%DIRNAME%redis.conf\r
+\r
+\r
+echo ================Redis config info =============================================\r
+echo Redis_HOME=%HOME%\r
+echo config file=$_REDISCONF\r
+echo Help:use $_REDISCMD --help for help\r
+echo ===============================================================================\r
+\r
+\r
+cd /d "%HOME%"\r
+echo @WORK_DIR@%HOME%\r
+echo @C_CMD@ "%_REDISCMD% %_REDISCONF%"\r
+%_REDISCMD% %_REDISCONF%\r
+IF ERRORLEVEL 1 goto showerror\r
+exit\r
+:showerror\r
+echo WARNING: Error occurred during startup or Server abnormally stopped by way of killing the process,Please check!\r
+echo After checking, press any key to close \r
+pause\r
+exit\r
--- /dev/null
+#!/bin/sh
+#
+# Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+DIRNAME=`dirname $0`
+HOME=`cd $DIRNAME/; pwd`
+_REDISCMD="$HOME/redis-server"
+_REDISCONF="$HOME/redis.conf"
+
+echo =========== Redis config info =============================================
+echo Redis_HOME=$HOME
+echo config file=$_REDISCONF
+echo Help:use $_REDISCMD --help for help
+echo ===============================================================================
+cd $HOME; pwd
+
+echo @C_CMD@ $_REDISCMD $_REDISCONF
+$_REDISCMD $_REDISCONF
--- /dev/null
+#!/bin/sh
+#
+# Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+DIRNAME=`dirname $0`
+HOME=`cd $DIRNAME/; pwd`
+_REDISCMD="$HOME/redis-server"
+_REDISCONF="$HOME/redis.conf"
+
+echo =========== Redis config info =============================================
+echo Redis_HOME=$HOME
+echo config file=$_REDISCONF
+echo Help:use $_REDISCMD --help for help
+echo ===============================================================================
+cd $HOME; pwd
+
+echo @C_CMD@ $_REDISCMD $_REDISCONF --daemonize no
+$_REDISCMD $_REDISCONF --daemonize no
--- /dev/null
+@REM\r
+@REM Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+@REM\r
+@REM Licensed under the Apache License, Version 2.0 (the "License");\r
+@REM you may not use this file except in compliance with the License.\r
+@REM You may obtain a copy of the License at\r
+@REM\r
+@REM http://www.apache.org/licenses/LICENSE-2.0\r
+@REM\r
+@REM Unless required by applicable law or agreed to in writing, software\r
+@REM distributed under the License is distributed on an "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+@REM See the License for the specific language governing permissions and\r
+@REM limitations under the License.\r
+@REM\r
+@echo off\r
+title close redis-server\r
+@if not "%ECHO%" == "" echo %ECHO%\r
+@if "%OS%" == "Windows_NT" setlocal\r
+\r
+set DIRNAME=.\r
+\r
+if "%OS%" == "Windows_NT" set DIRNAME=%~dp0%\r
+\r
+set HOME=%DIRNAME%\r
+set _REDISCLIENT=%DIRNAME%redis-cli.exe\r
+\r
+\r
+echo ================Redis config info =============================================\r
+echo Redis_HOME=$HOME\r
+echo TIP:This shell script close the Redis instance listening on 6379!\r
+echo ===============================================================================\r
+\r
+\r
+cd /d "%HOME%"\r
+echo @WORK_DIR@%HOME%\r
+echo @C_CMD@ "%_REDISCLIENT% -p 6379 shutdown"\r
+%_REDISCLIENT% -p 6379 shutdown\r
+echo closing signal has been sent,stopping in background,WAIT...\r
+timeout /t 2 /nobreak > nul \r
+exit\r
--- /dev/null
+#!/bin/sh
+#
+# Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+DIRNAME=`dirname $0`
+HOME=`cd $DIRNAME/; pwd`
+_REDISCLIENT="$HOME/redis-cli"
+
+echo ===================== Redis info =============================================
+echo Redis_HOME=$HOME
+echo TIP:This shell script close the Redis instance listening on 6379!
+echo ===============================================================================
+cd $HOME; pwd
+
+echo @C_CMD@ $_REDISCLIENT -p 6379 shutdown
+$_REDISCLIENT -p 6379 shutdown
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+ \r
+ Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+ \r
+ Licensed under the Apache License, Version 2.0 (the "License");\r
+ you may not use this file except in compliance with the License.\r
+ You may obtain a copy of the License at\r
+ \r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+ \r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+ \r
+-->\r
+\r
+<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">\r
+ <parent>\r
+ <groupId>org.openo.msb.msb-core</groupId>\r
+ <artifactId>msb-core-parent</artifactId>\r
+ <version>1.0.0-SNAPSHOT</version>\r
+ </parent> \r
+\r
+\r
+ <modelVersion>4.0.0</modelVersion>\r
+ <groupId>org.openo.msb.msb-core</groupId>\r
+ <artifactId>redis</artifactId>\r
+ <version>1.0.0-SNAPSHOT</version>\r
+ <name>openo/msb/msb-core/redis</name>\r
+ <packaging>pom</packaging>\r
+\r
+ <properties>\r
+ <redis.linux64.version>redis-3.2.1-linux64</redis.linux64.version>\r
+ <redis.win64.version>redis-3.2.100-win64</redis.win64.version>\r
+ </properties>\r
+ <build>\r
+ <plugins>\r
+ <plugin>\r
+ <groupId>org.codehaus.mojo</groupId>\r
+ <artifactId>build-helper-maven-plugin</artifactId>\r
+ <executions>\r
+ <execution>\r
+ <id>attach-artifacts-linux64</id>\r
+ <phase>package</phase>\r
+ <goals>\r
+ <goal>attach-artifact</goal>\r
+ </goals>\r
+ <configuration>\r
+ <artifacts>\r
+ <artifact>\r
+ <file>src/assembly/resources/${redis.linux64.version}.tar.gz</file>\r
+ <classifier>linux64</classifier>\r
+ <type>tar.gz</type>\r
+ </artifact>\r
+ </artifacts>\r
+ </configuration>\r
+ </execution>\r
+ <execution>\r
+ <id>attach-artifacts-win64</id>\r
+ <phase>package</phase>\r
+ <goals>\r
+ <goal>attach-artifact</goal>\r
+ </goals>\r
+ <configuration>\r
+ <artifacts>\r
+ <artifact>\r
+ <file>src/assembly/resources/${redis.win64.version}.zip</file>\r
+ <classifier>win64</classifier>\r
+ <type>zip</type>\r
+ </artifact>\r
+ </artifacts>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
+ </plugins>\r
+ </build>\r
+\r
+</project>
\ No newline at end of file
--- /dev/null
+modeldesign-parent\r
+============\r
+\r
+Root Pom of Project modeldesign\r
+\r
+**modeldesignparent-lite is descripe the maven repo and maven plugin .**\r
+\r
+**modeldesignparent is the parent pom of the this project ,which descripe the dependency Management of the thirdparty Supporting Libraries**\r
+\r
+you can use the following section to reference it .\r
+\r
+~~~\r
+ <groupId>org.openo.orchestrator.modeldesignparent</groupId>\r
+ <artifactId>modeldesignparent</artifactId>\r
+ <version>1.0.0</version>\r
+~~~\r
+\r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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>org.openo.oparent</groupId>
+ <artifactId>oparent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+-->
+
+ <groupId>org.openo.msb</groupId>
+ <artifactId>msbparent-lite</artifactId>
+ <version>1.0.0</version>
+ <packaging>pom</packaging>
+ <name>msbparent-lite</name>
+
+ <properties>
+
+ <nexus.repository.release>dav:http://nexus.open-o.com/repos/content/repositories/releases</nexus.repository.release>
+ <nexus.repository.snapshot>dav:http://nexus.open-o.com/repos/content/repositories/snapshots</nexus.repository.snapshot>
+
+ <stream>latest</stream><!-- CI should pass in -Dstream={stream} -->
+
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+
+ <!-- Java Versions -->
+ <!-- FIXME: confirm these two are picked by maven-compiler-plugin -->
+ <maven.compiler.source>1.7</maven.compiler.source>
+ <maven.compiler.target>1.7</maven.compiler.target>
+ <java.version.source>${maven.compiler.source}</java.version.source>
+ <java.version.target>${maven.compiler.target}</java.version.target>
+
+
+ <!-- Maven plugin versions, in the 'canonical' format -->
+ <maven.antrun.plugin.version>1.8</maven.antrun.plugin.version>
+ <maven.bundle.version>3.0.0</maven.bundle.version>
+ <maven.clean.plugin.version>2.6.1</maven.clean.plugin.version>
+ <maven.compile.plugin.version>3.3</maven.compile.plugin.version>
+ <maven.jar.version>2.6</maven.jar.version>
+ <maven.javadoc.version>2.10.3</maven.javadoc.version>
+ <maven.plugin.version>3.4</maven.plugin.version>
+ <maven.release.version>2.5.2</maven.release.version>
+ <maven.surefire.version>2.18.1</maven.surefire.version>
+
+ <!-- Maven plugin versions, in random formats -->
+ <checkstyle.version>2.16</checkstyle.version>
+ <compiler.version>${maven.compile.plugin.version}</compiler.version>
+ <enforcer.version>1.4</enforcer.version>
+
+
+
+ </properties>
+
+ <distributionManagement>
+ <repository>
+ <id>releases</id>
+ <url>${nexus.repository.release}</url>
+ </repository>
+ <snapshotRepository>
+ <id>snapshots</id>
+ <url>${nexus.repository.snapshot}</url>
+ </snapshotRepository>
+ </distributionManagement>
+
+
+ <build>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-ssh</artifactId>
+ <version>2.10</version>
+ </extension>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-ftp</artifactId>
+ <version>2.10</version>
+ </extension>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-webdav-jackrabbit</artifactId>
+ <version>2.10</version>
+ </extension>
+ </extensions>
+ <resources>
+ <resource>
+ <filtering>false</filtering>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ <resource>
+ <filtering>true</filtering>
+ <directory>src/main/filters</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
+ <testResources>
+ <testResource>
+ <filtering>false</filtering>
+ <directory>src/test/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </testResource>
+ <testResource>
+ <filtering>true</filtering>
+ <directory>src/test/filters</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </testResource>
+ </testResources>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.8.1</version>
+ </plugin>
+
+ <!-- Official maven plugins, alpha-sorted by artifactId.
+ We do not need to specify the groupId. -->
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>${maven.antrun.plugin.version}</version>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>${maven.clean.plugin.version}</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.5.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.8.2</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>${maven.compile.plugin.version}</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>${enforcer.version}</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <version>${failsafe.version}</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-invoker-plugin</artifactId>
+ <version>2.0.0</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>${maven.jar.version}</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>${maven.javadoc.version}</version>
+ <configuration>
+ <!-- Keep things quiet except for warnings/errors -->
+ <quiet>true</quiet>
+ </configuration>
+ <executions>
+ <execution>
+ <id>attach-javadocs</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>${maven.release.version}</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.10</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-plugin-plugin</artifactId>
+ <version>${maven.plugin.version}</version>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.7</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>2.4.1</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.4</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${maven.surefire.version}</version>
+ <configuration>
+ <redirectTestOutputToFile>true</redirectTestOutputToFile>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </pluginManagement>
+ </build>
+
+
+
+</project>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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>org.openo.msb</groupId>
+ <artifactId>msbparent-lite</artifactId>
+ <version>1.0.0</version>
+ <relativePath>../msbparent-lite</relativePath>
+ </parent>
+
+ <groupId>org.openo.msb</groupId>
+ <artifactId>msbparent</artifactId>
+ <packaging>pom</packaging>
+ <name>msbparent</name>
+
+
+ <scm>
+ <connection>scm:git:ssh://gerrit.zte.com.cn:29418/paas/wisdom/modeldesign-parent.git</connection>
+ <developerConnection>scm:git:ssh://gerrit.zte.com.cn:29418/paas/wisdom/modeldesign-parent.git</developerConnection>
+ <tag>HEAD</tag>
+
+ </scm>
+
+
+ <properties>
+ <!-- Supporting Libraries -->
+ <dropwizard.version>0.8.0</dropwizard.version>
+ <swagger.version>1.5.3</swagger.version>
+ <jedis.version>2.7.3</jedis.version>
+ <lombok.version>1.16.4</lombok.version>
+ <json-lib.version>2.4</json-lib.version>
+ <junit.version>4.11</junit.version>
+ </properties>
+
+ <dependencyManagement>
+ <dependencies>
+
+ <!-- Testing Dependencies -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <!-- Supporting Libraries -->
+ <dependency>
+ <groupId>io.dropwizard</groupId>
+ <artifactId>dropwizard-core</artifactId>
+ <version>${dropwizard.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>io.dropwizard</groupId>
+ <artifactId>dropwizard-assets</artifactId>
+ <version>${dropwizard.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>io.dropwizard</groupId>
+ <artifactId>dropwizard-client</artifactId>
+ <version>${dropwizard.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>io.swagger</groupId>
+ <artifactId>swagger-jersey2-jaxrs</artifactId>
+ <version>${swagger.version}</version>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>redis.clients</groupId>
+ <artifactId>jedis</artifactId>
+ <version>${jedis.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.projectlombok</groupId>
+ <artifactId>lombok</artifactId>
+ <version>${lombok.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.json-lib</groupId>
+ <artifactId>json-lib</artifactId>
+ <version>${json-lib.version}</version>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+<!-- <reporting>
+ <plugins>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>${checkstyle.version}</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>3.0.1</version>
+ <configuration>
+ <effort>Max</effort>
+ <threshold>Low</threshold>
+ <goal>site</goal>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </reporting> -->
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ <version>2.19.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <version>2.7</version>
+ <configuration>
+ <formats>
+ <format>xml</format>
+ <format>html</format>
+ </formats>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ <version>2.5</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <version>3.6</version>
+ <configuration>
+ <linkXref>true</linkXref>
+ <sourceEncoding>utf-8</sourceEncoding>
+ <minimumTokens>100</minimumTokens>
+ <targetJdk>1.8</targetJdk>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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>org.openo.msb</groupId>
+ <artifactId>msbparent-lite</artifactId>
+ <version>1.0.0</version>
+ <relativePath>msbparent-lite</relativePath>
+</parent>
+
+<groupId>org.openo.msb</groupId>
+<artifactId>msbparent-aggregator</artifactId>
+<version>1.0.0</version>
+<name>msbparent-aggregator</name>
+<packaging>pom</packaging>
+
+
+<modules>
+ <module>msbparent</module>
+ <module>msbparent-lite</module>
+</modules>
+
+<build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.8.2</version>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+</build>
+
+</project>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+ Copyright (C) 2016 ZTE, Inc. and others. All rights reserved. (ZTE)\r
+ \r
+ Licensed under the Apache License, Version 2.0 (the "License");\r
+ you may not use this file except in compliance with the License.\r
+ You may obtain a copy of the License at\r
+ \r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+ \r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+ \r
+-->\r
+\r
+ <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">\r
+\r
+ <modelVersion>4.0.0</modelVersion>\r
+\r
+ <parent>\r
+ <groupId>org.openo.msb</groupId>\r
+ <artifactId>msbparent</artifactId>\r
+ <version>1.0.0</version>\r
+ <relativePath>msb-parent/msbparent</relativePath>\r
+ </parent> \r
+\r
+\r
+ <groupId>org.openo.msb</groupId>\r
+ <artifactId>msb-core-root</artifactId>\r
+ <version>1.0.0-SNAPSHOT</version>\r
+ <name>openo/msb/msb-core-root</name>\r
+ <packaging>pom</packaging>\r
+\r
+ <modules>\r
+ <module>msb-parent</module>\r
+ <module>msb-core</module>\r
+ </modules>\r
+\r
+ </project>
\ No newline at end of file