add mmagent
[dmaap/kafka11aaf.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 3154bd5..e47c8c0 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
 
        <groupId>org.onap.dmaap.kafka</groupId>
        <artifactId>kafka11aaf</artifactId>
-       <version>0.0.2-SNAPSHOT</version>
+       <version>0.0.3-SNAPSHOT</version>
        <name>dmaap-kafka11aaf</name>
        <licenses>
                <license>
                                        <skip />
                                </configuration>
                        </plugin>
+                       <plugin>
+                               <artifactId>maven-dependency-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>copy</id>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>copy</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <outputDirectory>target</outputDirectory>
+                                                       <encoding>UTF-8</encoding>
+                                                       <artifactItems>
+                                                               <artifactItem>
+                                                                       <groupId>org.onap.dmaap.messagerouter.mirroragent</groupId>
+                                                                       <artifactId>dmaapMMAgent</artifactId>
+                                                                       <version>1.1.1-SNAPSHOT</version>
+                                                                       <destFileName>dmaapMMAgent.jar</destFileName>
+                                                               </artifactItem>
+                                                       </artifactItems>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-enforcer-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>enforce-no-snapshots</id>
+                                               <goals>
+                                                       <goal>enforce</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <rules>
+                                                               <requireReleaseDeps>
+                                                                       <message>No Snapshots Allowed!</message>
+                                                                       <excludes>
+                                                                               <exclude>org.onap.dmaap.messagerouter.mirroragent:dmaapMMAgent</exclude>
+                                                                       </excludes>
+                                                               </requireReleaseDeps>
+                                                       </rules>
+                                                       <fail>true</fail>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
                        <plugin>
                                <groupId>com.spotify</groupId>
                                <artifactId>docker-maven-plugin</artifactId>
                                                        <directory>${project.build.directory}</directory>
                                                        <include>**/**</include>
                                                </resource>
+                                               <resource>
+                                                       <targetPath>/</targetPath>
+                                                       <directory>${project.build.directory}</directory>
+                                                       <include>dmaapMMAgent.jar</include>
+                                               </resource>
                                        </resources>
                                </configuration>
                                <executions>
                                                <descriptorRef>jar-with-dependencies</descriptorRef>
                                        </descriptorRefs>
                                        <!-- MainClass in mainfest make a executable jar -->
-                 <finalName>kafka11aaf</finalName>
+                                       <finalName>kafka11aaf</finalName>
                                </configuration>
                                <executions>
                                        <execution>
                                        </execution>
                                </executions>
                        </plugin>
-                       
+
                </plugins>
        </build>
 
        <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-               <KafkaImg>0.0.2</KafkaImg>
+               <KafkaImg>0.0.3</KafkaImg>
                <sitePath>/content/sites/site/org/onap/dmaap/kafka0111/${project.artifactId}/${project.version}</sitePath>
                <skip.docker.build>true</skip.docker.build>
                <skip.docker.push>true</skip.docker.push>