fix maven local build issue
[sdnc/oam.git] / admportal / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
5         <parent>
6                 <groupId>org.openecomp.sdnc.oam</groupId>
7                 <artifactId>sdnc-oam</artifactId>
8                 <version>1.1.1-SNAPSHOT</version>
9         </parent>
10
11         <modelVersion>4.0.0</modelVersion>
12         <packaging>pom</packaging>
13         <groupId>org.openecomp.sdnc.oam</groupId>
14         <artifactId>admportal</artifactId>
15
16         <version>1.1.1-SNAPSHOT</version>
17
18         <name>Admin Portal</name>
19         <description>Admin Portal</description>
20
21         <properties>
22                 <application.name>admportal</application.name>
23                 <skip.SWM>true</skip.SWM>
24                 <adm.base>/opt/app/admportal</adm.base>
25                 <maven.build.timestamp.format>yyMMdd-HHmmss</maven.build.timestamp.format>
26                 <build.number>${maven.build.timestamp}</build.number>
27                 <SWM_VERSION>${project.version}-${build.number}</SWM_VERSION>
28         </properties>
29
30         <dependencies>
31                 <dependency>
32                         <groupId>org.openecomp.sdnc.core</groupId>
33                         <artifactId>sli-common</artifactId>
34                         <version>${sdnctl.sli.version}</version>
35                 </dependency>
36                 <dependency>
37                         <groupId>mysql</groupId>
38                         <artifactId>mysql-connector-java</artifactId>
39                         <version>5.1.31</version>
40                         <type>jar</type>
41                         <scope>compile</scope>
42                 </dependency>
43         </dependencies>
44
45         <build>
46                 <plugins>
47                         <plugin>
48                                 <artifactId>maven-assembly-plugin</artifactId>
49                                 <version>2.6</version>
50                                 <executions>
51                                         <execution>
52                                                 <id>create-zip</id>
53                                                 <goals>
54                                                         <goal>single</goal>
55                                                 </goals>
56                                                 <phase>package</phase>
57                                                 <configuration>
58                                                         <finalName>${application.name}.${project.version}</finalName>
59                                                         <attach>true</attach>
60                                                         <descriptors>
61                                                                 <descriptor>src/assembly/assemble_zip.xml</descriptor>
62                                                         </descriptors>
63                                                         <appendAssemblyId>false</appendAssemblyId>
64                                                         <appendAssemblyId>false</appendAssemblyId>
65                                                 </configuration>
66                                         </execution>
67                                 </executions>
68                         </plugin>
69                         <plugin>
70                                 <groupId>org.apache.maven.plugins</groupId>
71                                 <artifactId>maven-dependency-plugin</artifactId>
72                                 <executions>
73                                         <execution>
74                                                 <id>copy-dependencies</id>
75                                                 <goals>
76                                                         <goal>copy-dependencies</goal>
77                                                 </goals>
78                                                 <phase>prepare-package</phase>
79                                                 <configuration>
80                                                         <transitive>false</transitive>
81                                                         <outputDirectory>${project.build.directory}/lib</outputDirectory>
82                                                         <overWriteReleases>false</overWriteReleases>
83                                                         <overWriteSnapshots>true</overWriteSnapshots>
84                                                         <overWriteIfNewer>true</overWriteIfNewer>
85                                                         <useRepositoryLayout>false</useRepositoryLayout>
86                                                         <addParentPoms>false</addParentPoms>
87                                                         <copyPom>false</copyPom>
88                                                         <scope>provided</scope>
89                                                 </configuration>
90                                         </execution>
91                                 </executions>
92                         </plugin>
93                 </plugins>
94         </build>
95
96         <organization>
97                 <name>AT&amp;T</name>
98         </organization>
99 </project>
100