aboutsummaryrefslogtreecommitdiffstats
path: root/ncomp-maven-parent-project
diff options
context:
space:
mode:
Diffstat (limited to 'ncomp-maven-parent-project')
-rw-r--r--ncomp-maven-parent-project/.project17
-rw-r--r--ncomp-maven-parent-project/LICENSE.txt22
-rw-r--r--ncomp-maven-parent-project/src/main/resources/archetype-resources/.gitignore1
-rw-r--r--ncomp-maven-parent-project/src/main/resources/archetype-resources/.project17
-rw-r--r--ncomp-maven-parent-project/src/main/resources/archetype-resources/.settings/org.eclipse.core.resources.prefs2
-rw-r--r--ncomp-maven-parent-project/src/main/resources/archetype-resources/.settings/org.eclipse.m2e.core.prefs4
-rw-r--r--ncomp-maven-parent-project/src/main/resources/archetype-resources/pom.xml25
-rw-r--r--ncomp-maven-parent-project/src/main/resources/archetype-resources/src/main/resources/setup.sh20
-rw-r--r--ncomp-maven-parent-project/src/main/resources/new_project.sh39
9 files changed, 147 insertions, 0 deletions
diff --git a/ncomp-maven-parent-project/.project b/ncomp-maven-parent-project/.project
new file mode 100644
index 0000000..c402e7e
--- /dev/null
+++ b/ncomp-maven-parent-project/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>ncomp-maven-parent-project</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>
+ </natures>
+</projectDescription>
diff --git a/ncomp-maven-parent-project/LICENSE.txt b/ncomp-maven-parent-project/LICENSE.txt
new file mode 100644
index 0000000..30471b5
--- /dev/null
+++ b/ncomp-maven-parent-project/LICENSE.txt
@@ -0,0 +1,22 @@
+
+/*-
+ * ============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============================================
+ */
+
+ECOMP and OpenECOMP are trademarks and service marks of AT&T Intellectual Property.
diff --git a/ncomp-maven-parent-project/src/main/resources/archetype-resources/.gitignore b/ncomp-maven-parent-project/src/main/resources/archetype-resources/.gitignore
new file mode 100644
index 0000000..b83d222
--- /dev/null
+++ b/ncomp-maven-parent-project/src/main/resources/archetype-resources/.gitignore
@@ -0,0 +1 @@
+/target/
diff --git a/ncomp-maven-parent-project/src/main/resources/archetype-resources/.project b/ncomp-maven-parent-project/src/main/resources/archetype-resources/.project
new file mode 100644
index 0000000..b037bcd
--- /dev/null
+++ b/ncomp-maven-parent-project/src/main/resources/archetype-resources/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>PPPP</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>
+ </natures>
+</projectDescription>
diff --git a/ncomp-maven-parent-project/src/main/resources/archetype-resources/.settings/org.eclipse.core.resources.prefs b/ncomp-maven-parent-project/src/main/resources/archetype-resources/.settings/org.eclipse.core.resources.prefs
new file mode 100644
index 0000000..99f26c0
--- /dev/null
+++ b/ncomp-maven-parent-project/src/main/resources/archetype-resources/.settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+encoding/<project>=UTF-8
diff --git a/ncomp-maven-parent-project/src/main/resources/archetype-resources/.settings/org.eclipse.m2e.core.prefs b/ncomp-maven-parent-project/src/main/resources/archetype-resources/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/ncomp-maven-parent-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-parent-project/src/main/resources/archetype-resources/pom.xml b/ncomp-maven-parent-project/src/main/resources/archetype-resources/pom.xml
new file mode 100644
index 0000000..0151c7a
--- /dev/null
+++ b/ncomp-maven-parent-project/src/main/resources/archetype-resources/pom.xml
@@ -0,0 +1,25 @@
+<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>PPPP</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <name>PPPP</name>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <modules>
+ MMMM
+ </modules>
+
+ <parent>
+ <groupId>org.openecomp.ncomp.maven</groupId>
+ <artifactId>ncomp-maven-base</artifactId>
+ <version>0.1.0-SNAPSHOT</version>
+ <relativePath>../../dcae-org.openecomp.ncomp.maven/ncomp-maven-base</relativePath>
+ </parent>
+</project>
diff --git a/ncomp-maven-parent-project/src/main/resources/archetype-resources/src/main/resources/setup.sh b/ncomp-maven-parent-project/src/main/resources/archetype-resources/src/main/resources/setup.sh
new file mode 100644
index 0000000..33e9e7d
--- /dev/null
+++ b/ncomp-maven-parent-project/src/main/resources/archetype-resources/src/main/resources/setup.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+set -v
+
+#STEP 1 build code
+( cd git/GNAMEEE/PPPP ; mvn clean install ) || exit
+
+#STEP 2 install and start service controller
+bin/ncomp-tool install-sirius-controller GNAMEEE PPPP-server 7112 || exit
+
+#STEP 3 start controller GUI
+bin/ncomp-tool install-sirius-controller-gui PPPP-server "XXXX"
+
+
+#STEP 4 start console and create anormaly
+echo make console
+echo :load scripts/console.groovy
+
+
+
+
diff --git a/ncomp-maven-parent-project/src/main/resources/new_project.sh b/ncomp-maven-parent-project/src/main/resources/new_project.sh
new file mode 100644
index 0000000..997dfcf
--- /dev/null
+++ b/ncomp-maven-parent-project/src/main/resources/new_project.sh
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+GIT=$1
+PREFIX=$2
+GNAMEEEE=$3
+
+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)
+
+SDIR=$(dirname $0)/archetype-resources
+
+DIR=$GIT/$PREFIX
+
+
+if [ -e $DIR ]; then
+ echo $DIR exists
+ exit 1
+fi
+
+echo Creating Maven Parent project $DIR
+
+cp -rp $SDIR $DIR
+
+find $DIR -type f | xargs -I X sed -i s/PPPP/$PREFIX/g X
+find $DIR -type f | xargs -I YY sed -i s/GNAMEEEE/$GNAMEEEE/g YY
+
+for d1 in $(ls -1d $GIT/$PREFIX-*); do
+ d=$(basename $d1)
+ ## echo DIR $d
+ ## echo sed -i "s=MMMM=<module>../$d</module>\nMMMM=" $DIR/pom.xml
+ sed -i "s=MMMM=<module>../$d</module>\n MMMM=" $DIR/pom.xml
+done
+sed -i "s/.*MMMM.*//" $DIR/pom.xml
+
+