4 ============LICENSE_START=======================================================
6 ================================================================================
7 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
8 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END=========================================================
24 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
25 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
26 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.onap.aai.schema-service</groupId>
29 <artifactId>schema-service</artifactId>
30 <version>1.7.1-SNAPSHOT</version>
32 <artifactId>aai-schema-gen</artifactId>
33 <name>aai-schema-gen</name>
35 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
36 <!-- Start of Default ONAP Schema Properties -->
37 <aai.wiki.link>https://wiki.onap.org/</aai.wiki.link>
38 <gendoc.version>v19</gendoc.version>
39 <aai.release>onap</aai.release>
40 <schema.uri.base.path>/aai</schema.uri.base.path>
41 <schema.xsd.maxoccurs>5000</schema.xsd.maxoccurs>
42 <schema.configuration.location>N/A</schema.configuration.location>
43 <schema.nodes.location>aai-schema/src/main/resources/${aai.release}/oxm</schema.nodes.location>
44 <schema.edges.location>aai-schema/src/main/resources/${aai.release}/dbedgerules</schema.edges.location>
45 <schema.version.depth.start>v10</schema.version.depth.start>
46 <schema.version.related.link.start>v10</schema.version.related.link.start>
47 <schema.version.app.root.start>v11</schema.version.app.root.start>
48 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
49 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
50 <schema.version.api.default>v19</schema.version.api.default>
51 <schema.version.list>v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20</schema.version.list>
52 <springframework.version>4.3.18.RELEASE</springframework.version>
53 <!-- End of Default ONAP Schema Properties -->
56 <!-- Start of ONAP profile -->
60 <aai.release>onap</aai.release>
61 <schema.xsd.maxoccurs>unbounded</schema.xsd.maxoccurs>
62 <schema.configuration.location>N/A</schema.configuration.location>
63 <schema.nodes.location>aai-schema/src/main/resources/${aai.release}/oxm</schema.nodes.location>
64 <schema.edges.location>aai-schema/src/main/resources/${aai.release}/dbedgerules</schema.edges.location>
65 <schema.version.depth.start>v10</schema.version.depth.start>
66 <schema.version.related.link.start>v10</schema.version.related.link.start>
67 <schema.version.app.root.start>v11</schema.version.app.root.start>
68 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
69 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
70 <schema.version.api.default>v15</schema.version.api.default>
71 <schema.version.list>v10,v11,v12,v13,v14,v15,v16,v17,v18,v19</schema.version.list>
72 <gendoc.version>v16</gendoc.version>
73 <springframework.version>4.3.18.RELEASE</springframework.version>
76 <!-- End of ONAP profile -->
82 <groupId>org.codehaus.mojo</groupId>
83 <artifactId>exec-maven-plugin</artifactId>
84 <version>1.1.1</version>
87 <phase>process-classes</phase>
92 <mainClass>org.onap.aai.schemagen.GenerateXsd</mainClass>
95 <key>gen_version</key>
96 <value>${gendoc.version}</value>
103 <key>schema.xsd.maxoccurs</key>
104 <value>${schema.xsd.maxoccurs}</value>
107 <key>yamlresponses_url</key>
111 <key>yamlresponses_label</key>
115 <key>schema.configuration.location</key>
116 <value>${schema.configuration.location}</value>
119 <key>schema.nodes.location</key>
120 <value>${schema.nodes.location}</value>
123 <key>schema.edges.location</key>
124 <value>${schema.edges.location}</value>
127 <key>schema.version.list</key>
128 <value>${schema.version.list}</value>
131 <key>schema.version.depth.start</key>
132 <value>${schema.version.depth.start}</value>
135 <key>schema.version.depth.start</key>
136 <value>${schema.version.depth.start}</value>
139 <key>schema.version.related.link.start</key>
140 <value>${schema.version.related.link.start}</value>
143 <key>schema.version.app.root.start</key>
144 <value>${schema.version.app.root.start}</value>
147 <key>schema.version.edge.label.start</key>
148 <value>${schema.version.app.root.start}</value>
151 <key>schema.version.namespace.change.start</key>
152 <value>${schema.version.namespace.change.start}</value>
155 <key>schema.version.api.default</key>
156 <value>${schema.version.api.default}</value>
159 <key>schema.uri.base.path</key>
160 <value>${schema.uri.base.path}</value>
163 <key>aai.release</key>
164 <value>${aai.release}</value>
175 <id>generateYaml</id>
179 <groupId>org.codehaus.mojo</groupId>
180 <artifactId>exec-maven-plugin</artifactId>
181 <version>1.1.1</version>
184 <phase>process-classes</phase>
189 <mainClass>org.onap.aai.schemagen.GenerateXsd</mainClass>
192 <key>gen_version</key>
193 <value>${gendoc.version}</value>
200 <key>yamlresponses_url</key>
201 <value>https://wiki.web.att.com/pages/viewpage.action?pageId=607391054
205 <key>yamlresponses_label</key>
206 <value>Response codes found in [response codes]</value>
209 <key>schema.configuration.location</key>
210 <value>${schema.configuration.location}</value>
213 <key>schema.nodes.location</key>
214 <value>${schema.nodes.location}</value>
217 <key>schema.edges.location</key>
218 <value>${schema.edges.location}</value>
221 <key>schema.version.list</key>
222 <value>${schema.version.list}</value>
225 <key>schema.version.depth.start</key>
226 <value>${schema.version.depth.start}</value>
229 <key>schema.version.depth.start</key>
230 <value>${schema.version.depth.start}</value>
233 <key>schema.version.related.link.start</key>
234 <value>${schema.version.related.link.start}</value>
237 <key>schema.version.app.root.start</key>
238 <value>${schema.version.app.root.start}</value>
241 <key>schema.version.edge.label.start</key>
242 <value>${schema.version.app.root.start}</value>
245 <key>schema.version.namespace.change.start</key>
246 <value>${schema.version.namespace.change.start}</value>
249 <key>schema.version.api.default</key>
250 <value>${schema.version.api.default}</value>
253 <key>schema.uri.base.path</key>
254 <value>${schema.uri.base.path}</value>
257 <key>aai.release</key>
258 <value>${aai.release}</value>
269 <id>generateHtml</id>
273 <groupId>org.codehaus.mojo</groupId>
274 <artifactId>exec-maven-plugin</artifactId>
275 <version>1.1.1</version>
278 <phase>process-classes</phase>
283 <mainClass>org.onap.aai.schemagen.swagger.GenerateSwagger</mainClass>
286 <key>aai.generate.version</key>
287 <value>${gendoc.version}</value>
290 <key>aai.wiki.link</key>
291 <value>${aai.wiki.link}</value>
294 <key>schema.configuration.location</key>
295 <value>${schema.configuration.location}</value>
298 <key>schema.nodes.location</key>
299 <value>${schema.nodes.location}</value>
302 <key>schema.edges.location</key>
303 <value>${schema.edges.location}</value>
306 <key>schema.version.list</key>
307 <value>${schema.version.list}</value>
310 <key>schema.version.depth.start</key>
311 <value>${schema.version.depth.start}</value>
314 <key>schema.version.depth.start</key>
315 <value>${schema.version.depth.start}</value>
318 <key>schema.version.related.link.start</key>
319 <value>${schema.version.related.link.start}</value>
322 <key>schema.version.app.root.start</key>
323 <value>${schema.version.app.root.start}</value>
326 <key>schema.version.edge.label.start</key>
327 <value>${schema.version.app.root.start}</value>
330 <key>schema.version.namespace.change.start</key>
331 <value>${schema.version.namespace.change.start}</value>
334 <key>schema.version.api.default</key>
335 <value>${schema.version.api.default}</value>
338 <key>schema.uri.base.path</key>
339 <value>${schema.uri.base.path}</value>
342 <key>aai.release</key>
343 <value>${aai.release}</value>
354 <id>autoGenerate</id>
357 <name>aai.generate.schema</name>
358 <value>!false</value>
364 <groupId>org.codehaus.mojo</groupId>
365 <artifactId>exec-maven-plugin</artifactId>
366 <version>1.1.1</version>
369 <id>autoGenerateXsd</id>
370 <phase>process-classes</phase>
375 <mainClass>org.onap.aai.schemagen.GenerateXsd</mainClass>
378 <key>gen_version</key>
386 <key>schema.xsd.maxoccurs</key>
387 <value>${schema.xsd.maxoccurs}</value>
390 <key>yamlresponses_url</key>
394 <key>yamlresponses_label</key>
398 <key>schema.configuration.location</key>
399 <value>${schema.configuration.location}</value>
402 <key>schema.nodes.location</key>
403 <value>${schema.nodes.location}</value>
406 <key>schema.edges.location</key>
407 <value>${schema.edges.location}</value>
410 <key>schema.version.list</key>
411 <value>${schema.version.list}</value>
414 <key>schema.version.depth.start</key>
415 <value>${schema.version.depth.start}</value>
418 <key>schema.version.depth.start</key>
419 <value>${schema.version.depth.start}</value>
422 <key>schema.version.related.link.start</key>
423 <value>${schema.version.related.link.start}</value>
426 <key>schema.version.app.root.start</key>
427 <value>${schema.version.app.root.start}</value>
430 <key>schema.version.edge.label.start</key>
431 <value>${schema.version.app.root.start}</value>
434 <key>schema.version.namespace.change.start</key>
435 <value>${schema.version.namespace.change.start}</value>
438 <key>schema.version.api.default</key>
439 <value>${schema.version.api.default}</value>
442 <key>schema.uri.base.path</key>
443 <value>${schema.uri.base.path}</value>
446 <key>aai.release</key>
447 <value>${aai.release}</value>
453 <id>autoGenerateYaml</id>
454 <phase>process-classes</phase>
459 <mainClass>org.onap.aai.schemagen.GenerateXsd</mainClass>
462 <key>gen_version</key>
470 <key>yamlresponses_url</key>
471 <value>https://wiki.web.att.com/pages/viewpage.action?pageId=607391054
475 <key>yamlresponses_label</key>
476 <value>Response codes found in [response codes]</value>
479 <key>schema.configuration.location</key>
480 <value>${schema.configuration.location}</value>
483 <key>schema.nodes.location</key>
484 <value>${schema.nodes.location}</value>
487 <key>schema.edges.location</key>
488 <value>${schema.edges.location}</value>
491 <key>schema.version.list</key>
492 <value>${schema.version.list}</value>
495 <key>schema.version.depth.start</key>
496 <value>${schema.version.depth.start}</value>
499 <key>schema.version.depth.start</key>
500 <value>${schema.version.depth.start}</value>
503 <key>schema.version.related.link.start</key>
504 <value>${schema.version.related.link.start}</value>
507 <key>schema.version.app.root.start</key>
508 <value>${schema.version.app.root.start}</value>
511 <key>schema.version.edge.label.start</key>
512 <value>${schema.version.app.root.start}</value>
515 <key>schema.version.namespace.change.start</key>
516 <value>${schema.version.namespace.change.start}</value>
519 <key>schema.version.api.default</key>
520 <value>${schema.version.api.default}</value>
523 <key>aai.release</key>
524 <value>${aai.release}</value>
530 <id>autoGenerateHtml</id>
531 <phase>process-classes</phase>
536 <mainClass>org.onap.aai.schemagen.AutoGenerateHtml</mainClass>
539 <key>aai.generate.version</key>
540 <value>${gendoc.version}</value>
543 <key>aai.wiki.link</key>
544 <value>${aai.wiki.link}</value>
547 <key>schema.configuration.location</key>
548 <value>${schema.configuration.location}</value>
551 <key>schema.nodes.location</key>
552 <value>${schema.nodes.location}</value>
555 <key>schema.edges.location</key>
556 <value>${schema.edges.location}</value>
559 <key>schema.version.list</key>
560 <value>${schema.version.list}</value>
563 <key>schema.version.depth.start</key>
564 <value>${schema.version.depth.start}</value>
567 <key>schema.version.depth.start</key>
568 <value>${schema.version.depth.start}</value>
571 <key>schema.version.related.link.start</key>
572 <value>${schema.version.related.link.start}</value>
575 <key>schema.version.app.root.start</key>
576 <value>${schema.version.app.root.start}</value>
579 <key>schema.version.edge.label.start</key>
580 <value>${schema.version.app.root.start}</value>
583 <key>schema.version.namespace.change.start</key>
584 <value>${schema.version.namespace.change.start}</value>
587 <key>schema.version.api.default</key>
588 <value>${schema.version.api.default}</value>
591 <key>aai.release</key>
592 <value>${aai.release}</value>
604 <dependencyManagement>
607 <groupId>org.springframework</groupId>
608 <artifactId>spring-context</artifactId>
609 <version>${springframework.version}</version>
612 <groupId>org.springframework</groupId>
613 <artifactId>spring-web</artifactId>
614 <version>${springframework.version}</version>
617 <groupId>org.springframework</groupId>
618 <artifactId>spring-core</artifactId>
619 <version>${springframework.version}</version>
622 <groupId>org.springframework</groupId>
623 <artifactId>spring-expression</artifactId>
624 <version>${springframework.version}</version>
627 <groupId>org.springframework</groupId>
628 <artifactId>spring-webmvc</artifactId>
629 <version>${springframework.version}</version>
632 <groupId>org.springframework</groupId>
633 <artifactId>spring-test</artifactId>
634 <version>${springframework.version}</version>
638 </dependencyManagement>
642 <groupId>junit</groupId>
643 <artifactId>junit</artifactId>
644 <version>4.12</version>
648 <groupId>org.yaml</groupId>
649 <artifactId>snakeyaml</artifactId>
650 <version>1.18</version>
651 <scope>compile</scope>
654 <groupId>org.onap.aai.aai-common</groupId>
655 <artifactId>aai-schema-ingest</artifactId>
656 <version>1.4.0</version>
657 <scope>compile</scope>
660 <groupId>org.freemarker</groupId>
661 <artifactId>freemarker</artifactId>
662 <version>2.3.21</version>
665 <groupId>com.fasterxml.jackson.dataformat</groupId>
666 <artifactId>jackson-dataformat-yaml</artifactId>
667 <version>2.2.3</version>
670 <groupId>org.apache.commons</groupId>
671 <artifactId>commons-lang3</artifactId>
672 <version>3.7</version>
673 <scope>compile</scope>
676 <groupId>org.apache.commons</groupId>
677 <artifactId>commons-text</artifactId>
678 <version>1.2</version>
679 <scope>compile</scope>
682 <groupId>org.hamcrest</groupId>
683 <artifactId>java-hamcrest</artifactId>
684 <version>2.0.0.0</version>
688 <groupId>org.hamcrest</groupId>
689 <artifactId>hamcrest-core</artifactId>
690 <version>1.3</version>
694 <groupId>org.mockito</groupId>
695 <artifactId>mockito-all</artifactId>
696 <version>1.10.19</version>
703 <groupId>org.apache.maven.plugins</groupId>
704 <artifactId>maven-source-plugin</artifactId>
707 <groupId>org.apache.maven.plugins</groupId>
708 <artifactId>maven-site-plugin</artifactId>
711 <groupId>org.apache.maven.plugins</groupId>
712 <artifactId>maven-deploy-plugin</artifactId>
717 <directory>src/main/resources</directory>
718 <filtering>false</filtering>
720 <include>**/*</include>
726 <!-- Start of ONAP Specific Repositories -->
730 <url>http://repo1.maven.org/maven2</url>
734 <name>EvoSuite Repository</name>
735 <url>http://www.evosuite.org/m2</url>
737 </pluginRepositories>
738 <!-- End of ONAP Specific Repositories -->