[MSO-8] Update the maven dependency
[so.git] / bpmn / MSOInfrastructureBPMN / pom.xml
similarity index 76%
rename from bpmn/MSOGammaBPMN/pom.xml
rename to bpmn/MSOInfrastructureBPMN/pom.xml
index 26ea278..21eb490 100644 (file)
@@ -6,8 +6,7 @@
                <version>1.1.0-SNAPSHOT</version>
        </parent>
        <modelVersion>4.0.0</modelVersion>
-       <groupId>org.openecomp.mso</groupId>
-       <artifactId>MSOGammaBPMN</artifactId>
+       <artifactId>MSOInfrastructureBPMN</artifactId>
        <packaging>war</packaging>
 
        <build>
                                <artifactId>maven-war-plugin</artifactId>
                                <version>2.3</version>
                                <configuration>
-                                       <source>1.7</source>
-                                       <target>1.7</target>
                                        <failOnMissingWebXml>false</failOnMissingWebXml>
                                </configuration>
                        </plugin>
-               <plugin>
-                       <groupId>org.apache.maven.plugins</groupId>
-                       <artifactId>maven-compiler-plugin</artifactId>
-                       <version>3.1</version>
-                               <configuration>
-                               <source>1.7</source>
-                               <target>1.7</target>
-                                        </configuration>
-               </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-jar-plugin</artifactId>
+                               <version>2.6</version>
+                               <executions>
+                                       <execution>
+                                               <id>default-jar</id>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>jar</goal>
+                                               </goals>
+                                               <configuration>
+                               <excludes>
+                                                               <exclude>org/openecomp/mso/bpmn/infrastructure/MSOInfrastructureApplication.class</exclude>
+                                                               <exclude>META-INF/</exclude>
+                                                       </excludes>
+                                               </configuration>
+                                       </execution>
+               </executions>
+            </plugin>
+             <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <version>3.0.0</version>
+                <executions>
+                    <execution>
+                    <goals>
+                        <goal>attach-artifact</goal>
+                    </goals>
+                    <phase>package</phase>
+                        <configuration>
+                            <artifacts>
+                                <artifact>
+                                    <file>${project.build.directory}/${project.artifactId}-${project.version}.jar</file>
+                                    <type>jar</type>
+                                </artifact>
+                            </artifacts>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
                        <plugin>
                                <groupId>org.apache.cxf</groupId>
                                <artifactId>cxf-codegen-plugin</artifactId>
                                        </execution>
                                </executions>
                        </plugin>
-               </plugins>
+               
+                       <plugin>
+                       <groupId>org.apache.maven.plugins</groupId>
+                       <artifactId>maven-dependency-plugin</artifactId>
+                       </plugin>
+            <plugin>
+                <artifactId>maven-failsafe-plugin</artifactId>
+                <version>2.6</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>integration-test</goal>
+                            <goal>verify</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
                <pluginManagement>
                        <plugins>
                                <!--This plugin's configuration is used to store Eclipse m2e settings
                                </exclusion>
                        </exclusions>
                </dependency>
-               <dependency>
-                       <groupId>junit</groupId>
-                       <artifactId>junit</artifactId>
-                       <version>4.11</version>
-                       <scope>test</scope>
-               </dependency>
 
                <dependency>
                        <!-- Needed for InMemoryH2Test -->
                        <artifactId>MSOCoreBPMN</artifactId>
                        <version>${project.version}</version>
                </dependency>
+               <dependency>
+                       <groupId>org.openecomp.mso</groupId>
+                       <artifactId>MSOCommonBPMN</artifactId>
+                       <version>${project.version}</version>
+           </dependency>
+               <dependency>
+                       <groupId>org.openecomp.mso</groupId>
+                       <artifactId>MSOCommonBPMN</artifactId>
+                       <version>${project.version}</version>
+                       <classifier>tests</classifier>
+                       <scope>test</scope>
+               </dependency>
                <dependency>
                        <!-- unit test utilities -->
                        <groupId>org.openecomp.mso</groupId>
                        <artifactId>MSOCoreBPMN</artifactId>
                        <version>${project.version}</version>
-                       <classifier>test</classifier>
+                       <classifier>tests</classifier>
                        <scope>test</scope>
                </dependency>
                <dependency>
        <artifactId>spring-web</artifactId>
        <version>4.3.2.RELEASE</version>
        </dependency>
-
+       <dependency>
+               <groupId>org.openecomp.mso</groupId>
+               <artifactId>MSOMockServer</artifactId>
+               <version>${project.version}</version>
+               <scope>test</scope>
+               <classifier>classes</classifier>
+       </dependency>
        <dependency>
          <groupId>org.openecomp.mso</groupId>
          <artifactId>MSORESTClient</artifactId>
          <version>${project.version}</version>
        </dependency>
 
-<!-- Took from MockServer modules after removing it to avoid class file for javax.servlet.ServletContextListener not found -->
        <dependency>
                        <groupId>com.github.tomakehurst</groupId>
                        <artifactId>wiremock</artifactId>
                        <version>1.56</version>
+                       <scope>test</scope>
                        <classifier>standalone</classifier>
                        <exclusions>
                                <exclusion>
                                </exclusion>
                        </exclusions>
                </dependency>
+               <dependency>
+               <groupId>javax.servlet</groupId>
+               <artifactId>javax.servlet-api</artifactId>
+               <version>3.0.1</version>
+               <scope>provided</scope>
+           </dependency>
        </dependencies>
 </project>
\ No newline at end of file