summaryrefslogtreecommitdiffstats
path: root/engine-d-standalone/src/main/assembly/bin/run.bat
blob: e61f25ae39d06998976c79575c43a555ae0a7dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@REM
@REM Copyright 2017 ZTE Corporation.
@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 holmes-engine-d-service

set RUNHOME=%~dp0
echo ### RUNHOME: %RUNHOME%
echo ### Starting engine-d-service
set main_path=%RUNHOME%..\
cd /d %main_path%
set JAVA="%JAVA_HOME%\bin\java.exe"
set port=8312
set jvm_opts=-Xms50m -Xmx128m
rem set jvm_opts=%jvm_opts% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=%port%,server=y,suspend=n
set class_path=%main_path%;%main_path%holmes-engine-d.jar
echo ### jvm_opts: %jvm_opts%
echo ### class_path: %class_path%

%JAVA% -classpath %class_path% %jvm_opts% EngineDActiveApp server %main_path%conf/engine-d.yml

IF ERRORLEVEL 1 goto showerror
exit
:showerror
echo WARNING: Error occurred during startup or Server abnormally stopped by way of killing the process,Please check!
echo After checking, press any key to close 
pause
exit
quot;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.onap.appc.parent</groupId> <artifactId>odlparent-lite</artifactId> <version>2.6.0-SNAPSHOT</version> <relativePath /> </parent> <groupId>org.onap.appc</groupId> <name>APPC Network Inventory - Installer</name> <packaging>pom</packaging> <properties> <application.name>appc-network-inventory-client</application.name> <features.boot>appc-network-inventory-client</features.boot> <features.repositories>mvn:org.onap.appc/onap-appc-network-inventory-client/${project.version}/xml/features</features.repositories> <include.transitive.dependencies>false</include.transitive.dependencies> </properties> <dependencies> <dependency> <groupId>org.onap.appc</groupId> <artifactId>onap-appc-network-inventory-client</artifactId> <classifier>features</classifier> <version>${project.version}</version> <type>xml</type> <exclusions> <exclusion> <groupId>*</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.onap.appc</groupId> <artifactId>appc-network-inventory-client-provider</artifactId> <version>${project.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>maven-repo-zip</id> <goals> <goal>single</goal> </goals> <phase>package</phase> <configuration> <appendAssemblyId>false</appendAssemblyId> <attach>false</attach> <finalName>stage/${application.name}-${project.version}</finalName> <descriptors> <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor> </descriptors> </configuration> </execution> <execution> <id>installer-zip</id> <goals> <goal>single</goal> </goals> <phase>package</phase> <configuration> <appendAssemblyId>false</appendAssemblyId> <attach>true</attach> <finalName>${application.name}-${project.version}</finalName> <descriptors> <descriptor>src/assembly/assemble_installer_zip.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <goals> <goal>copy-dependencies</goal> </goals> <phase>prepare-package</phase> <configuration> <transitive>false</transitive> <outputDirectory>${project.build.directory}/assembly/system</outputDirectory> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>true</overWriteSnapshots> <overWriteIfNewer>true</overWriteIfNewer> <useRepositoryLayout>true</useRepositoryLayout> <addParentPoms>false</addParentPoms> <copyPom>false</copyPom> <excludeGroupIds>org.opendaylight</excludeGroupIds> <scope>provided</scope> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-version</id> <goals> <goal>copy-resources</goal> </goals> <!-- here the phase you need --> <phase>validate</phase> <configuration> <outputDirectory>${basedir}/target/stage</outputDirectory> <resources> <resource> <directory>src/main/resources/scripts</directory> <includes> <include>install-feature.sh</include> </includes> <filtering>true</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin> </plugins> </build> <artifactId>appc-network-inventory-client-installer</artifactId> <version>1.6.2-SNAPSHOT</version> </project>