Change the groupid from openo to onap 89/6789/2
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Mon, 7 Aug 2017 04:36:54 +0000 (12:36 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Mon, 7 Aug 2017 04:42:24 +0000 (12:42 +0800)
Change the groupid and package paths to onap.

Change-Id: Ie2f9926d418fbb434509a0d740efa95148ab58de
Issue-ID: HOLMES-8
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
32 files changed:
engine-d-standalone/pom.xml
engine-d-standalone/src/main/assembly/bin/initDB.bat
engine-d-standalone/src/main/assembly/bin/initDB.sh
engine-d-standalone/src/main/assembly/bin/run.bat
engine-d-standalone/src/main/assembly/bin/run.sh
engine-d-standalone/src/main/assembly/bin/stop.bat
engine-d-standalone/src/main/assembly/bin/stop.sh
engine-d-standalone/src/main/assembly/conf/engine-d.yml
engine-d/pom.xml
engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java [moved from engine-d/src/main/java/org/openo/holmes/engine/EngineDActiveApp.java with 83% similarity]
engine-d/src/main/java/org/onap/holmes/engine/EngineDAppConfig.java [moved from engine-d/src/main/java/org/openo/holmes/engine/EngineDAppConfig.java with 95% similarity]
engine-d/src/main/java/org/onap/holmes/engine/db/CorrelationRuleDao.java [moved from engine-d/src/main/java/org/openo/holmes/engine/db/CorrelationRuleDao.java with 87% similarity]
engine-d/src/main/java/org/onap/holmes/engine/db/mapper/CorrelationRuleMapper.java [moved from engine-d/src/main/java/org/openo/holmes/engine/db/mapper/CorrelationRuleMapper.java with 95% similarity]
engine-d/src/main/java/org/onap/holmes/engine/manager/DroolsEngine.java [moved from engine-d/src/main/java/org/openo/holmes/engine/manager/DroolsEngine.java with 80% similarity]
engine-d/src/main/java/org/onap/holmes/engine/request/CompileRuleRequest.java [moved from engine-d/src/main/java/org/openo/holmes/engine/request/CompileRuleRequest.java with 95% similarity]
engine-d/src/main/java/org/onap/holmes/engine/request/DeployRuleRequest.java [moved from engine-d/src/main/java/org/openo/holmes/engine/request/DeployRuleRequest.java with 95% similarity]
engine-d/src/main/java/org/onap/holmes/engine/resources/EngineResources.java [moved from engine-d/src/main/java/org/openo/holmes/engine/resources/EngineResources.java with 88% similarity]
engine-d/src/main/java/org/onap/holmes/engine/response/CorrelationRuleResponse.java [moved from engine-d/src/main/java/org/openo/holmes/engine/response/CorrelationRuleResponse.java with 95% similarity]
engine-d/src/main/java/org/onap/holmes/engine/utils/AlarmUtil.java [moved from engine-d/src/main/java/org/openo/holmes/engine/utils/AlarmUtil.java with 96% similarity]
engine-d/src/main/java/org/onap/holmes/engine/wrapper/RuleMgtWrapper.java [moved from engine-d/src/main/java/org/openo/holmes/engine/wrapper/RuleMgtWrapper.java with 78% similarity]
engine-d/src/test/java/org/onap/holmes/engine/EngineDActiveAppTest.java [moved from engine-d/src/test/java/org/openo/holmes/engine/EngineDActiveAppTest.java with 93% similarity]
engine-d/src/test/java/org/onap/holmes/engine/EnginedAppConfigTest.java [moved from engine-d/src/test/java/org/openo/holmes/engine/EnginedAppConfigTest.java with 93% similarity]
engine-d/src/test/java/org/onap/holmes/engine/db/CorrelationRuleDaoTest.java [moved from engine-d/src/test/java/org/openo/holmes/engine/db/CorrelationRuleDaoTest.java with 91% similarity]
engine-d/src/test/java/org/onap/holmes/engine/db/mapper/CorrelationRuleMapperTest.java [moved from engine-d/src/test/java/org/openo/holmes/engine/db/mapper/CorrelationRuleMapperTest.java with 95% similarity]
engine-d/src/test/java/org/onap/holmes/engine/manager/DroolsEngineTest.java [moved from engine-d/src/test/java/org/openo/holmes/engine/manager/DroolsEngineTest.java with 93% similarity]
engine-d/src/test/java/org/onap/holmes/engine/request/CompileRuleRequestTest.java [moved from engine-d/src/test/java/org/openo/holmes/engine/request/CompileRuleRequestTest.java with 93% similarity]
engine-d/src/test/java/org/onap/holmes/engine/request/DeployRuleRequestTest.java [moved from engine-d/src/test/java/org/openo/holmes/engine/request/DeployRuleRequestTest.java with 94% similarity]
engine-d/src/test/java/org/onap/holmes/engine/resources/EngineResourcesTest.java [moved from engine-d/src/test/java/org/openo/holmes/engine/resources/EngineResourcesTest.java with 92% similarity]
engine-d/src/test/java/org/onap/holmes/engine/response/CorrelationRuleResponseTest.java [moved from engine-d/src/test/java/org/openo/holmes/engine/response/CorrelationRuleResponseTest.java with 88% similarity]
engine-d/src/test/java/org/onap/holmes/engine/utils/AlarmUtilTest.java [moved from engine-d/src/test/java/org/openo/holmes/engine/utils/AlarmUtilTest.java with 94% similarity]
engine-d/src/test/java/org/onap/holmes/engine/wrapper/RuleMgtWrapperTest.java [moved from engine-d/src/test/java/org/openo/holmes/engine/wrapper/RuleMgtWrapperTest.java with 85% similarity]
pom.xml

index dc573d1..bb72317 100644 (file)
@@ -20,9 +20,9 @@
   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.holmes.engine-management</groupId>
+    <groupId>org.onap.holmes.engine-management</groupId>
     <artifactId>holmes-engine-parent</artifactId>
-    <version>1.1.0-SNAPSHOT</version>
+    <version>1.0.0-SNAPSHOT</version>
   </parent>
 
   <artifactId>holmes-engine-d-standalone</artifactId>
@@ -96,7 +96,7 @@
             <configuration>
               <artifactItems>
                 <artifactItem>
-                  <groupId>org.openo.holmes.engine-management</groupId>
+                  <groupId>org.onap.holmes.engine-management</groupId>
                   <artifactId>holmes-engine-d</artifactId>
                   <type>jar</type>
                   <overWrite>true</overWrite>
             <configuration>
               <artifactItems>
                 <artifactItem>
-                  <groupId>org.openo.holmes.engine-management</groupId>
+                  <groupId>org.onap.holmes.engine-management</groupId>
                   <artifactId>holmes-engine-d</artifactId>
                   <type>jar</type>
                   <overWrite>true</overWrite>
 
   <dependencies>
     <dependency>
-      <groupId>org.openo.holmes.engine-management</groupId>
+      <groupId>org.onap.holmes.engine-management</groupId>
       <artifactId>holmes-engine-d</artifactId>
       <version>${project.version}</version>
     </dependency>
index 29a795c..84b2e54 100644 (file)
@@ -24,7 +24,7 @@ echo start init holmes engine-d db
 echo HOME=%HOME%
 set main_path=%HOME%..\
 cd /d %main_path%
-mysql -u%user% -p%password% -P%port% -h%host% < %main_path%\dbscripts\mysql\openo-holmes_engine_d-createobj.sql
+mysql -u%user% -p%password% -P%port% -h%host% < %main_path%\dbscripts\mysql\onap-holmes_engine_d-createobj.sql
 set "err=%errorlevel%"
 if "%err%"=="0" (
    echo init engine-d db success
index a02391b..97361ea 100644 (file)
@@ -24,7 +24,7 @@ host=$4
 echo "start init holmes engine-d db"
 main_path=$HOME/../
 cat $main_path
-mysql -u$user -p$password -P$port -h$host <$main_path/dbscripts/mysql/openo-holmes_engine_d-createobj.sql
+mysql -u$user -p$password -P$port -h$host <$main_path/dbscripts/mysql/onap-holmes_engine_d-createobj.sql
 sql_result=$?
 if [ $sql_result != 0 ] ; then
    echo "failed to init engine-d database!"
index 89151e8..e61f25a 100644 (file)
@@ -30,7 +30,7 @@ set class_path=%main_path%;%main_path%holmes-engine-d.jar
 echo ### jvm_opts: %jvm_opts%\r
 echo ### class_path: %class_path%\r
 \r
-%JAVA% -classpath %class_path% %jvm_opts% org.openo.holmes.engine.EngineDActiveApp server %main_path%conf/engine-d.yml\r
+%JAVA% -classpath %class_path% %jvm_opts% EngineDActiveApp server %main_path%conf/engine-d.yml\r
 \r
 IF ERRORLEVEL 1 goto showerror\r
 exit\r
index 4a93b50..a403aeb 100644 (file)
@@ -31,5 +31,5 @@ echo @JAVA_OPTS@ $JAVA_OPTS
 class_path="$main_path/:$main_path/holmes-engine-d.jar"
 echo @class_path@ $class_path
 
-"$JAVA" $JAVA_OPTS -classpath "$class_path" org.openo.holmes.engine.EngineDActiveApp server "$main_path/conf/engine-d.yml"
+"$JAVA" $JAVA_OPTS -classpath "$class_path" EngineDActiveApp server "$main_path/conf/engine-d.yml"
 
index 22280e7..f4ed01b 100644 (file)
@@ -18,7 +18,7 @@
 title stopping engine-d-service\r
 \r
 set HOME=%~dp0\r
-set Main_Class="org.openo.holmes.engine.EngineDActiveApp"\r
+set Main_Class="EngineDActiveApp"\r
 \r
 echo ================== engine-d-service info =============================================\r
 echo HOME=$HOME\r
index 8f81bda..5c217f1 100644 (file)
@@ -17,7 +17,7 @@
 
 DIRNAME=`dirname $0`
 HOME=`cd $DIRNAME/; pwd`
-Main_Class="org.openo.holmes.engine.EngineDActiveApp"
+Main_Class="EngineDActiveApp"
 
 echo ================== engine-d-service info =============================================
 echo HOME=$HOME
index c16bf71..de129c4 100644 (file)
@@ -15,7 +15,7 @@
 #\r
 server:\r
   type: simple\r
-  rootPath: '/openoapi/holmes-engine-mgmt/v1/*'\r
+  rootPath: '/onapapi/holmes-engine-mgmt/v1/*'\r
   applicationContextPath: /\r
   adminContextPath: /admin\r
   connector:\r
index b47bf62..c5aa87d 100644 (file)
@@ -20,9 +20,9 @@
 
     <modelVersion>4.0.0</modelVersion>
     <parent>
-        <groupId>org.openo.holmes.engine-management</groupId>
+        <groupId>org.onap.holmes.engine-management</groupId>
         <artifactId>holmes-engine-parent</artifactId>
-        <version>1.1.0-SNAPSHOT</version>
+        <version>1.0.0-SNAPSHOT</version>
     </parent>
 
     <artifactId>holmes-engine-d</artifactId>
@@ -36,7 +36,7 @@
     <dependencies>
 
         <dependency>
-            <groupId>org.openo.holmes.actions</groupId>
+            <groupId>org.onap.holmes.common</groupId>
             <artifactId>holmes-actions</artifactId>
             <exclusions>
                 <exclusion>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.openo.client.cli</groupId>
-            <artifactId>swagger-sdk</artifactId>
-        </dependency>
         <dependency>
             <groupId>io.swagger</groupId>
             <artifactId>swagger-jersey2-jaxrs</artifactId>
                                     implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                                 <transformer
                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-                                    <mainClass>org.openo.holmes.engine.EngineDActiveApp
+                                    <mainClass>org.onap.holmes.engine.EngineDActiveApp
                                     </mainClass>
                                 </transformer>
                             </transformers>
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.engine;
+package org.onap.holmes.engine;
 
 import io.dropwizard.setup.Environment;
 import java.io.IOException;
 import lombok.extern.slf4j.Slf4j;
-import org.openo.dropwizard.ioc.bundle.IOCApplication;
-import org.openo.holmes.common.api.entity.ServiceRegisterEntity;
-import org.openo.holmes.common.config.MicroServiceConfig;
-import org.openo.holmes.common.utils.MSBRegisterUtil;
+import org.onap.holmes.common.dropwizard.ioc.bundle.IOCApplication;
+import org.onap.holmes.common.api.entity.ServiceRegisterEntity;
+import org.onap.holmes.common.config.MicroServiceConfig;
+import org.onap.holmes.common.utils.MSBRegisterUtil;
 
 @Slf4j
 public class EngineDActiveApp extends IOCApplication<EngineDAppConfig> {
@@ -46,7 +46,7 @@ public class EngineDActiveApp extends IOCApplication<EngineDAppConfig> {
         serviceRegisterEntity.setServiceName("holmes-engine-mgmt");
         serviceRegisterEntity.setProtocol("REST");
         serviceRegisterEntity.setVersion("v1");
-        serviceRegisterEntity.setUrl("/openoapi/holmes-engine-mgmt/v1");
+        serviceRegisterEntity.setUrl("/onapapi/holmes-engine-mgmt/v1");
         serviceRegisterEntity.setSingleNode(MicroServiceConfig.getServiceIp(), "9102", 0);
         serviceRegisterEntity.setVisualRange("1|0");
         return serviceRegisterEntity;
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.engine;
+package org.onap.holmes.engine;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
 import io.dropwizard.Configuration;
@@ -22,7 +22,7 @@ import javax.validation.Valid;
 import javax.validation.constraints.NotNull;
 import org.hibernate.validator.constraints.NotEmpty;
 import org.jvnet.hk2.annotations.Service;
-import org.openo.holmes.common.config.MQConfig;
+import org.onap.holmes.common.config.MQConfig;
 
 @Service
 public class EngineDAppConfig extends Configuration {
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.engine.db;
+package org.onap.holmes.engine.db;
 
 
 import java.util.List;
-import org.openo.holmes.common.api.entity.CorrelationRule;
-import org.openo.holmes.engine.db.mapper.CorrelationRuleMapper;
+import org.onap.holmes.engine.db.mapper.CorrelationRuleMapper;
+import org.onap.holmes.common.api.entity.CorrelationRule;
 import org.skife.jdbi.v2.sqlobject.Bind;
 import org.skife.jdbi.v2.sqlobject.SqlQuery;
 import org.skife.jdbi.v2.sqlobject.customizers.RegisterMapper;
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.engine.db.mapper;
+package org.onap.holmes.engine.db.mapper;
 
 import java.sql.ResultSet;
 import java.sql.SQLException;
 import java.util.Properties;
-import org.openo.holmes.common.api.entity.CorrelationRule;
+import org.onap.holmes.common.api.entity.CorrelationRule;
 import org.skife.jdbi.v2.StatementContext;
 import org.skife.jdbi.v2.tweak.ResultSetMapper;
 
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.engine.manager;\r
+package org.onap.holmes.engine.manager;\r
 \r
 \r
 import java.io.Serializable;\r
@@ -49,15 +49,14 @@ import org.drools.runtime.StatefulKnowledgeSession;
 import org.drools.runtime.rule.FactHandle;\r
 import org.glassfish.hk2.api.IterableProvider;\r
 import org.jvnet.hk2.annotations.Service;\r
-import org.openo.holmes.common.api.entity.CorrelationRule;\r
-import org.openo.holmes.common.api.stat.Alarm;\r
-import org.openo.holmes.common.config.MQConfig;\r
-import org.openo.holmes.common.constant.AlarmConst;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.common.utils.ExceptionUtil;\r
-import org.openo.holmes.common.utils.I18nProxy;\r
-import org.openo.holmes.engine.request.DeployRuleRequest;\r
-import org.openo.holmes.engine.wrapper.RuleMgtWrapper;\r
+import org.onap.holmes.engine.request.DeployRuleRequest;\r
+import org.onap.holmes.common.api.entity.CorrelationRule;\r
+import org.onap.holmes.common.api.stat.Alarm;\r
+import org.onap.holmes.common.config.MQConfig;\r
+import org.onap.holmes.common.constant.AlarmConst;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
+import org.onap.holmes.common.utils.ExceptionUtil;\r
+import org.onap.holmes.engine.wrapper.RuleMgtWrapper;\r
 \r
 @Slf4j\r
 @Service\r
@@ -82,8 +81,8 @@ public class DroolsEngine {
             // 2. start mq listener\r
             registerAlarmTopicListener();\r
         } catch (Exception e) {\r
-            log.error("Start service failed: " + e.getMessage(), e);\r
-            throw ExceptionUtil.buildExceptionResponse("Start service failed!");\r
+            log.error("Failed to start the service: " + e.getMessage(), e);\r
+            throw ExceptionUtil.buildExceptionResponse("Failed to start the drools engine!");\r
         }\r
     }\r
 \r
@@ -169,10 +168,7 @@ public class DroolsEngine {
             packageNames.add(packageName);\r
             kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());\r
         } catch (Exception e) {\r
-\r
-            String errorMsg =\r
-                I18nProxy.getInstance().getValue(locale, I18nProxy.ENGINE_DEPLOY_RULE_FAILED);\r
-            throw new CorrelationException(errorMsg, e);\r
+            throw new CorrelationException("Failed to deploy the rule.", e);\r
         }\r
 \r
         ksession.fireAllRules();\r
@@ -185,19 +181,13 @@ public class DroolsEngine {
         KnowledgePackage pkg = kbase.getKnowledgePackage(packageName);\r
 \r
         if (null == pkg) {\r
-            String errorMsg = I18nProxy.getInstance().getValueByArgs(locale,\r
-                I18nProxy.ENGINE_DELETE_RULE_NULL,\r
-                new String[]{packageName});\r
-            throw new CorrelationException(errorMsg);\r
+            throw new CorrelationException("The rule " + packageName + " does not exist!");\r
         }\r
 \r
         try {\r
-\r
             kbase.removeKnowledgePackage(pkg.getName());\r
         } catch (Exception e) {\r
-            String errorMsg = I18nProxy.getInstance().getValueByArgs(locale,\r
-                I18nProxy.ENGINE_DELETE_RULE_FAILED, new String[]{packageName});\r
-            throw new CorrelationException(errorMsg, e);\r
+            throw new CorrelationException("Failed to delete the rule: " + packageName, e);\r
         }\r
     }\r
 \r
@@ -216,9 +206,7 @@ public class DroolsEngine {
     private void judgeRuleContent(Locale locale, KnowledgeBuilder kbuilder, boolean judgePackageName)\r
         throws CorrelationException {\r
         if (kbuilder.hasErrors()) {\r
-            String errorMsg = I18nProxy.getInstance().getValueByArgs(locale,\r
-                I18nProxy.ENGINE_CONTENT_ILLEGALITY,\r
-                new String[]{kbuilder.getErrors().toString()});\r
+            String errorMsg = "There are errors in the rule: " + kbuilder.getErrors().toString();\r
             log.error(errorMsg);\r
             throw new CorrelationException(errorMsg);\r
         }\r
@@ -226,11 +214,7 @@ public class DroolsEngine {
         String packageName = kbuilder.getKnowledgePackages().iterator().next().getName();\r
 \r
         if (packageNames.contains(packageName) && judgePackageName) {\r
-            String errorMsg = I18nProxy.getInstance().getValueByArgs(locale,\r
-                I18nProxy.ENGINE_CONTENT_ILLEGALITY, new String[]{\r
-                    I18nProxy.getInstance().getValue(locale, I18nProxy.ENGINE_CONTAINS_PACKAGE)});\r
-\r
-            throw new CorrelationException(errorMsg);\r
+            throw new CorrelationException("The rule " + packageName + " already exists in the drools engine.");\r
         }\r
     }\r
 \r
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.engine.request;
+package org.onap.holmes.engine.request;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
 import javax.validation.constraints.NotNull;
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.engine.request;
+package org.onap.holmes.engine.request;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
 import javax.validation.constraints.NotNull;
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.engine.resources;
+package org.onap.holmes.engine.resources;
 
 
 import com.codahale.metrics.annotation.Timed;
@@ -32,13 +32,13 @@ import javax.ws.rs.core.Context;
 import javax.ws.rs.core.MediaType;
 import lombok.extern.slf4j.Slf4j;
 import org.jvnet.hk2.annotations.Service;
-import org.openo.holmes.common.exception.CorrelationException;
-import org.openo.holmes.common.utils.ExceptionUtil;
-import org.openo.holmes.common.utils.LanguageUtil;
-import org.openo.holmes.engine.manager.DroolsEngine;
-import org.openo.holmes.engine.request.CompileRuleRequest;
-import org.openo.holmes.engine.request.DeployRuleRequest;
-import org.openo.holmes.engine.response.CorrelationRuleResponse;
+import org.onap.holmes.common.exception.CorrelationException;
+import org.onap.holmes.common.utils.ExceptionUtil;
+import org.onap.holmes.common.utils.LanguageUtil;
+import org.onap.holmes.engine.manager.DroolsEngine;
+import org.onap.holmes.engine.request.CompileRuleRequest;
+import org.onap.holmes.engine.request.DeployRuleRequest;
+import org.onap.holmes.engine.response.CorrelationRuleResponse;
 
 @Service
 @Path("/rule")
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.engine.response;
+package org.onap.holmes.engine.response;
 
 import com.fasterxml.jackson.annotation.JsonProperty;
 import lombok.Getter;
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.engine.utils;
+package org.onap.holmes.engine.utils;
 
 import java.util.HashMap;
 import java.util.Map;
 import org.jvnet.hk2.annotations.Service;
-import org.openo.holmes.common.api.stat.Alarm;
-import org.openo.holmes.common.producer.MQProducer;
+import org.onap.holmes.common.api.stat.Alarm;
+import org.onap.holmes.common.producer.MQProducer;
 
 @Service
 public class AlarmUtil {
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.openo.holmes.engine.wrapper;
+package org.onap.holmes.engine.wrapper;
 
 import java.util.List;
 import javax.inject.Inject;
 import javax.inject.Singleton;
 import lombok.extern.slf4j.Slf4j;
 import org.jvnet.hk2.annotations.Service;
-import org.openo.holmes.common.api.entity.CorrelationRule;
-import org.openo.holmes.common.exception.CorrelationException;
-import org.openo.holmes.common.utils.DbDaoUtil;
-import org.openo.holmes.common.utils.I18nProxy;
-import org.openo.holmes.engine.db.CorrelationRuleDao;
+import org.onap.holmes.engine.db.CorrelationRuleDao;
+import org.onap.holmes.common.api.entity.CorrelationRule;
+import org.onap.holmes.common.exception.CorrelationException;
+import org.onap.holmes.common.utils.DbDaoUtil;
 
 
 @Service
@@ -13,7 +13,7 @@
  * See the License for the specific language governing permissions and\r
  * limitations under the License.\r
  */\r
-package org.openo.holmes.engine;\r
+package org.onap.holmes.engine;\r
 \r
 /**\r
  * Created by Administrator on 2017/2/20.\r
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.engine;\r
+package org.onap.holmes.engine;\r
 \r
 import io.dropwizard.db.DataSourceFactory;\r
 import org.hamcrest.core.IsEqual;\r
@@ -22,7 +22,7 @@ import org.hamcrest.core.IsNull;
 import org.junit.Assert;\r
 import org.junit.Before;\r
 import org.junit.Test;\r
-import org.openo.holmes.common.config.MQConfig;\r
+import org.onap.holmes.common.config.MQConfig;\r
 import org.powermock.api.easymock.PowerMock;\r
 \r
 public class EnginedAppConfigTest {\r
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.engine.db;\r
+package org.onap.holmes.engine.db;\r
 \r
 import org.easymock.EasyMock;\r
 import org.hamcrest.core.IsNull;\r
 import org.junit.Assert;\r
 import org.junit.Before;\r
 import org.junit.Test;\r
-import org.openo.holmes.common.api.entity.CorrelationRule;\r
+import org.onap.holmes.common.api.entity.CorrelationRule;\r
 import org.powermock.api.easymock.PowerMock;\r
 \r
 import java.util.ArrayList;\r
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.engine.manager;\r
+package org.onap.holmes.engine.manager;\r
 \r
 import static org.easymock.EasyMock.anyBoolean;\r
 import static org.easymock.EasyMock.anyInt;\r
@@ -44,13 +44,13 @@ import org.junit.Before;
 import org.junit.Rule;\r
 import org.junit.Test;\r
 import org.junit.rules.ExpectedException;\r
-import org.openo.holmes.common.api.entity.CorrelationRule;\r
-import org.openo.holmes.common.api.stat.Alarm;\r
-import org.openo.holmes.common.config.MQConfig;\r
-import org.openo.holmes.common.constant.AlarmConst;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.engine.request.DeployRuleRequest;\r
-import org.openo.holmes.engine.wrapper.RuleMgtWrapper;\r
+import org.onap.holmes.engine.request.DeployRuleRequest;\r
+import org.onap.holmes.common.api.entity.CorrelationRule;\r
+import org.onap.holmes.common.api.stat.Alarm;\r
+import org.onap.holmes.common.config.MQConfig;\r
+import org.onap.holmes.common.constant.AlarmConst;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
+import org.onap.holmes.engine.wrapper.RuleMgtWrapper;\r
 import org.powermock.api.easymock.PowerMock;\r
 import org.powermock.modules.junit4.rule.PowerMockRule;\r
 import org.powermock.reflect.Whitebox;\r
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.engine.resources;\r
+package org.onap.holmes.engine.resources;\r
 \r
 import org.junit.Before;\r
 import org.junit.Rule;\r
 import org.junit.Test;\r
 import org.junit.rules.ExpectedException;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.engine.manager.DroolsEngine;\r
-import org.openo.holmes.engine.request.CompileRuleRequest;\r
-import org.openo.holmes.engine.request.DeployRuleRequest;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
+import org.onap.holmes.engine.manager.DroolsEngine;\r
+import org.onap.holmes.engine.request.CompileRuleRequest;\r
+import org.onap.holmes.engine.request.DeployRuleRequest;\r
 import org.powermock.api.easymock.PowerMock;\r
 import org.powermock.reflect.Whitebox;\r
 \r
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.engine.response;\r
+package org.onap.holmes.engine.response;\r
 \r
 import org.junit.Test;\r
-import org.openo.holmes.engine.request.DeployRuleRequest;\r
 \r
 import static org.hamcrest.core.IsEqual.equalTo;\r
 import static org.junit.Assert.assertThat;\r
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.engine.utils;\r
+package org.onap.holmes.engine.utils;\r
 \r
 import org.hamcrest.core.IsEqual;\r
 import org.hamcrest.core.IsNull;\r
 import org.junit.Assert;\r
 import org.junit.Before;\r
 import org.junit.Test;\r
-import org.openo.holmes.common.api.stat.Alarm;\r
-import org.openo.holmes.common.producer.MQProducer;\r
+import org.onap.holmes.common.api.stat.Alarm;\r
+import org.onap.holmes.common.producer.MQProducer;\r
 import org.powermock.api.easymock.PowerMock;\r
 import org.powermock.reflect.Whitebox;\r
 \r
@@ -14,7 +14,7 @@
  * limitations under the License.\r
  */\r
 \r
-package org.openo.holmes.engine.wrapper;\r
+package org.onap.holmes.engine.wrapper;\r
 \r
 import static org.easymock.EasyMock.anyInt;\r
 import static org.easymock.EasyMock.anyObject;\r
@@ -25,10 +25,10 @@ import org.junit.Before;
 import org.junit.Rule;\r
 import org.junit.Test;\r
 import org.junit.rules.ExpectedException;\r
-import org.openo.holmes.common.api.entity.CorrelationRule;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.common.utils.DbDaoUtil;\r
-import org.openo.holmes.engine.db.CorrelationRuleDao;\r
+import org.onap.holmes.common.api.entity.CorrelationRule;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
+import org.onap.holmes.common.utils.DbDaoUtil;\r
+import org.onap.holmes.engine.db.CorrelationRuleDao;\r
 import org.powermock.api.easymock.PowerMock;\r
 import org.powermock.reflect.Whitebox;\r
 \r
diff --git a/pom.xml b/pom.xml
index 06c8aa4..b3b0e19 100644 (file)
--- a/pom.xml
+++ b/pom.xml
   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.1.0-SNAPSHOT</version>
-        <relativePath>../oparent</relativePath>
+        <groupId>org.onap.oparent</groupId>
+        <artifactId>version</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+        <relativePath>../../oparent</relativePath>
     </parent>
 
-    <groupId>org.openo.holmes.engine-management</groupId>
+    <groupId>org.onap.holmes.engine-management</groupId>
     <artifactId>holmes-engine-parent</artifactId>
     <packaging>pom</packaging>
     <name>holmes-engine-parent</name>
@@ -56,7 +56,7 @@
         <slf4j.version>1.6.1</slf4j.version>
         <quartz.version>2.2.1</quartz.version>
 
-        <packagename>openo-holmes-engine-d</packagename>
+        <packagename>onap-holmes-engine-d</packagename>
         <linux64id>linux64</linux64id>
         <win64id>win64</win64id>
         <linux64outputdir>target/assembly/${linux64id}</linux64outputdir>
@@ -71,7 +71,7 @@
                 <version>3.0</version>
             </dependency>
             <dependency>
-                <groupId>org.openo.holmes.actions</groupId>
+                <groupId>org.onap.holmes.common</groupId>
                 <artifactId>holmes-actions</artifactId>
                 <version>${project.version}</version>
             </dependency>
                 <version>${stringtemplate.version}</version>
             </dependency>
 
-            <dependency>
-                <groupId>org.openo.common-services.common-utilities</groupId>
-                <artifactId>dropwizard-ioc-container</artifactId>
-                <version>${project.version}</version>
-            </dependency>
-
             <dependency>
                 <groupId>org.quartz-scheduler</groupId>
                 <artifactId>quartz</artifactId>
                 <scope>test</scope>
             </dependency>
 
-            <dependency>
-                <groupId>org.openo.client.cli</groupId>
-                <artifactId>swagger-sdk</artifactId>
-                <version>1.1.0-SNAPSHOT</version>
-            </dependency>
-
             <dependency>
                 <groupId>org.apache.httpcomponents</groupId>
                 <artifactId>httpclient</artifactId>