Initial OpenECOMP MSO commit
[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.openecomp.mso</groupId>
7                 <artifactId>mso-api-handlers</artifactId>
8                 <version>0.0.4-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>org.hibernate</groupId>
59                         <artifactId>hibernate-entitymanager</artifactId>
60                         <version>4.3.6.Final</version>
61                         <exclusions>
62                                 <!-- Avoid hibernate inclusion as provided in Jboss -->
63                                 <exclusion>
64                                         <groupId>org.jboss</groupId>
65                                         <artifactId>jandex</artifactId>
66                                 </exclusion>
67                                 <exclusion>
68                                         <groupId>org.javassist</groupId>
69                                         <artifactId>javassist</artifactId>
70                                 </exclusion>
71                                 <exclusion>
72                                         <groupId>org.jboss.logging</groupId>
73                                         <artifactId>jboss-logging</artifactId>
74                                 </exclusion>
75                                 <exclusion>
76                                         <groupId>org.jboss.logging</groupId>
77                                 <artifactId>jboss-logging-annotations</artifactId>
78                                 </exclusion>
79                                 <exclusion>
80                                          <groupId>org.jboss.spec.javax.transaction</groupId>
81                                         <artifactId>jboss-transaction-api_1.2_spec</artifactId>
82                                 </exclusion>
83                                 <exclusion>
84                                         <groupId>antlr</groupId>
85                                         <artifactId>antlr</artifactId>
86                                 </exclusion>
87                                 <exclusion>
88                                         <groupId>dom4j</groupId>
89                                         <artifactId>dom4j</artifactId>
90                                 </exclusion>
91                         </exclusions>
92                 </dependency>
93
94                 <dependency>
95                         <groupId>org.hibernate.javax.persistence</groupId>
96                         <artifactId>hibernate-jpa-2.1-api</artifactId>
97                         <version>1.0.0.Final</version>
98                 </dependency>
99                         
100                 <dependency>
101                         <groupId>org.openecomp.mso</groupId>
102                         <artifactId>common</artifactId>
103                         <version>${project.version}</version>
104                 </dependency>
105         </dependencies>
106         <packaging>jar</packaging>
107         <build>
108                 <finalName>${project.artifactId}</finalName>
109                 <plugins>
110                 
111                         <plugin>
112                                 <artifactId>maven-war-plugin</artifactId>
113                                 <version>2.3</version>
114                                 <configuration>
115                                         <warSourceDirectory>WebContent</warSourceDirectory>
116                                         <failOnMissingWebXml>false</failOnMissingWebXml>
117                                 </configuration>
118                         </plugin>
119
120                         <plugin>
121                                 <groupId>de.juplo</groupId>
122                                 <artifactId>hibernate4-maven-plugin</artifactId>
123                                 <version>1.1.0</version>
124                                 <executions>
125                                         <!-- MySQL -->
126                                         <execution>
127                                                 <id>MySQL</id>
128                                                 <goals>
129                                                         <goal>export</goal>
130                                                 </goals>
131                                                 <configuration>
132                                                         <hibernateDialect>org.hibernate.dialect.MySQL5Dialect</hibernateDialect>
133                                                         <hibernateMapping>${project.basedir}/src/main/resources/InfraActiveRequests.hbm.xml,${project.basedir}/src/main/resources/SiteStatus.hbm.xml</hibernateMapping>
134                                                         <target>SCRIPT</target>
135                                                         <skip>false</skip>
136                                                         <force>true</force>
137                                                         <outputFile>${project.build.directory}/MySQL-Requests-schema.sql</outputFile>
138                                                 </configuration>
139                                         </execution>
140                                 </executions>
141                         </plugin>
142                         <plugin>
143                         <artifactId>maven-resources-plugin</artifactId>
144                     <version>3.0.1</version>
145                         <executions>
146                           
147                             <execution>
148                                 <id>copy-sql-file</id>
149                                 <phase>install</phase>
150                                 <goals>
151                                     <goal>copy-resources</goal>
152                                 </goals>
153                                 <configuration>
154                                    <overwrite>true</overwrite>
155                                     
156                                     <outputDirectory>${project.basedir}/../../packages/root-pack-extras/config-resources/mariadb/db-sql-scripts/main-schemas</outputDirectory>
157                           
158                                     <resources>
159                                                         <resource>
160                                                           <directory>${project.build.directory}</directory>
161                                                           <filtering>false</filtering>
162                                                           <includes>
163                                                                <include>*.sql</include>
164                                                           </includes>
165                                                         </resource>
166                                                     </resources>              
167                                 </configuration>
168                             </execution>
169                         </executions>
170                 </plugin>
171                 </plugins>
172                 <pluginManagement>
173                         <plugins>
174                                 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
175                                 <plugin>
176                                         <groupId>org.eclipse.m2e</groupId>
177                                         <artifactId>lifecycle-mapping</artifactId>
178                                         <version>1.0.0</version>
179                                         <configuration>
180                                                 <lifecycleMappingMetadata>
181                                                         <pluginExecutions>
182                                                                 <pluginExecution>
183                                                                         <pluginExecutionFilter>
184                                                                                 <groupId>de.juplo</groupId>
185                                                                                 <artifactId>
186                                                                                         hibernate4-maven-plugin
187                                                                                 </artifactId>
188                                                                                 <versionRange>
189                                                                                         [1.0.3,)
190                                                                                 </versionRange>
191                                                                                 <goals>
192                                                                                         <goal>export</goal>
193                                                                                 </goals>
194                                                                         </pluginExecutionFilter>
195                                                                         <action>
196                                                                                 <ignore></ignore>
197                                                                         </action>
198                                                                 </pluginExecution>
199                                                         </pluginExecutions>
200                                                 </lifecycleMappingMetadata>
201                                         </configuration>
202                                 </plugin>
203                         </plugins>
204                 </pluginManagement>
205         </build>
206
207 </project>