Remove the esr-core level and distribution level, Remove database related script.
Change-Id: I0204e9fcc5dabd2b6c9eb630e8bd7841b32c0b1b
Issue-ID: AAI-269
Signed-off-by: lizi00164331 <li.zi30@zte.com.cn>
+++ /dev/null
-<?xml version="1.0"?>
-<!--
-
- Copyright 2016-2017 ZTE Corporation.
-
- 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.onap.aai.esr-server</groupId>
- <artifactId>esr-core-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>distribution</artifactId>
- <name>esr-server/esr-core/distribution</name>
- <packaging>pom</packaging>
-
- <modules>
- <module>standalone</module>
- </modules>
-</project>
+++ /dev/null
-@REM
-@REM Copyright 2016-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
-set HOME=%~dp0
-set user=%1
-set password=%2
-set port=%3
-set host=%4
-echo start init esr db
-echo HOME=%HOME%
-set main_path=%HOME%..\
-cd /d %main_path%
-mysql -u%user% -p%password% -P%port% -h%host% < dbscripts\mysql\onap-aai-esr-createobj.sql
-set "err=%errorlevel%"
-if "%err%"=="0" (
- echo init esr db success
- ) else (
- echo failed init esr db
- pause
- )
\ No newline at end of file
+++ /dev/null
-#!/bin/bash
-#
-# Copyright 2016-2017 ZTE Corporation.
-#
-# 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`
-user=$1
-password=$2
-port=$3
-host=$4
-echo "start init esr db"
-main_path=$HOME/../
-mysql -u$user -p$password -P$port -h$host <$main_path/dbscripts/mysql/onap-aai-esr-createobj.sql
-sql_result=$?
-if [ $sql_result != 0 ] ; then
- echo "failed to init esr database!"
- exit 1
-fi
-echo "init esr database success!"
-exit 0
-
+++ /dev/null
---
--- Copyright 2016-2017 ZTE Corporation.
---
--- 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.
---
-
-/******************drop old database and user***************************/
-use mysql;
-drop database IF EXISTS extsys;
-delete from user where User='extsys';
-FLUSH PRIVILEGES;
-
-/******************create new database and user***************************/
-create database extsys CHARACTER SET utf8;
-
-GRANT ALL PRIVILEGES ON extsys.* TO 'extsys'@'%' IDENTIFIED BY 'extsys' WITH GRANT OPTION;
-GRANT ALL PRIVILEGES ON mysql.* TO 'extsys'@'%' IDENTIFIED BY 'extsys' WITH GRANT OPTION;
-
-GRANT ALL PRIVILEGES ON extsys.* TO 'extsys'@'localhost' IDENTIFIED BY 'extsys' WITH GRANT OPTION;
-GRANT ALL PRIVILEGES ON mysql.* TO 'extsys'@'localhost' IDENTIFIED BY 'extsys' WITH GRANT OPTION;
-FLUSH PRIVILEGES;
-
-use extsys;
-set Names 'utf8';
-/******************drop old table and create new***************************/
-DROP TABLE IF EXISTS extsys_base_table;
-CREATE TABLE extsys_base_table (
- ID VARCHAR(200) NOT NULL,
- NAME VARCHAR(200) NULL,
- TYPE VARCHAR(200) NULL,
- VENDOR VARCHAR(100) NULL,
- VERSION VARCHAR(100) NULL,
- DESCRIPTION VARCHAR(100) NULL,
- CREATETIME VARCHAR(200) NULL,
- CATAGORY VARCHAR(200) NULL,
- CONSTRAINT extsys_base_table PRIMARY KEY(ID)
-);
-DROP TABLE IF EXISTS extsys_ems_table;
-CREATE TABLE extsys_ems_table (
- EMSID VARCHAR(200) NOT NULL,
- URL VARCHAR(100) NULL,
- PRODUCTNAME VARCHAR(100) NULL,
- USERNAME VARCHAR(100) NULL,
- PASSWORD VARCHAR(100) NULL,
- CONSTRAINT extsys_ems_table PRIMARY KEY(EMSID)
-);
-
-DROP TABLE IF EXISTS extsys_sdnc_table;
-CREATE TABLE extsys_sdnc_table (
- SDNCONTROLLERID VARCHAR(200) NOT NULL,
- URL VARCHAR(100) NULL,
- USERNAME VARCHAR(100) NULL,
- PASSWORD VARCHAR(100) NULL,
- PRODUCTNAME VARCHAR(100) NULL,
- PROTOCOL VARCHAR(100) NULL,
- CONSTRAINT extsys_sdnc_table PRIMARY KEY(SDNCONTROLLERID)
-);
-
-DROP TABLE IF EXISTS extsys_vim_table;
-CREATE TABLE extsys_vim_table (
- VIMID VARCHAR(200) NOT NULL,
- URL VARCHAR(100) NULL,
- USERNAME VARCHAR(100) NULL,
- PASSWORD VARCHAR(100) NULL,
- DOMAIN VARCHAR(100) NULL,
- TENANT VARCHAR(100) NULL,
- CONSTRAINT extsys_vim_table PRIMARY KEY(VIMID)
-);
-
-DROP TABLE IF EXISTS extsys_vnfm_table;
-CREATE TABLE extsys_vnfm_table (
- VNFMID VARCHAR(200) NOT NULL,
- URL VARCHAR(200) NULL,
- USERNAME VARCHAR(100) NULL,
- PASSWORD VARCHAR(100) NULL,
- VIMID VARCHAR(100) NULL,
- CERTIFICATEURL VARCHAR(200) NULL,
- CONSTRAINT extsys_vnfm_table PRIMARY KEY(VNFMID)
-);
-
-
+++ /dev/null
-<?xml version="1.0"?>
-<!--
-
- Copyright 2016-2017 ZTE Corporation.
-
- 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.onap.aai.esr-server</groupId>
- <artifactId>aai-esr-server-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>esr-core-parent</artifactId>
- <name>esr-server/esr-core</name>
- <version>1.0.0-SNAPSHOT</version>
- <packaging>pom</packaging>
-
- <modules>
- <module>esr-mgr</module>
- <module>distribution</module>
- </modules>
-</project>
<?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>esr-core-parent</artifactId>\r
+ <artifactId>aai-esr-server-parent</artifactId>\r
<groupId>org.onap.aai.esr-server</groupId>\r
<version>1.0.0-SNAPSHOT</version>\r
</parent>\r
<modelVersion>4.0.0</modelVersion>\r
<artifactId>esr-mgr</artifactId>\r
- <name>esr-server/esr-core/esr-mgr</name>\r
+ <name>esr-server/esr-mgr</name>\r
+ <version>1.0.0-SNAPSHOT</version>\r
<build>\r
<plugins>\r
<plugin>\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">
- <parent>
- <groupId>org.onap.aai.esr-server</groupId>
- <artifactId>esr-core-parent</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
- <artifactId>esr-mgr</artifactId>
- <name>esr-server/esr-core/esr-mgr</name>
- <packaging>jar</packaging>
+ <parent>
+ <groupId>org.onap.aai.esr-server</groupId>
+ <artifactId>aai-esr-server-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>esr-mgr</artifactId>
+ <name>esr-server/esr-mgr</name>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
<build>
<plugins>
<version>1.0.0-SNAPSHOT</version>
<name>aai-esr-server-parent</name>
<modules>
- <module>esr-core</module>
+ <module>esr-mgr</module>
+ <module>standalone</module>
</modules>
<properties>
-->
<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.onap.aai.esr-server</groupId>
- <artifactId>distribution</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
+ <groupId>org.onap.aai.esr-server</groupId>
+ <artifactId>aai-esr-server-parent</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>standalone</artifactId>
- <name>esr-server/esr-core/distribution/standalone</name>
+ <name>esr-server/standalone</name>
<packaging>pom</packaging>
<properties>
main_path=$RUNHOME/../
cd $main_path
JAVA_OPTS="-Xms50m -Xmx128m"
-port=8312
+port=9518
#JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$port,server=y,suspend=n"
echo @JAVA_OPTS@ $JAVA_OPTS