diff options
author | lj1412 <lji@research.att.com> | 2017-02-14 15:11:30 +0000 |
---|---|---|
committer | lj1412 <lji@research.att.com> | 2017-02-14 15:11:32 +0000 |
commit | b82c3e96a97c346abdd26fa6a0fe9f657c6a2899 (patch) | |
tree | a41cd50aafb83c9892b33dea906937f7e577cb7e /ncomp-maven-xcore-project/src | |
parent | 7c020e2eb1d12abcb96505cf1ba393eeb2e52e97 (diff) |
Init ncomp.maven
Change-Id: I2feb61bb7e8622fb1f2c03263ed0ceae8e1987d2
Signed-off-by: lj1412 <lji@research.att.com>
Diffstat (limited to 'ncomp-maven-xcore-project/src')
29 files changed, 772 insertions, 0 deletions
diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.classpath b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.classpath new file mode 100644 index 0000000..69b19c6 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.classpath @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" output="target/classes" path="src/main/xcore"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" path="src/main/xcore-gen"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="output" path="target/classes"/> +</classpath> diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.gitignore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.gitignore new file mode 100644 index 0000000..09e3bc9 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.gitignore @@ -0,0 +1,2 @@ +/bin/ +/target/ diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.project b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.project new file mode 100644 index 0000000..48ae0c9 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.project @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>NCOMPNAME-PPPP-model</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.xtext.ui.shared.xtextBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> + </natures> +</projectDescription> diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.settings/org.eclipse.jdt.core.prefs b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..4ede96d --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.settings/org.eclipse.m2e.core.prefs b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/MANIFEST.MF new file mode 100644 index 0000000..9d848d0 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/MANIFEST.MF @@ -0,0 +1,21 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: NCOMPBASE.SSSS.BBBB, + NCOMPBASE.SSSS.BBBB.impl, + NCOMPBASE.SSSS.BBBB.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-core-types;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0" +Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/adaptor:MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/adaptor:MANIFEST.MF new file mode 100644 index 0000000..2c0b508 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/adaptor:MANIFEST.MF @@ -0,0 +1,21 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: NCOMPBASE.SSSS, + NCOMPBASE.SSSS.impl, + NCOMPBASE.SSSS.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-core-types;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0" +Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager:MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager:MANIFEST.MF new file mode 100644 index 0000000..b9b8695 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-cdap-manager:MANIFEST.MF @@ -0,0 +1,28 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: NCOMPBASE.SSSS.manager, + NCOMPBASE.SSSS.manager.impl, + NCOMPBASE.SSSS.manager.util, + NCOMPBASE.SSSS.service, + NCOMPBASE.SSSS.service.impl, + NCOMPBASE.SSSS.service.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + dcae-controller-core-model;visibility:=reexport, + ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-openstack-model;visibility:=reexport, + ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-core-types;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0", + dcae-controller-service-cdap-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-agent-model;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager:MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager:MANIFEST.MF new file mode 100644 index 0000000..ae75246 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-docker-manager:MANIFEST.MF @@ -0,0 +1,28 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: NCOMPBASE.SSSS.manager, + NCOMPBASE.SSSS.manager.impl, + NCOMPBASE.SSSS.manager.util, + NCOMPBASE.SSSS.service, + NCOMPBASE.SSSS.service.impl, + NCOMPBASE.SSSS.service.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + dcae-controller-core-model;visibility:=reexport, + ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-openstack-model;visibility:=reexport, + ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-core-types;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0", + dcae-controller-service-docker-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-agent-model;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager:MANIFEST.MF b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager:MANIFEST.MF new file mode 100644 index 0000000..9198ee6 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/META-INF/dcae-vm-manager:MANIFEST.MF @@ -0,0 +1,28 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: NCOMPNAME-PPPP-model;singleton:=true +Bundle-Version: 0.1.0.qualifier +Bundle-ClassPath: . +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Export-Package: NCOMPBASE.SSSS.manager, + NCOMPBASE.SSSS.manager.impl, + NCOMPBASE.SSSS.manager.util, + NCOMPBASE.SSSS.service, + NCOMPBASE.SSSS.service.impl, + NCOMPBASE.SSSS.service.util +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.xtext.xbase.lib, + org.eclipse.emf.ecore.xcore.lib, + dcae-controller-core-model;visibility:=reexport, + ncomp-core-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-openstack-model;visibility:=reexport, + ncomp-sirius-manager-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-core-types;bundle-version="0.1.0", + ncomp-utils-java;bundle-version="0.1.0", + dcae-controller-service-vm-model;bundle-version="0.1.0";visibility:=reexport, + ncomp-sirius-manager-agent-model;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/build.properties b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/build.properties new file mode 100644 index 0000000..6d35b6f --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/build.properties @@ -0,0 +1,11 @@ +# + +bin.includes = .,\ + src/main/xcore/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src/main/xcore-gen/,\ + src/main/xcore/ +output.. = target/classes/ diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:plugin.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:plugin.xml new file mode 100644 index 0000000..8e8a0ed --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:plugin.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated service --> + <package + uri="NCOMPBASE.SSSS.service" + class="NCOMPBASE.SSSS.service.ServicePackage" + genModel="src/main/xcore/service.xcore"/> + </extension> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated manager --> + <package + uri="NCOMPBASE.SSSS.manager" + class="NCOMPBASE.SSSS.manager.ManagerPackage" + genModel="src/main/xcore/manager.xcore"/> + </extension> + +</plugin> diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:pom.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:pom.xml new file mode 100644 index 0000000..ec2944d --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-cdap-manager:pom.xml @@ -0,0 +1,23 @@ +<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> + <groupId>GNAMEEEE</groupId> + <artifactId>NCOMPNAME-PPPP-model</artifactId> + <parent> + <groupId>org.openecomp.ncomp.maven</groupId> + <artifactId>ncomp-maven-xcore</artifactId> + <version>0.1.0-SNAPSHOT</version> + </parent> + <dependencies> + <dependency> + <groupId>org.openecomp.ncomp.sirius.manager</groupId> + <artifactId>ncomp-sirius-manager-model</artifactId> + <version>0.1.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.openecomp.dcae.controller</groupId> + <artifactId>dcae-controller-service-cdap-model</artifactId> + <version>0.1.0-SNAPSHOT</version> + </dependency> + </dependencies> +</project> diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:plugin.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:plugin.xml new file mode 100644 index 0000000..8e8a0ed --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:plugin.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated service --> + <package + uri="NCOMPBASE.SSSS.service" + class="NCOMPBASE.SSSS.service.ServicePackage" + genModel="src/main/xcore/service.xcore"/> + </extension> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated manager --> + <package + uri="NCOMPBASE.SSSS.manager" + class="NCOMPBASE.SSSS.manager.ManagerPackage" + genModel="src/main/xcore/manager.xcore"/> + </extension> + +</plugin> diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:pom.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:pom.xml new file mode 100644 index 0000000..84200c4 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-docker-manager:pom.xml @@ -0,0 +1,23 @@ +<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> + <groupId>GNAMEEEE</groupId> + <artifactId>NCOMPNAME-PPPP-model</artifactId> + <parent> + <groupId>org.openecomp.ncomp.maven</groupId> + <artifactId>ncomp-maven-xcore</artifactId> + <version>0.1.0-SNAPSHOT</version> + </parent> + <dependencies> + <dependency> + <groupId>org.openecomp.ncomp.sirius.manager</groupId> + <artifactId>ncomp-sirius-manager-model</artifactId> + <version>0.1.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.openecomp.dcae.controller</groupId> + <artifactId>dcae-controller-service-docker-model</artifactId> + <version>0.1.0-SNAPSHOT</version> + </dependency> + </dependencies> +</project> diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:plugin.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:plugin.xml new file mode 100644 index 0000000..8e8a0ed --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:plugin.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated service --> + <package + uri="NCOMPBASE.SSSS.service" + class="NCOMPBASE.SSSS.service.ServicePackage" + genModel="src/main/xcore/service.xcore"/> + </extension> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated manager --> + <package + uri="NCOMPBASE.SSSS.manager" + class="NCOMPBASE.SSSS.manager.ManagerPackage" + genModel="src/main/xcore/manager.xcore"/> + </extension> + +</plugin> diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:pom.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:pom.xml new file mode 100644 index 0000000..c0ae0c5 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/dcae-vm-manager:pom.xml @@ -0,0 +1,23 @@ +<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> + <groupId>GNAMEEEE</groupId> + <artifactId>NCOMPNAME-PPPP-model</artifactId> + <parent> + <groupId>org.openecomp.ncomp.maven</groupId> + <artifactId>ncomp-maven-xcore</artifactId> + <version>0.1.0-SNAPSHOT</version> + </parent> + <dependencies> + <dependency> + <groupId>org.openecomp.ncomp.sirius.manager</groupId> + <artifactId>ncomp-sirius-manager-model</artifactId> + <version>0.1.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>org.openecomp.dcae.controller</groupId> + <artifactId>dcae-controller-service-vm-model</artifactId> + <version>0.1.0-SNAPSHOT</version> + </dependency> + </dependencies> +</project> diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/plugin.properties b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/plugin.properties new file mode 100644 index 0000000..04852d2 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/plugin.properties @@ -0,0 +1,4 @@ +# + +pluginName = Router Model +providerName = www.example.org diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/plugin.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/plugin.xml new file mode 100644 index 0000000..f86f5b2 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/plugin.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> + +<!-- +--> + +<plugin> + + <extension point="org.eclipse.emf.ecore.generated_package"> + <!-- @generated BBBB --> + <package + uri="NCOMPBASE.SSSS" + class="NCOMPBASE.SSSS.ZZZZPackage" + genModel="src/main/xcore/BBBB.xcore"/> + </extension> + +</plugin> diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/pom.xml b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000..564dfb0 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,17 @@ +<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> + <groupId>GNAMEEEE</groupId> + <artifactId>NCOMPNAME-PPPP-model</artifactId> + <parent> + <groupId>org.openecomp.ncomp.maven</groupId> + <artifactId>ncomp-maven-xcore</artifactId> + <version>0.1.0-SNAPSHOT</version> + </parent> + <dependencies> + <dependency> + <groupId>org.openecomp.ncomp.sirius.manager</groupId> + <artifactId>ncomp-sirius-manager-model</artifactId> + <version>0.1.0-SNAPSHOT</version> + </dependency> + </dependencies> +</project> diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/adaptor:adaptor.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/adaptor:adaptor.xcore new file mode 100644 index 0000000..6cff5cc --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/adaptor:adaptor.xcore @@ -0,0 +1,30 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen")
+
+
+package NCOMPBASE.SSSS
+
+
+class AAAAAdaptor {
+}
+
diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:manager.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:manager.xcore new file mode 100644 index 0000000..4ed7427 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:manager.xcore @@ -0,0 +1,36 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen")
+
+
+package NCOMPBASE.SSSS.manager
+
+
+import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer
+import NCOMPBASE.SSSS.service.AAAAServiceConfiguration
+
+// state of manager
+class AAAAManager extends AbstractManagementServer, AAAAServiceConfiguration {
+ op void restart()
+ op String hello_manager(String str)
+}
+
diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:service.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:service.xcore new file mode 100644 index 0000000..2f702b6 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-cdap-manager:service.xcore @@ -0,0 +1,65 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen")
+
+
+package NCOMPBASE.SSSS.service
+
+
+import org.openecomp.ncomp.core.IncreasingULongMetricAttribute
+import org.openecomp.dcae.controller.service.cdap.CdapService
+import org.openecomp.dcae.controller.service.cdap.CdapServiceInstance
+import org.openecomp.ncomp.core.NamedEntity
+
+annotation "http://openecomp.org" as ecomp
+
+class AAAAService extends CdapService {
+ op String hello_service(String instanceName, String str)
+ op void restart(String instanceName)
+}
+
+// state in the controller
+class AAAAServiceInstance extends CdapServiceInstance, AAAAServiceConfiguration {
+}
+
+// state in both controller and manager
+class AAAAServiceConfiguration {
+ @ecomp(^type = "configuration")
+ String cdapUrl
+ @ecomp(^type = "operational")
+ IncreasingULongMetricAttribute numberOfCdapRecords
+ @ecomp(^type = "operational")
+ IncreasingULongMetricAttribute numberOfCdapErrors
+ @ecomp(^type = "configuration")
+ contains ContrailController[] localControllers
+}
+
+class ContrailController extends NamedEntity {
+ @ecomp(^type = "configuration")
+ String contailIp
+ @ecomp(^type = "operational")
+ IncreasingULongMetricAttribute numberOfRecords
+ @ecomp(^type = "operational")
+ IncreasingULongMetricAttribute numberOfErrors
+}
+
+
diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:manager.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:manager.xcore new file mode 100644 index 0000000..4be92d2 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:manager.xcore @@ -0,0 +1,34 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen")
+
+
+package NCOMPBASE.SSSS.manager
+
+
+import org.openecomp.dcae.controller.service.dockermanager.DockerManager
+import NCOMPBASE.SSSS.service.AAAAServiceConfiguration
+
+// state of manager
+class AAAAManager extends DockerManager, AAAAServiceConfiguration {
+}
+
diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:service.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:service.xcore new file mode 100644 index 0000000..18d97ba --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-docker-manager:service.xcore @@ -0,0 +1,46 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen")
+
+
+package NCOMPBASE.SSSS.service
+
+
+import org.openecomp.dcae.controller.service.docker.DockerService
+import org.openecomp.dcae.controller.service.docker.DockerServiceInstance
+
+annotation "http://openecomp.org" as ecomp
+
+class AAAAService extends DockerService {
+}
+
+// state in the controller
+class AAAAServiceInstance extends DockerServiceInstance, AAAAServiceConfiguration {
+}
+
+// state in both controller and manager
+class AAAAServiceConfiguration {
+// @ecomp(^type = "configuration")
+// String cdapUrl
+}
+
+
diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:manager.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:manager.xcore new file mode 100644 index 0000000..421935e --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:manager.xcore @@ -0,0 +1,36 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen")
+
+
+package NCOMPBASE.SSSS.manager
+
+
+import NCOMPBASE.SSSS.service.AAAAServiceConfiguration
+import org.openecomp.dcae.controller.service.vmmanager.VirtualMachineManager
+
+// state of manager
+class AAAAManager extends VirtualMachineManager, AAAAServiceConfiguration {
+ op void restart()
+ op String hello_manager(String str)
+}
+
diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:service.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:service.xcore new file mode 100644 index 0000000..cab5096 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/dcae-vm-manager:service.xcore @@ -0,0 +1,65 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen")
+
+
+package NCOMPBASE.SSSS.service
+
+
+import org.openecomp.ncomp.core.IncreasingULongMetricAttribute
+import org.openecomp.dcae.controller.service.vm.VirtualMachineService
+import org.openecomp.dcae.controller.service.vm.VirtualMachineServiceInstance
+import org.openecomp.ncomp.core.NamedEntity
+
+annotation "http://openecomp.org" as ecomp
+
+class AAAAService extends VirtualMachineService {
+ op String hello_service(String instanceName, String str)
+ op void restart(String instanceName)
+}
+
+// state in the controller
+class AAAAServiceInstance extends VirtualMachineServiceInstance, AAAAServiceConfiguration {
+}
+
+// state in both controller and manager
+class AAAAServiceConfiguration {
+ @ecomp(^type = "configuration")
+ String cdapUrl
+ @ecomp(^type = "operational")
+ IncreasingULongMetricAttribute numberOfCdapRecords
+ @ecomp(^type = "operational")
+ IncreasingULongMetricAttribute numberOfCdapErrors
+ @ecomp(^type = "configuration")
+ contains ContrailController[] localControllers
+}
+
+class ContrailController extends NamedEntity {
+ @ecomp(^type = "configuration")
+ String contrailIp
+ @ecomp(^type = "operational")
+ IncreasingULongMetricAttribute numberOfRecords
+ @ecomp(^type = "operational")
+ IncreasingULongMetricAttribute numberOfErrors
+}
+
+
diff --git a/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/server:server.xcore b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/server:server.xcore new file mode 100644 index 0000000..bcd8cf6 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/archetype-resources/src/main/xcore/server:server.xcore @@ -0,0 +1,32 @@ + +/*- + * ============LICENSE_START========================================== + * OPENECOMP - DCAE + * =================================================================== + * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. + * =================================================================== + * 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. + * ============LICENSE_END============================================ + */ + +@GenModel(modelDirectory="/NCOMPNAME-PPPP-model/src/main/xcore-gen")
+
+
+package NCOMPBASE.SSSS
+
+import org.openecomp.ncomp.sirius.manager.server.SouthBoundApiWithProxy
+import org.openecomp.ncomp.sirius.manager.server.AbstractManagementServer
+
+class AAAAServer extends SouthBoundApiWithProxy, AbstractManagementServer {
+}
+
diff --git a/ncomp-maven-xcore-project/src/main/resources/new_project.sh b/ncomp-maven-xcore-project/src/main/resources/new_project.sh new file mode 100644 index 0000000..3f0a299 --- /dev/null +++ b/ncomp-maven-xcore-project/src/main/resources/new_project.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +RDIR=$1 +PPPP=$2 +## QQQQ=$3 +ZZZZ=$3 +AAAA=$4 +GNAMEEEE=$5 +NCOMPBASE=$6 +NCOMPNAME=$7 + +RRRR=`echo $PPPP | sed s/-//g` +SSSS=`echo $PPPP | sed s/-/./g` +XXXX=`echo $PPPP | sed sx-x/xg` +##TTTT=`echo $QQQQ | sed s/-/./g` +##YYYY=`echo $QQQQ | sed sx-x/xg` +BBBB=$(tr '[:upper:]' '[:lower:]' <<< $ZZZZ) + +## for x in PPPP RRRR SSSS ZZZZ AAAA GNAMEEEE BBBB XXXX NCOMPBASE NCOMPNAME; do echo $x $(eval echo \$$x); done + +SDIR=$(dirname $0)/archetype-resources + +DIR=$RDIR + +## echo cp -rp $SDIR $DIR +cp -rp $SDIR $DIR + +find $DIR -type f | xargs -I X54xx sed -i s/PPPP/$PPPP/g X54xx +## find $DIR -type f | xargs -I X54xx sed -i s/QQQQ/$QQQQ/g X54xx +find $DIR -type f | xargs -I X54xx sed -i s/RRRR/$RRRR/g X54xx +find $DIR -type f | xargs -I X54xx sed -i s/SSSS/$SSSS/g X54xx +##find $DIR -type f | xargs -I X54xx sed -i s/TTTT/$TTTT/g X54xx +find $DIR -type f | xargs -I X54xx sed -i s/ZZZZ/$ZZZZ/g X54xx +find $DIR -type f | xargs -I X54xx sed -i s/AAAA/$AAAA/g X54xx +find $DIR -type f | xargs -I X54xx sed -i s/BBBB/$BBBB/g X54xx +find $DIR -type f | xargs -I YY sed -i s/GNAMEEEE/$GNAMEEEE/g YY +find $DIR -type f | xargs -I YY sed -i s/NCOMPBASE/$NCOMPBASE/g YY +find $DIR -type f | xargs -I YY sed -i s/NCOMPNAME/$NCOMPNAME/g YY + +for file in $(find $DIR -name \*:\*); do + type=$(echo $file | sed sx.*/xx | sed 's/:.*//') + file1=$(echo $file | sed 's/.*://') + ## echo $file $type $file1 + dir=$(dirname $file) + if [ "$BBBB" == "$type" ]; then + mv $file $dir/$file1 + else + rm $file + fi +done |