blob: 63520f065b09a891f969b50d52294251b97897c5 [file] [log] [blame]
ChrisC025301d2017-01-31 11:40:03 +01001<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>
ChrisC1ba1d192017-03-13 05:01:04 -07008 <version>1.1.0-SNAPSHOT</version>
ChrisC025301d2017-01-31 11:40:03 +01009 </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>
ChrisC025301d2017-01-31 11:40:03 +010099 <dependency>
100 <groupId>org.openecomp.mso</groupId>
101 <artifactId>common</artifactId>
102 <version>${project.version}</version>
103 </dependency>
104 </dependencies>
105 <packaging>jar</packaging>
106 <build>
107 <finalName>${project.artifactId}</finalName>
108 <plugins>
xg353yb6b7bef2017-04-11 13:30:42 +0200109 <plugin>
ChrisC025301d2017-01-31 11:40:03 +0100110 <groupId>de.juplo</groupId>
111 <artifactId>hibernate4-maven-plugin</artifactId>
112 <version>1.1.0</version>
113 <executions>
114 <!-- MySQL -->
115 <execution>
116 <id>MySQL</id>
117 <goals>
118 <goal>export</goal>
119 </goals>
120 <configuration>
121 <hibernateDialect>org.hibernate.dialect.MySQL5Dialect</hibernateDialect>
122 <hibernateMapping>${project.basedir}/src/main/resources/InfraActiveRequests.hbm.xml,${project.basedir}/src/main/resources/SiteStatus.hbm.xml</hibernateMapping>
123 <target>SCRIPT</target>
124 <skip>false</skip>
125 <force>true</force>
126 <outputFile>${project.build.directory}/MySQL-Requests-schema.sql</outputFile>
127 </configuration>
128 </execution>
129 </executions>
130 </plugin>
131 <plugin>
132 <artifactId>maven-resources-plugin</artifactId>
133 <version>3.0.1</version>
134 <executions>
ChrisC1ba1d192017-03-13 05:01:04 -0700135
ChrisC025301d2017-01-31 11:40:03 +0100136 <execution>
137 <id>copy-sql-file</id>
138 <phase>install</phase>
139 <goals>
140 <goal>copy-resources</goal>
141 </goals>
142 <configuration>
143 <overwrite>true</overwrite>
ChrisC1ba1d192017-03-13 05:01:04 -0700144
ChrisC025301d2017-01-31 11:40:03 +0100145 <outputDirectory>${project.basedir}/../../packages/root-pack-extras/config-resources/mariadb/db-sql-scripts/main-schemas</outputDirectory>
ChrisC1ba1d192017-03-13 05:01:04 -0700146
ChrisC025301d2017-01-31 11:40:03 +0100147 <resources>
148 <resource>
149 <directory>${project.build.directory}</directory>
150 <filtering>false</filtering>
151 <includes>
152 <include>*.sql</include>
153 </includes>
154 </resource>
ChrisC1ba1d192017-03-13 05:01:04 -0700155 </resources>
ChrisC025301d2017-01-31 11:40:03 +0100156 </configuration>
157 </execution>
158 </executions>
159 </plugin>
160 </plugins>
161 <pluginManagement>
162 <plugins>
163 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
164 <plugin>
165 <groupId>org.eclipse.m2e</groupId>
166 <artifactId>lifecycle-mapping</artifactId>
167 <version>1.0.0</version>
168 <configuration>
169 <lifecycleMappingMetadata>
170 <pluginExecutions>
171 <pluginExecution>
172 <pluginExecutionFilter>
173 <groupId>de.juplo</groupId>
174 <artifactId>
175 hibernate4-maven-plugin
176 </artifactId>
177 <versionRange>
178 [1.0.3,)
179 </versionRange>
180 <goals>
181 <goal>export</goal>
182 </goals>
183 </pluginExecutionFilter>
184 <action>
185 <ignore></ignore>
186 </action>
187 </pluginExecution>
188 </pluginExecutions>
189 </lifecycleMappingMetadata>
190 </configuration>
191 </plugin>
192 </plugins>
193 </pluginManagement>
194 </build>
195
196</project>