Bump minor version
[dmaap/messagerouter/messageservice.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 684b684..ce24164 100644 (file)
--- a/pom.xml
+++ b/pom.xml
        <modelVersion>4.0.0</modelVersion>
 
        <parent>
-               <groupId>com.att.ajsc</groupId>
-               <artifactId>ajsc-archetype-parent</artifactId>
-               <version>1.0.0</version>
-               <relativePath></relativePath>
+               <groupId>org.onap.oparent</groupId>
+               <artifactId>oparent</artifactId>
+               <version>0.1.1</version>
        </parent>
+       
        <groupId>org.onap.dmaap.messagerouter.messageservice</groupId>
        <artifactId>dmaapMR1</artifactId>
-       <version>1.0.0-SNAPSHOT</version>
-       <name>Message Router Service</name>
+       <version>1.1.3-SNAPSHOT</version>
+       <name>dmaap-messagerouter-messageservice</name>
        <description>Message Router - Restful interface built for kafka</description>
-       <url>https://github.com/att/dmaap-framework</url>       
         <licenses>
          <license>
-           <name>APache License Version 2.0</name>
+           <name>Apache License Version 2.0</name>
          </license>
        </licenses>
 
           </developer>
         </developers>
        
-
        <build>
                <plugins>
-                       <plugin>
+               <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-site-plugin</artifactId>
+                               <version>3.6</version>
+                               <dependencies>
+                                       <dependency>
+                                               <groupId>org.apache.maven.wagon</groupId>
+                                               <artifactId>wagon-webdav-jackrabbit</artifactId>
+                                               <version>2.10</version>
+                                       </dependency>
+                               </dependencies>
+                       </plugin>
+                       
+                               <plugin>
+                                               <groupId>org.apache.maven.plugins</groupId>
+                                               <artifactId>maven-jar-plugin</artifactId>
+                                               <version>3.0.2</version>
+                               </plugin>
+                                       
+               <!--    <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-javadoc-plugin</artifactId>
                                <version>2.10.4</version>
@@ -74,7 +91,7 @@
                                                </goals>
                                        </execution>
                                </executions>
-                       </plugin>
+                       </plugin> -->
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-source-plugin</artifactId>
                                        </dependency>
                                </dependencies>
                        </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-deploy-plugin</artifactId>
-                               <version>2.5</version>
-                               <configuration>
-                                       <skip>true</skip>
-                               </configuration>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-resources-plugin</artifactId>
-                               <version>2.7</version>
-                               <executions>
-                                       <execution>
-                                               <id>copy-docker-file</id>
-                                               <phase>package</phase>
-                                               <goals>
-                                                       <goal>copy-resources</goal>
-                                               </goals>
-                                               <configuration>
-                                                       <outputDirectory>${dockerLocation}</outputDirectory>
-                                                       <overwrite>true</overwrite>
-                                                       <resources>
-                                                               <resource>
-                                                                       <directory>${basedir}/src/main/resources/docker</directory>
-                                                                       <filtering>true</filtering>
-                                                                       <includes>
-                                                                               <include>**/*</include>
-                                                                       </includes>
-                                                               </resource>
-                                                       </resources>
-                                               </configuration>
-                                       </execution>
-                               </executions>
-                       </plugin>
+
                        <plugin>
                                <groupId>com.spotify</groupId>
                                <artifactId>docker-maven-plugin</artifactId>
-                               <version>0.4.11</version>
+                               <version>1.0.0</version>
                                <configuration>
-                                       <imageName>attos/dmaap</imageName>
-                                       <dockerDirectory>${dockerLocation}</dockerDirectory>
+                                       <imageName>onap/dmaap/dmaap-mr</imageName>
+                                       <dockerDirectory>${dockerLocation}</dockerDirectory> 
                                        <serverId>docker-hub</serverId>
-                                       <registryUrl>https://index.docker.io/v1</registryUrl>
                                        <imageTags>
                                                <imageTag>${dmaapImg}</imageTag>
                                                <imageTag>latest</imageTag>
                                        </imageTags>
                                        <forceTags>true</forceTags>
-                               </configuration>
-                       </plugin>
+                               <resources>
+                                       <resource>
+                                         <targetPath>/</targetPath>
+                                         <directory>${dockerLocation}</directory>
+                                         <include>${project.build.finalName}.jar</include>
+                                       </resource>
+                                       <resource>
+                                         <targetPath>/</targetPath>
+                                         <directory>${project.build.directory}</directory>
+                                         <include>**/**</include>
+                                       </resource>
+                                 </resources>
+                                </configuration>
+                               <executions>
+                          <execution>
+                                       <id>build-image</id>
+                                       <phase>package</phase>
+                                       <goals>
+                                         <goal>build</goal>
+                                       </goals>
+                                       <configuration>
+                                         <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
+                                       </configuration>
+                                 </execution> 
+
+                                 <execution>
+                                       <id>tag-image-project-version</id>
+                                       <phase>package</phase>
+                                       <goals>
+                                         <goal>tag</goal>
+                                       </goals>
+                                       <configuration>
+                                         <image>onap/dmaap/dmaap-mr</image>
+                                         <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</newName>
+                                         <skipDockerTag>${skip.docker.push}</skipDockerTag>
+                                       </configuration>
+                                 </execution>
+                                 
+                                 <execution>
+                                       <id>tag-image-latest</id>
+                                       <phase>package</phase>
+                                       <goals>
+                                         <goal>tag</goal>
+                                       </goals>
+                                       <configuration>
+                                         <image>onap/dmaap/dmaap-mr</image>
+                                         <newName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</newName>
+                                         <skipDockerTag>${skip.docker.push}</skipDockerTag>
+                                       </configuration>
+                                 </execution>
+                                 
+                                <execution>
+                                       <id>push-image-latest</id>
+                                       <phase>deploy</phase>
+                                       <goals>
+                                         <goal>push</goal>
+                                       </goals>
+                                       <configuration>
+                                         <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:${project.version}</imageName>
+                                         <skipDockerPush>${skip.docker.push}</skipDockerPush>
+                                       </configuration>
+                                 </execution>
+                                 
+                                 <execution>
+                                       <id>push-image</id>
+                                       <phase>deploy</phase>
+                                       <goals>
+                                         <goal>push</goal>
+                                       </goals>
+                                       <configuration>
+                                         <imageName>${docker.push.registry}/onap/dmaap/dmaap-mr:latest</imageName>
+                                         <skipDockerPush>${skip.docker.push}</skipDockerPush>
+                                       </configuration>
+                                 </execution>
+                               </executions>
+                       </plugin>                                                                                                                                                                                                                                                                                                        
                        <plugin>
                                <groupId>com.blackducksoftware.integration</groupId>
                                <artifactId>hub-maven-plugin</artifactId>
                                        </execution>
                                </executions>
                        </plugin>
+                       
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-gpg-plugin</artifactId>
-                               <version>1.5</version>
-                               <executions>
-                                       <execution>
-                                               <id>sign-artifacts</id>
-                                               <phase>verify</phase>
-                                               <goals>
-                                                       <goal>sign</goal>
-                                               </goals>
-                                       </execution>
-                               </executions>
-                       </plugin>       
-                       <plugin>
-                               <groupId>org.sonatype.plugins</groupId>
-                               <artifactId>nexus-staging-maven-plugin</artifactId>
-                               <version>1.6.7</version>
-                               <extensions>true</extensions>
+                               <artifactId>maven-compiler-plugin</artifactId>
+                               <version>3.1</version>
                                <configuration>
-                                       <nexusUrl>${nexusproxy}</nexusUrl>
-                                       <stagingProfileId>176c31dfe190a</stagingProfileId>
-                                       <serverId>ecomp-staging</serverId>
-                                       <skipNexusStagingDeployMojo>${skip.staging.artifacts}</skipNexusStagingDeployMojo>
+                                       <compilerId>groovy-eclipse-compiler</compilerId>
+                                       <verbose>true</verbose>
+                                       <source>1.7</source>
+                                       <target>1.7</target>
                                </configuration>
-                       </plugin>               
+                               <dependencies>
+                                       <dependency>
+                                               <groupId>org.codehaus.groovy</groupId>
+                                               <artifactId>groovy-eclipse-compiler</artifactId>
+                                               <version>2.8.0-01</version>
+                                       </dependency>
+                                       <dependency>
+                                               <groupId>org.codehaus.groovy</groupId>
+                                               <artifactId>groovy-eclipse-batch</artifactId>
+                                               <version>2.1.5-03</version>
+                                       </dependency>
+                               </dependencies>
+                       </plugin>
                        <plugin>
-                               <groupId>org.jacoco</groupId>
-                               <artifactId>jacoco-maven-plugin</artifactId>
-                               <version>0.7.7.201606060606</version>
-                               <configuration>
-                                       <dumpOnExit>true</dumpOnExit>
-                                       <includes>
-                                               <include>org.onap.clamp.*</include>
-                                       </includes>
-                               </configuration>
-                               <executions>
-                                       <execution>
-                                               <id>pre-unit-test</id>
-                                               <goals>
-                                                       <goal>prepare-agent</goal>
-                                               </goals>
-                                               <configuration>
-                                                       <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
-                                                       <!-- <append>true</append> -->
-                                               </configuration>
-                                       </execution>
-                                       <execution>
-                                               <id>pre-integration-test</id>
-                                               <phase>pre-integration-test</phase>
-                                               <goals>
-                                                       <goal>prepare-agent</goal>
-                                               </goals>
-                                               <configuration>
-                                                       <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
-                                                       <!-- <append>true</append> -->
-                                               </configuration>
-                                       </execution>
-                                       <execution>
-                        <goals>
-                            <goal>merge</goal>
-                        </goals>
-                        <phase>post-integration-test</phase>
-                        <configuration>
-                            <fileSets>
-                                <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
-                                    <directory>${project.build.directory}/coverage-reports</directory>
-                                    <includes>
-                                        <include>*.exec</include>
-                                    </includes>
-                                </fileSet>
-                            </fileSets>
-                            <destFile>${project.build.directory}/jacoco-dev.exec</destFile>
-                        </configuration>
-                    </execution>
-                               </executions>
+                               <groupId>org.codehaus.groovy</groupId>
+                               <artifactId>groovy-eclipse-compiler</artifactId>
+                               <version>2.8.0-01</version>
+                               <extensions>true</extensions>
                        </plugin>
                                        
                </plugins>
        <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                <dockerLocation>${basedir}/target/swm/package/nix/dist_files/</dockerLocation>
-               <docker.registry>hub.docker.com</docker.registry>
+               <docker.image.prefix>simpledemo</docker.image.prefix>
 
                <module.ajsc.namespace.name>dmaap</module.ajsc.namespace.name>
                <module.ajsc.namespace.version>v1</module.ajsc.namespace.version>
        
                <testRouteOffer>workstation</testRouteOffer>
                <testEnv>DEV</testEnv>
-               <dmaapImg>1.0.19</dmaapImg>
-               
-               <sonar.language>java</sonar.language>
-               <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
-               <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
-               <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
-               <sonar.jacoco.itReportPath>${project.build.directory}/coverage-reports/jacoco-it.exec</sonar.jacoco.itReportPath>
-               <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
-               <sonar.projectVersion>${project.version}</sonar.projectVersion>
-               
-                       <nexusproxy>https://nexus.onap.org</nexusproxy>
-               <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
-               <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
-               <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
-               <sitePath>/content/sites/site/org/onap/clamp/${project.version}</sitePath>
+               <dmaapImg>${project.version}</dmaapImg>
+               <camel.version>2.15.5</camel.version>
+               <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/messageservice/${project.artifactId}/${project.version}</sitePath>
+               <skip.docker.build>true</skip.docker.build>
+        <skip.docker.push>true</skip.docker.push>
+               <nexusproxy>https://nexus.onap.org</nexusproxy>
+               <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
        </properties>
 
        <!-- Distribution management -->
-
+       <distributionManagement>
+               <site>
+                       <id>ecomp-site</id>
+                       <url>dav:${nexusproxy}${sitePath}</url>
+               </site>
+       </distributionManagement>
 
        <!-- End Distribution management -->
 
                        <version>1.3.2</version>
                </dependency>
                <dependency>
-                       <groupId>com.att.nsa</groupId>
-                       <artifactId>msgrtr</artifactId>
-                       <version>0.0.5</version>
+                           <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
+                               <artifactId>msgrtr</artifactId>
+                               <version>1.0.0</version>
                        <exclusions>
                                <exclusion>
                                        <groupId>org.slf4j</groupId>
                        <artifactId>jackson-jaxrs</artifactId>
                        <version>1.9.13</version>
                </dependency>
+               
+               <dependency>
+                       <groupId>org.codehaus.jackson</groupId>
+                       <artifactId>jackson-mapper-asl</artifactId>
+                       <version>1.9.13</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.codehaus.jackson</groupId>
+                       <artifactId>jackson-core-asl</artifactId>
+                       <version>1.9.13</version>
+               </dependency>
+               
+               <dependency>
+                       <groupId>com.fasterxml.jackson.core</groupId>
+                       <artifactId>jackson-core</artifactId>
+                       <version>2.4.3</version>
+               </dependency>
+               
+               <dependency>
+                   <groupId>com.fasterxml.jackson.core</groupId>
+                   <artifactId>jackson-databind</artifactId>
+                   <version>2.3.3</version>
+               </dependency>
+               
+               <dependency>
+               <groupId>junit</groupId>
+               <artifactId>junit</artifactId>
+               <version>4.11</version>
+               <scope>test</scope>
+      </dependency>
 
                <dependency>
                        <groupId>org.json</groupId>
                        <artifactId>jettison</artifactId>
                        <version>1.3.7</version>
                </dependency>
-               <!-- dme2 related dependencies -->
-                <!-- <dependency>
-                       <groupId>net.cingular.enterprise</groupId>
-                       <artifactId>csm-framework</artifactId>
-                       <version>${csm.version}</version>
-                       <scope>provided</scope>
-               </dependency>
-               <dependency>
-                       <groupId>net.cingular.enterprise</groupId>
-                       <artifactId>csm-jmxsupport-jdk</artifactId>
-                       <version>${csm.version}</version>
-                       <scope>provided</scope>
-               </dependency>
-               <dependency>
-                       <groupId>net.cingular.enterprise</groupId>
-                       <artifactId>csm-jmx</artifactId>
-                       <version>${csm.version}</version>
-                       <scope>provided</scope>
-               </dependency> -->
 
-               <!-- For dom4j dependency ONLY! - If deploying to CSI env, remove "provided" 
-                       scope. In CSI env, this jar MUST be included within service project's swm 
-                       package -->
                <dependency>
                        <groupId>dom4j</groupId>
                        <artifactId>dom4j</artifactId>
                <dependency>
                        <groupId>com.att.aft</groupId>
                        <artifactId>dme2</artifactId>
-                       <version>${dme2.version}</version>
+                       <version>3.1.200</version>
                        <!-- <scope>provided</scope> -->
                </dependency>
                <dependency>
                        <artifactId>rosetta</artifactId>
                        <version>1.2.11</version>
                </dependency>                   
+               <dependency>
+                       <groupId>backport-util-concurrent</groupId>
+                       <artifactId>backport-util-concurrent</artifactId>
+                       <version>3.1</version>
+               </dependency>
+               <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-core</artifactId>
+                               <version>${camel.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-quartz</artifactId>
+                               <version>${camel.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-spring</artifactId>
+                               <version>${camel.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-restlet</artifactId>
+                               <version>${camel.version}</version>
+                               <exclusions>
+                                       <exclusion>
+                                               <artifactId>org.restlet</artifactId>
+                                               <groupId>org.restlet.jse</groupId>
+                                       </exclusion>
+                               </exclusions>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-servlet</artifactId>
+                               <version>${camel.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-http4</artifactId>
+                               <version>${camel.version}</version>
+                               <exclusions>
+                                       <exclusion>
+                                               <groupId>org.apache.geronimo.specs</groupId>
+                                               <artifactId>geronimo-servlet_2.5_spec</artifactId>
+                                       </exclusion>
+                               </exclusions>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-groovy</artifactId>
+                               <version>${camel.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-twitter</artifactId>
+                               <version>${camel.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-mail</artifactId>
+                               <version>${camel.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-smpp</artifactId>
+                               <version>${camel.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-jms</artifactId>
+                               <version>${camel.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-script</artifactId>
+                               <version>${camel.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-xmpp</artifactId>
+                               <version>${camel.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.apache.camel</groupId>
+                               <artifactId>camel-velocity</artifactId>
+                               <version>${camel.version}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>com.att.ajsc</groupId>
+                               <artifactId>ajsc-runner</artifactId>
+                               <version>1.0.0</version>
+                               <scope>runtime</scope>
+                       </dependency>
+                       <dependency>
+                               <groupId>com.att.ajsc</groupId>
+                               <artifactId>ajsc-core</artifactId>
+                               <version>1.0.0</version>
+                               <scope>provided</scope>
+                       </dependency>
        </dependencies>
        <!-- <build> <resources> <resource> <directory>${basedir}/ajsc-shared-config/etc</directory> 
                </resource> </resources> </build> -->
                <!-- Use this profile to run the AJSC locally. This profile can be successfully 
                        shutdown WITHIN eclipse even in a Windows environment. Debugging is also 
                        available with this profile. -->
+       <profile>
+      <id>docker</id>
+      <properties>
+        
+        <skip.docker.build>false</skip.docker.build>
+        <skip.docker.tag>false</skip.docker.tag>
+        <skip.docker.push>false</skip.docker.push>
+      </properties>
+    </profile>
+    
+    <profile>
+                       <id>runLocal</id>
+                       <build>
+                               <defaultGoal>initialize</defaultGoal>
+                               <plugins>
+                                       <plugin>
+                                               <groupId>org.apache.maven.plugins</groupId>
+                                               <artifactId>maven-antrun-plugin</artifactId>
+                                               <executions>
+                                                       <execution>
+                                                               <phase>initialize</phase>
+                                                               <configuration>
+                                                                       <target name="runLocal">
+                                                                               <ant antfile="${basedir}/antBuild/build.xml" target="runLocal" />
+                                                                       </target>
+                                                               </configuration>
+                                                               <goals>
+                                                                       <goal>run</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                               </plugins>
+                       </build>
+               </profile>
+       
                <profile>
                        <id>runAjsc</id>
                        <build>
                                                </dependencies>
                                        </plugin>
 
+                               </plugins>
+                       </build>
+               </profile>
+               <profile>
+                       <id>standardbuild</id>
+                       <activation>
+                               <file>
+                                       <exists>src</exists>
+                               </file>
+                       </activation>
+                       <build>
+                               <resources>
+                                       <resource>
+                                               <directory>src/main/resources</directory>
+                                               <excludes>
+                                                       <exclude>extApps/*.*</exclude>
+                                                       <exclude>${module.ajsc.namespace.name}/**</exclude>
+                                               </excludes>
+                                       </resource>
+                                       <resource>
+                                               <directory>src/main/ajsc/\${namespace}_${namespaceVersion}/\${namespace}/\${namespaceVersion}</directory>
+                                               <excludes>
+                                                       <exclude>**/*.route</exclude>
+                                                       <exclude>**/*.props</exclude>
+                                                       <exclude>**/*.xslt</exclude>
+                                                       <exclude>**/*.vm</exclude>
+                                                       <exclude>**/*.jar</exclude>
+                                                       <exclude>**/*.xml</exclude>
+                                               </excludes>
+                                       </resource>
+                               </resources>
+                               <plugins>
                                        <plugin>
                                                <groupId>org.apache.maven.plugins</groupId>
+                                               <artifactId>maven-compiler-plugin</artifactId>
+                                               <version>3.1</version>
+                                       </plugin>
+                                       <plugin>
+                                               <groupId>org.codehaus.groovy</groupId>
+                                               <artifactId>groovy-eclipse-compiler</artifactId>
+                                               <version>2.8.0-01</version>
+                                               <extensions>true</extensions>
+                                       </plugin>
+                                       
+                                       <plugin>
+                                               <groupId>org.codehaus.mojo</groupId>
+                                               <artifactId>exec-maven-plugin</artifactId>
+                                               <version>1.2.1</version>
+                                               <executions>
+                                                       <execution>
+                                                               <goals>
+                                                                       <goal>exec</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                               <configuration>
+                                                       <executable>bash</executable>
+                                                       <arguments>
+                                                               <argument>runServer.sh</argument>
+                                                       </arguments>
+                                               </configuration>
+                                       </plugin>
+                                       <plugin>
+                                               <groupId>org.codehaus.mojo</groupId>
+                                               <artifactId>build-helper-maven-plugin</artifactId>
+                                               <version>1.9</version>
+                                               <executions>
+                                                       <execution>
+                                                               <id>add-source-groovy-ajsc-arch-parent</id>
+                                                               <phase>generate-sources</phase>
+                                                               <goals>
+                                                                       <goal>add-source</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <sources>
+                                                                               <source>src/main/groovy</source>
+                                                                       </sources>
+                                                               </configuration>
+                                                       </execution>
+                                                       <execution>
+                                                               <id>add-test-source-groovy-ajsc-arch-parent</id>
+                                                               <phase>generate-test-sources</phase>
+                                                               <goals>
+                                                                       <goal>add-test-source</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <sources>
+                                                                               <source>src/test/groovy</source>
+                                                                       </sources>
+                                                               </configuration>
+                                                       </execution>
+                                                       <execution>
+                                                               <id>regex-properties-ajsc-arch-parent</id>
+                                                               <phase>initialize</phase>
+                                                               <goals>
+                                                                       <goal>regex-properties</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <regexPropertySettings>
+                                                                               <regexPropertySetting>
+                                                                                       <name>replaceWinFilePath</name>
+                                                                                       <value>${runAjscHome}</value>
+                                                                                       <regex>\\</regex>
+                                                                                       <replacement>/</replacement>
+                                                                                       <failIfNoMatch>false</failIfNoMatch>
+                                                                               </regexPropertySetting>
+                                                                               <regexPropertySetting>
+                                                                                       <name>replaceWinBasedirPath</name>
+                                                                                       <value>${basedir}</value>
+                                                                                       <regex>\\</regex>
+                                                                                       <replacement>/</replacement>
+                                                                                       <failIfNoMatch>false</failIfNoMatch>
+                                                                               </regexPropertySetting>
+                                                                       </regexPropertySettings>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                                       <plugin>
+                                               <groupId>org.codehaus.mojo</groupId>
+                                               <artifactId>properties-maven-plugin</artifactId>
+                                               <version>1.0-alpha-2</version>
+                                               <executions>
+                                                       <execution>
+                                                               <id>write-project-properties-ajsc-arch-parent</id>
+                                                               <phase>generate-resources</phase>
+                                                               <goals>
+                                                                       <goal>write-project-properties</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <outputFile>
+                                                                               ${project.build.outputDirectory}/build.properties
+                                                                       </outputFile>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                                       <plugin>
+                                               <groupId>org.apache.maven.plugins</groupId>
+                                               <artifactId>maven-assembly-plugin</artifactId>
+                                               <version>2.4</version>
+                                               <executions>
+                                                       <execution>
+                                                               <id>make-assembly-ajsc-arch-parent</id>
+                                                               <phase>package</phase>
+                                                               <goals>
+                                                                       <goal>single</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                               <configuration>
+                                                       <finalName>${project.artifactId}</finalName>
+                                                       <descriptors>
+                                                               <descriptor>src/main/assemble/ajsc_runtime_assembly.xml</descriptor>
+                                                       </descriptors>
+                                               </configuration>
+                                       </plugin>
+                                       <plugin>
+                                               <groupId>org.codehaus.groovy.maven</groupId>
+                                               <artifactId>gmaven-plugin</artifactId>
+                                               <version>1.0</version>
+                                               <executions>
+                                                       <execution>
+                                                               <id>gmaven-ajsc-arch-parent</id>
+                                                               <phase>package</phase>
+                                                               <goals>
+                                                                       <goal>execute</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <sourcepath>src/main/groovy</sourcepath>
+                                                                       <source>
+                                                                               import ajsc.AssemblyService;
+                                                                               ajsc.AssemblyService.getBasedir(project.basedir.getAbsolutePath(),"${distFilesRoot}")
+                                                                       </source>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                                       <plugin>
+                                               <groupId>org.apache.maven.plugins</groupId>
+                                               <artifactId>maven-antrun-plugin</artifactId>
+                                               <version>1.7</version>
+                                               <executions>
+                                                       <execution>
+                                                               <id>prep_service_runtime-ajsc-arch-parent</id>
+                                                               <phase>generate-resources</phase>
+                                                               <configuration>
+                                                                       <target name="prep_service_runtime">
+                                                                               <echo message="ENTERING 'copy_services_template' ant tasks" />
+                                                                               <!-- <filter token="basedir" value="${basedir}" /> -->
+                                                                               <!-- delete any prior stating stuff before package phase -->
+                                                                               <delete dir="target/versioned-ajsc" includes="**/*" />
+                                                                               <delete dir="target/versioned-runtime" includes="**/*" />
+                                                                               <delete dir="target/CDP" includes="**/*" />
+
+                                                                               <!-- This is where replacer plugin replaces tokens (Example: __module_ajsc_namespace_name__ 
+                                                                                       is replaced by module.ajsc.namespace.name) -->
+                                                                               <copy todir="target/versioned-ajsc">
+                                                                                       <fileset dir="src/main/ajsc" includes="**/*" />
+                                                                               </copy>
+
+                                                                               <!-- Copying the CDP, bundleconfig, and StaticContent to the target 
+                                                                                       directory for future use by replacer plugin -->
+                                                                               <copy todir="target/CDP" failonerror="false">
+                                                                                       <fileset dir="CDP" includes="**/*.sh" />
+                                                                               </copy>
+                                                                               <copy flatten="true" file="CDP/SampleBlueprint.xml"
+                                                                                       failonerror="false"
+                                                                                       tofile="target/CDP/${module.ajsc.namespace.name}Blueprint.xml" />
+                                                                               <copy todir="target/staticContent" failonerror="false">
+                                                                                       <fileset dir="staticContent" includes="**/*" />
+                                                                               </copy>
+                                                                               <copy todir="target/bundleconfig" failonerror="false">
+                                                                                       <!-- filtering="true"> -->
+                                                                                       <fileset dir="bundleconfig" />
+                                                                               </copy>
+
+                                                                               <echo message="EXITING 'copy_services_template' ant tasks" />
+                                                                               <echo message="ENTERING 'copy_runtime_template' ant tasks" />
+                                                                               <copy todir="target/versioned-runtime">
+                                                                                       <fileset dir="src/main/runtime" includes="**/*" />
+                                                                               </copy>
+                                                                               <delete
+                                                                                       file="target/versioned-runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context" />
+                                                                               <copy flatten="true"
+                                                                                       file="src/main/runtime/context/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.context"
+                                                                                       tofile="target/versioned-runtime/context/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.context" />
+                                                                               <delete
+                                                                                       file="target/versioned-runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json" />
+                                                                               <copy flatten="true"
+                                                                                       file="src/main/runtime/deploymentPackage/__module.ajsc.namespace.name__#__module.ajsc.namespace.version__.json"
+                                                                                       tofile="target/versioned-runtime/deploymentPackage/${module.ajsc.namespace.name}#${module.ajsc.namespace.version}.json" />
+                                                                               <delete
+                                                                                       file="target/versioned-runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json" />
+                                                                               <copy flatten="true"
+                                                                                       file="src/main/runtime/shiroRole/contextadmin#__module.ajsc.namespace.name__.json"
+                                                                                       tofile="target/versioned-runtime/shiroRole/contextadmin#${module.ajsc.namespace.name}.json" />
+                                                                               <delete
+                                                                                       file="target/versioned-runtime/shiroUserRole/ajsc#contextAdmin#__module.ajsc.namespace.name__.json" />
+                                                                               <copy flatten="true"
+                                                                                       file="src/main/runtime/shiroUserRole/ajsc#contextadmin#__module.ajsc.namespace.name__.json"
+                                                                                       tofile="target/versioned-runtime/shiroUserRole/ajsc#contextadmin#${module.ajsc.namespace.name}.json" />
+                                                                               <echo message="EXITING 'copy_runtime_template' ant tasks" />
+                                                                       </target>
+                                                               </configuration>
+                                                               <goals>
+                                                                       <goal>run</goal>
+                                                               </goals>
+                                                       </execution>
+                                                       <execution>
+                                                               <id>clrf</id>
+                                                               <phase>package</phase>
+                                                               <configuration>
+                                                                       <tasks>
+                                                                               <fixcrlf
+                                                                                       srcdir="${basedir}/target/swm/package/nix/dist_files${distFilesRoot}"
+                                                                                       includes="**/*.sh,**/*.xml,**/*.properties,**/*.xsd" />
+                                                                       </tasks>
+                                                               </configuration>
+                                                               <goals>
+                                                                       <goal>run</goal>
+                                                               </goals>
+                                                       </execution>
+                                                       <execution>
+                                                               <id>prep_home_directory_for_swm_pkgcreate-ajsc-arch-parent</id>
+                                                               <phase>package</phase>
+                                                               <configuration>
+                                                                       <target name="prep_home_directory_for_swm_pkgcreate">
+                                                                               <ant antfile="${basedir}/antBuild/build.xml" target="prep_home_directory_for_swm_pkgcreate" />
+                                                                       </target>
+                                                               </configuration>
+                                                               <goals>
+                                                                       <goal>run</goal>
+                                                               </goals>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                                       <plugin>
+                                               <groupId>org.apache.maven.plugins</groupId>
+                                               <artifactId>maven-dependency-plugin</artifactId>
+                                               <version>2.8</version>
+                                               <executions>
+                                                       <execution>
+                                                               <id>copy-dependencies-ajsc-arch-parent</id>
+                                                               <phase>prepare-package</phase>
+                                                               <goals>
+                                                                       <goal>copy-dependencies</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <includeScope>runtime</includeScope>
+                                                                       <excludeArtifactIds>ajsc-bom,ajsc-core,ajsc-runner,ajsc-war</excludeArtifactIds>
+                                                                       <outputDirectory>${project.build.directory}/userjars</outputDirectory>
+                                                                       <silent>true</silent>
+                                                               </configuration>
+                                                       </execution>
+                                                       <execution>
+                                                               <id>copy-dependencies-ajsc-arch-parent-commonLibs</id>
+                                                               <phase>prepare-package</phase>
+                                                               <goals>
+                                                                       <goal>copy-dependencies</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <includeScope>provided</includeScope>
+                                                                       <includeGroupIds>net.cingular.enterprise,com.att.aft,dom4j</includeGroupIds>
+                                                                       <!-- <includeGroupIds>com.att.aft</includeGroupIds> -->
+                                                                       <outputDirectory>${project.build.directory}/commonLibs</outputDirectory>
+                                                                       <silent>true</silent>
+                                                               </configuration>
+                                                       </execution>
+                                                       <execution>
+                                                               <id>copyrunner</id>
+                                                               <phase>prepare-package</phase>
+                                                               <goals>
+                                                                       <goal>copy-dependencies</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <includeArtifactIds>ajsc-runner</includeArtifactIds>
+                                                                       <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/lib</outputDirectory>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
+                                       <plugin>
                                                <artifactId>maven-resources-plugin</artifactId>
                                                <version>2.7</version>
                                                <executions>
                                                        <execution>
-                                                               <id>copy-docker-file</id>
+                                                               <id>copyconfig</id>
                                                                <phase>package</phase>
                                                                <goals>
                                                                        <goal>copy-resources</goal>
                                                                </goals>
                                                                <configuration>
-                                                                       <outputDirectory>${dockerLocation}</outputDirectory>
-                                                                       <overwrite>true</overwrite>
+                                                                       <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/etc</outputDirectory>
                                                                        <resources>
                                                                                <resource>
-                                                                                       <directory>${basedir}/src/main/resources/docker</directory>
-                                                                                       <filtering>true</filtering>
-                                                                                       <includes>
-                                                                                               <include>**/*</include>
-                                                                                       </includes>
+                                                                                       <directory>src/main/config</directory>
                                                                                </resource>
                                                                        </resources>
                                                                </configuration>
                                                        </execution>
-                                               </executions>
-                                       </plugin>
-                                       <plugin>
-                                               <groupId>com.spotify</groupId>
-                                               <artifactId>docker-maven-plugin</artifactId>
-                                               <version>0.4.11</version>
+                                                       <execution>
+                                                               <id>copyscript</id>
+                                                               <phase>package</phase>
+                                                               <goals>
+                                                                       <goal>copy-resources</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <outputDirectory>${basedir}/target/swm/package/nix/dist_files${distFilesRoot}/bin</outputDirectory>
+                                                                       <resources>
+                                                                               <resource>
+                                                                                       <directory>src/main/scripts</directory>
+                                                                               </resource>
+                                                                       </resources>
+                                                               </configuration>
+                                                       </execution>
+                                       <execution>
+                                               <id>copy-docker-file</id>
+                                               <phase>prepare-package</phase>
+                                               <goals>
+                                                       <goal>copy-resources</goal>
+                                               </goals>
                                                <configuration>
-                                                       <imageName>${docker.registry}/${project.artifactId}</imageName>
-                                                       <dockerDirectory>${dockerLocation}</dockerDirectory>
-                                                       <serverId>docker-hub</serverId>
-                                                       <registryUrl>https://${docker.registry}</registryUrl>
-                                                       <imageTags>
-                                                               <imageTag>${dmaapImg}</imageTag>
-                                                               <imageTag>latest</imageTag>
-                                                       </imageTags>
-                                                       <forceTags>true</forceTags>
+                                                       <outputDirectory>${dockerLocation}</outputDirectory>
+                                                       <overwrite>true</overwrite>
+                                                       <resources>
+                                                               <resource>
+                                                                       <directory>${basedir}/src/main/resources/docker</directory>
+                                                                       <filtering>true</filtering>
+                                                                       <includes>
+                                                                               <include>**/*</include>
+                                                                       </includes>
+                                                               </resource>
+                                                       </resources>
                                                </configuration>
+                                       </execution>
+
+                                               </executions>
                                        </plugin>
 
+                                       <plugin>
+                                               <groupId>com.google.code.maven-replacer-plugin</groupId>
+                                               <artifactId>replacer</artifactId>
+                                               <version>1.5.2</version>
+                                               <executions>
+                                                       <execution>
+                                                               <id>google-replacer-ajsc-arch-parent</id>
+                                                               <phase>prepare-package</phase>
+                                                               <goals>
+                                                                       <goal>replace</goal>
+                                                               </goals>
+                                                               <configuration>
+                                                                       <basedir>${project.build.directory}</basedir>
+                                                                       <includes>
+                                                                               <include>staticContent/**/*.html</include>
+                                                                               <include>CDP/**</include>
+                                                                               <include>bundleconfig/**</include>
+                                                                               <include>versioned-runtime/**/*.context</include>
+                                                                               <include>versioned-runtime/**/*.json</include>
+                                                                               <include>versioned-ajsc/**/*.route</include>
+                                                                               <include>versioned-ajsc/**/*.groovy</include>
+                                                                               <include>versioned-ajsc/**/*.xml</include>
+                                                                               <include>classes/*.properties</include>
+                                                                               <include>swm/package/nix/dist_files${distFilesRoot}/etc/*.properties</include>
+                                                                       </includes>
+                                                                       <escape>true</escape>
+                                                                       <replacements>
+                                                                               <replacement>
+                                                                                       <token>__module_ajsc_namespace_name__</token>
+                                                                                       <value>${module.ajsc.namespace.name}</value>
+                                                                               </replacement>
+                                                                               <replacement>
+                                                                                       <token>__module_ajsc_namespace_version__</token>
+                                                                                       <value>${module.ajsc.namespace.version}</value>
+                                                                               </replacement>
+                                                                               <replacement>
+                                                                                       <token>__ajscHome__</token>
+                                                                                       <value>${replaceWinFilePath}</value>
+                                                                               </replacement>
+                                                                               <replacement>
+                                                                                       <token>__projectGroupId__</token>
+                                                                                       <value>${project.groupId}</value>
+                                                                               </replacement>
+                                                                               <replacement>
+                                                                                       <token>__projectArtifactId__</token>
+                                                                                       <value>${project.artifactId}</value>
+                                                                               </replacement>
+                                                                               <replacement>
+                                                                                       <token>__projectVersion__</token>
+                                                                                       <value>${project.version}</value>
+                                                                               </replacement>
+                                                                               <replacement>
+                                                                                       <token>__basedir__</token>
+                                                                                       <value>${replaceWinBasedirPath}</value>
+                                                                               </replacement>
+                                                                       </replacements>
+                                                               </configuration>
+                                                       </execution>
+                                               </executions>
+                                       </plugin>
                                </plugins>
+                               <pluginManagement>
+                                       <plugins>
+                                               <plugin>
+                                                       <groupId>org.apache.maven.plugins</groupId>
+                                                       <artifactId>maven-surefire-plugin</artifactId>
+                                                       <version>2.14.1</version>
+                                                       <configuration>
+                                                               <excludes>
+                                                                       <exclude>**/AbstractTest.java</exclude>
+                                                               </excludes>
+                                                       </configuration>
+                                               </plugin>
+                                       </plugins>
+                               </pluginManagement>
                        </build>
                </profile>
        </profiles>
        
-       <distributionManagement>
-               <repository>
-                       <id>ecomp-releases</id>
-                       <name>Clamp Release Repository</name>
-                       <url>${nexusproxy}/${releaseNexusPath}</url>
-               </repository>
-               <snapshotRepository>
-                       <id>ecomp-snapshots</id>
-                       <name>Clamp Snapshot Repository</name>
-                       <url>${nexusproxy}/${snapshotNexusPath}</url>
-               </snapshotRepository>
-               <site>
-                       <id>ecomp-site</id>
-                       <url>dav:${nexusproxy}${sitePath}</url>
-               </site>
-       </distributionManagement>
-       
-               <repositories>
-               <repository>
-                       <id>central</id>
-                       <name>Maven 2 repository 2</name>
-                       <url>http://repo2.maven.org/maven2/</url>
-               </repository>
-               <repository>
-                       <id>ecomp-releases</id>
-                       <name>ONAP Release Repository</name>
-                       <url>${nexusproxy}/${releaseNexusPath}</url>
-               </repository>
-               <repository>
-                       <id>ecomp-staging</id>
-                       <name>ONAP Staging Repository</name>
-                       <url>${nexusproxy}/${stagingNexusPath}</url>
-               </repository>
-               <repository>
-                       <id>ecomp-snapshots</id>
-                       <name>ONAP Snapshot Repository</name>
-                       <url>${nexusproxy}/${snapshotNexusPath}</url>
-                       <snapshots>
-                               <enabled>true</enabled>
-                       </snapshots>
-                       <releases>
-                               <enabled>false</enabled>
-                       </releases>
-               </repository>
-               <repository>
-                       <id>spring-repo</id>
-                       <name>Spring repo</name>
-                       <url>https://artifacts.alfresco.com/nexus/content/repositories/public/</url>
-               </repository>
-               <repository>
-                       <id>repository.jboss.org-public</id>
-                       <name>JBoss.org Maven repository</name>
-                       <url>https://repository.jboss.org/nexus/content/groups/public</url>
-               </repository>
-       </repositories>
 </project>