Merge "Unit test coverage"
[so.git] / mso-api-handlers / mso-requests-db / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4
5         <parent>
6                 <groupId>org.onap.so</groupId>
7                 <artifactId>mso-api-handlers</artifactId>
8                 <version>1.2.0-SNAPSHOT</version>
9         </parent>
10
11         <artifactId>mso-requests-db</artifactId>
12
13         <name>mso-requests-db</name>
14         <description>MSO Requests Database definition and Hibernate objects</description>
15         <properties>
16                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
18         </properties>
19
20         <dependencies>
21                 <dependency>
22                         <groupId>org.hibernate</groupId>
23                         <artifactId>hibernate-core</artifactId>
24                         <version>4.3.6.Final</version>
25                         <exclusions>
26                                 <!-- Avoid hibernate inclusion as provided in Jboss -->
27                                 <exclusion>
28                                         <groupId>org.jboss</groupId>
29                                         <artifactId>jandex</artifactId>
30                                 </exclusion>
31                                 <exclusion>
32                                         <groupId>org.javassist</groupId>
33                                         <artifactId>javassist</artifactId>
34                                 </exclusion>
35                                 <exclusion>
36                                         <groupId>org.jboss.logging</groupId>
37                                         <artifactId>jboss-logging</artifactId>
38                                 </exclusion>
39                                 <exclusion>
40                                         <groupId>org.jboss.logging</groupId>
41                                         <artifactId>jboss-logging-annotations</artifactId>
42                                 </exclusion>
43                                 <exclusion>
44                                          <groupId>org.jboss.spec.javax.transaction</groupId>
45                                         <artifactId>jboss-transaction-api_1.2_spec</artifactId>
46                                 </exclusion>
47                                 <exclusion>
48                                         <groupId>antlr</groupId>
49                                         <artifactId>antlr</artifactId>
50                                 </exclusion>
51                                 <exclusion>
52                                         <groupId>dom4j</groupId>
53                                         <artifactId>dom4j</artifactId>
54                                 </exclusion>
55                         </exclusions>
56                 </dependency>
57                 <dependency>
58                         <groupId>junit</groupId>
59                         <artifactId>junit</artifactId>
60                         <version>4.12</version>
61                         <scope>test</scope>
62                 </dependency>
63                 <dependency>
64                         <groupId>org.hibernate</groupId>
65                         <artifactId>hibernate-entitymanager</artifactId>
66                         <version>4.3.6.Final</version>
67                         <exclusions>
68                                 <!-- Avoid hibernate inclusion as provided in Jboss -->
69                                 <exclusion>
70                                         <groupId>org.jboss</groupId>
71                                         <artifactId>jandex</artifactId>
72                                 </exclusion>
73                                 <exclusion>
74                                         <groupId>org.javassist</groupId>
75                                         <artifactId>javassist</artifactId>
76                                 </exclusion>
77                                 <exclusion>
78                                         <groupId>org.jboss.logging</groupId>
79                                         <artifactId>jboss-logging</artifactId>
80                                 </exclusion>
81                                 <exclusion>
82                                         <groupId>org.jboss.logging</groupId>
83                                 <artifactId>jboss-logging-annotations</artifactId>
84                                 </exclusion>
85                                 <exclusion>
86                                          <groupId>org.jboss.spec.javax.transaction</groupId>
87                                         <artifactId>jboss-transaction-api_1.2_spec</artifactId>
88                                 </exclusion>
89                                 <exclusion>
90                                         <groupId>antlr</groupId>
91                                         <artifactId>antlr</artifactId>
92                                 </exclusion>
93                                 <exclusion>
94                                         <groupId>dom4j</groupId>
95                                         <artifactId>dom4j</artifactId>
96                                 </exclusion>
97                         </exclusions>
98                 </dependency>
99
100                 <dependency>
101                         <groupId>org.hibernate.javax.persistence</groupId>
102                         <artifactId>hibernate-jpa-2.1-api</artifactId>
103                         <version>1.0.0.Final</version>
104                 </dependency>
105                 <dependency>
106                         <groupId>org.onap.so</groupId>
107                         <artifactId>common</artifactId>
108                         <version>${project.version}</version>
109                 </dependency>
110                 <dependency>
111                         <groupId>org.jmockit</groupId>
112                         <artifactId>jmockit</artifactId>
113                         <version>1.19</version>
114                         <scope>test</scope>
115                 </dependency>
116         </dependencies>
117         <packaging>jar</packaging>
118         <build>
119                 <finalName>${project.artifactId}</finalName>
120                 <plugins>
121                 <plugin>
122                                 <groupId>de.juplo</groupId>
123                                 <artifactId>hibernate4-maven-plugin</artifactId>
124                                 <version>1.1.0</version>
125                                 <executions>
126                                         <!-- MySQL -->
127                                         <execution>
128                                                 <id>MySQL</id>
129                                                 <goals>
130                                                         <goal>export</goal>
131                                                 </goals>
132                                                 <configuration>
133                                                         <hibernateDialect>org.hibernate.dialect.MySQL5Dialect</hibernateDialect>
134                                                         <hibernateMapping>${project.basedir}/src/main/resources/InfraActiveRequests.hbm.xml,${project.basedir}/src/main/resources/SiteStatus.hbm.xml</hibernateMapping>
135                                                         <target>SCRIPT</target>
136                                                         <skip>false</skip>
137                                                         <force>true</force>
138                                                         <outputFile>${project.build.directory}/MySQL-Requests-schema.sql</outputFile>
139                                                 </configuration>
140                                         </execution>
141                                 </executions>
142                         </plugin>
143                         <plugin>
144                         <artifactId>maven-resources-plugin</artifactId>
145                     <version>3.0.1</version>
146                         <executions>
147
148                             <execution>
149                                 <id>copy-sql-file</id>
150                                 <phase>install</phase>
151                                 <goals>
152                                     <goal>copy-resources</goal>
153                                 </goals>
154                                 <configuration>
155                                    <overwrite>true</overwrite>
156
157                                     <outputDirectory>${project.basedir}/../../packages/root-pack-extras/config-resources/mariadb/db-sql-scripts/main-schemas</outputDirectory>
158
159                                     <resources>
160                                                         <resource>
161                                                           <directory>${project.build.directory}</directory>
162                                                           <filtering>false</filtering>
163                                                           <includes>
164                                                                <include>*.sql</include>
165                                                           </includes>
166                                                         </resource>
167                                                     </resources>
168                                 </configuration>
169                             </execution>
170                         </executions>
171                 </plugin>
172                 </plugins>
173                 <pluginManagement>
174                         <plugins>
175                                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
176                                 <plugin>
177                                         <groupId>org.eclipse.m2e</groupId>
178                                         <artifactId>lifecycle-mapping</artifactId>
179                                         <version>1.0.0</version>
180                                         <configuration>
181                                                 <lifecycleMappingMetadata>
182                                                         <pluginExecutions>
183                                                                 <pluginExecution>
184                                                                         <pluginExecutionFilter>
185                                                                                 <groupId>de.juplo</groupId>
186                                                                                 <artifactId>
187                                                                                         hibernate4-maven-plugin
188                                                                                 </artifactId>
189                                                                                 <versionRange>
190                                                                                         [1.0.3,)
191                                                                                 </versionRange>
192                                                                                 <goals>
193                                                                                         <goal>export</goal>
194                                                                                 </goals>
195                                                                         </pluginExecutionFilter>
196                                                                         <action>
197                                                                                 <ignore></ignore>
198                                                                         </action>
199                                                                 </pluginExecution>
200                                                         </pluginExecutions>
201                                                 </lifecycleMappingMetadata>
202                                         </configuration>
203                                 </plugin>
204                         </plugins>
205                 </pluginManagement>
206         </build>
207
208 </project>