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.9.7-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>v27</schema.version.api.default>
51 <schema.version.list>v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27</schema.version.list>
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>
75 <!-- End of ONAP profile -->
81 <groupId>org.codehaus.mojo</groupId>
82 <artifactId>exec-maven-plugin</artifactId>
83 <version>1.1.1</version>
86 <phase>process-classes</phase>
91 <mainClass>org.onap.aai.schemagen.GenerateXsd</mainClass>
94 <key>gen_version</key>
95 <value>${gendoc.version}</value>
102 <key>schema.xsd.maxoccurs</key>
103 <value>${schema.xsd.maxoccurs}</value>
106 <key>yamlresponses_url</key>
110 <key>yamlresponses_label</key>
114 <key>schema.configuration.location</key>
115 <value>${schema.configuration.location}</value>
118 <key>schema.nodes.location</key>
119 <value>${schema.nodes.location}</value>
122 <key>schema.edges.location</key>
123 <value>${schema.edges.location}</value>
126 <key>schema.version.list</key>
127 <value>${schema.version.list}</value>
130 <key>schema.version.depth.start</key>
131 <value>${schema.version.depth.start}</value>
134 <key>schema.version.depth.start</key>
135 <value>${schema.version.depth.start}</value>
138 <key>schema.version.related.link.start</key>
139 <value>${schema.version.related.link.start}</value>
142 <key>schema.version.app.root.start</key>
143 <value>${schema.version.app.root.start}</value>
146 <key>schema.version.edge.label.start</key>
147 <value>${schema.version.app.root.start}</value>
150 <key>schema.version.namespace.change.start</key>
151 <value>${schema.version.namespace.change.start}</value>
154 <key>schema.version.api.default</key>
155 <value>${schema.version.api.default}</value>
158 <key>schema.uri.base.path</key>
159 <value>${schema.uri.base.path}</value>
162 <key>aai.release</key>
163 <value>${aai.release}</value>
174 <id>generateYaml</id>
178 <groupId>org.codehaus.mojo</groupId>
179 <artifactId>exec-maven-plugin</artifactId>
180 <version>1.1.1</version>
183 <phase>process-classes</phase>
188 <mainClass>org.onap.aai.schemagen.GenerateXsd</mainClass>
191 <key>gen_version</key>
192 <value>${gendoc.version}</value>
199 <key>yamlresponses_url</key>
200 <value>https://wiki.web.att.com/pages/viewpage.action?pageId=607391054
204 <key>yamlresponses_label</key>
205 <value>Response codes found in [response codes]</value>
208 <key>schema.configuration.location</key>
209 <value>${schema.configuration.location}</value>
212 <key>schema.nodes.location</key>
213 <value>${schema.nodes.location}</value>
216 <key>schema.edges.location</key>
217 <value>${schema.edges.location}</value>
220 <key>schema.version.list</key>
221 <value>${schema.version.list}</value>
224 <key>schema.version.depth.start</key>
225 <value>${schema.version.depth.start}</value>
228 <key>schema.version.depth.start</key>
229 <value>${schema.version.depth.start}</value>
232 <key>schema.version.related.link.start</key>
233 <value>${schema.version.related.link.start}</value>
236 <key>schema.version.app.root.start</key>
237 <value>${schema.version.app.root.start}</value>
240 <key>schema.version.edge.label.start</key>
241 <value>${schema.version.app.root.start}</value>
244 <key>schema.version.namespace.change.start</key>
245 <value>${schema.version.namespace.change.start}</value>
248 <key>schema.version.api.default</key>
249 <value>${schema.version.api.default}</value>
252 <key>schema.uri.base.path</key>
253 <value>${schema.uri.base.path}</value>
256 <key>aai.release</key>
257 <value>${aai.release}</value>
268 <id>generateHtml</id>
272 <groupId>org.codehaus.mojo</groupId>
273 <artifactId>exec-maven-plugin</artifactId>
274 <version>1.1.1</version>
277 <phase>process-classes</phase>
282 <mainClass>org.onap.aai.schemagen.swagger.GenerateSwagger</mainClass>
285 <key>aai.generate.version</key>
286 <value>${gendoc.version}</value>
289 <key>aai.wiki.link</key>
290 <value>${aai.wiki.link}</value>
293 <key>schema.configuration.location</key>
294 <value>${schema.configuration.location}</value>
297 <key>schema.nodes.location</key>
298 <value>${schema.nodes.location}</value>
301 <key>schema.edges.location</key>
302 <value>${schema.edges.location}</value>
305 <key>schema.version.list</key>
306 <value>${schema.version.list}</value>
309 <key>schema.version.depth.start</key>
310 <value>${schema.version.depth.start}</value>
313 <key>schema.version.depth.start</key>
314 <value>${schema.version.depth.start}</value>
317 <key>schema.version.related.link.start</key>
318 <value>${schema.version.related.link.start}</value>
321 <key>schema.version.app.root.start</key>
322 <value>${schema.version.app.root.start}</value>
325 <key>schema.version.edge.label.start</key>
326 <value>${schema.version.app.root.start}</value>
329 <key>schema.version.namespace.change.start</key>
330 <value>${schema.version.namespace.change.start}</value>
333 <key>schema.version.api.default</key>
334 <value>${schema.version.api.default}</value>
337 <key>schema.uri.base.path</key>
338 <value>${schema.uri.base.path}</value>
341 <key>aai.release</key>
342 <value>${aai.release}</value>
353 <id>autoGenerate</id>
356 <name>aai.generate.schema</name>
357 <value>!false</value>
363 <groupId>org.codehaus.mojo</groupId>
364 <artifactId>exec-maven-plugin</artifactId>
365 <version>1.1.1</version>
368 <id>autoGenerateXsd</id>
369 <phase>process-classes</phase>
374 <mainClass>org.onap.aai.schemagen.GenerateXsd</mainClass>
377 <key>gen_version</key>
385 <key>schema.xsd.maxoccurs</key>
386 <value>${schema.xsd.maxoccurs}</value>
389 <key>yamlresponses_url</key>
393 <key>yamlresponses_label</key>
397 <key>schema.configuration.location</key>
398 <value>${schema.configuration.location}</value>
401 <key>schema.nodes.location</key>
402 <value>${schema.nodes.location}</value>
405 <key>schema.edges.location</key>
406 <value>${schema.edges.location}</value>
409 <key>schema.version.list</key>
410 <value>${schema.version.list}</value>
413 <key>schema.version.depth.start</key>
414 <value>${schema.version.depth.start}</value>
417 <key>schema.version.depth.start</key>
418 <value>${schema.version.depth.start}</value>
421 <key>schema.version.related.link.start</key>
422 <value>${schema.version.related.link.start}</value>
425 <key>schema.version.app.root.start</key>
426 <value>${schema.version.app.root.start}</value>
429 <key>schema.version.edge.label.start</key>
430 <value>${schema.version.app.root.start}</value>
433 <key>schema.version.namespace.change.start</key>
434 <value>${schema.version.namespace.change.start}</value>
437 <key>schema.version.api.default</key>
438 <value>${schema.version.api.default}</value>
441 <key>schema.uri.base.path</key>
442 <value>${schema.uri.base.path}</value>
445 <key>aai.release</key>
446 <value>${aai.release}</value>
452 <id>autoGenerateYaml</id>
453 <phase>process-classes</phase>
458 <mainClass>org.onap.aai.schemagen.GenerateXsd</mainClass>
461 <key>gen_version</key>
469 <key>yamlresponses_url</key>
470 <value>https://wiki.web.att.com/pages/viewpage.action?pageId=607391054
474 <key>yamlresponses_label</key>
475 <value>Response codes found in [response codes]</value>
478 <key>schema.configuration.location</key>
479 <value>${schema.configuration.location}</value>
482 <key>schema.nodes.location</key>
483 <value>${schema.nodes.location}</value>
486 <key>schema.edges.location</key>
487 <value>${schema.edges.location}</value>
490 <key>schema.version.list</key>
491 <value>${schema.version.list}</value>
494 <key>schema.version.depth.start</key>
495 <value>${schema.version.depth.start}</value>
498 <key>schema.version.depth.start</key>
499 <value>${schema.version.depth.start}</value>
502 <key>schema.version.related.link.start</key>
503 <value>${schema.version.related.link.start}</value>
506 <key>schema.version.app.root.start</key>
507 <value>${schema.version.app.root.start}</value>
510 <key>schema.version.edge.label.start</key>
511 <value>${schema.version.app.root.start}</value>
514 <key>schema.version.namespace.change.start</key>
515 <value>${schema.version.namespace.change.start}</value>
518 <key>schema.version.api.default</key>
519 <value>${schema.version.api.default}</value>
522 <key>aai.release</key>
523 <value>${aai.release}</value>
529 <id>autoGenerateHtml</id>
530 <phase>process-classes</phase>
535 <mainClass>org.onap.aai.schemagen.AutoGenerateHtml</mainClass>
538 <key>aai.generate.version</key>
539 <value>${gendoc.version}</value>
542 <key>aai.wiki.link</key>
543 <value>${aai.wiki.link}</value>
546 <key>schema.configuration.location</key>
547 <value>${schema.configuration.location}</value>
550 <key>schema.nodes.location</key>
551 <value>${schema.nodes.location}</value>
554 <key>schema.edges.location</key>
555 <value>${schema.edges.location}</value>
558 <key>schema.version.list</key>
559 <value>${schema.version.list}</value>
562 <key>schema.version.depth.start</key>
563 <value>${schema.version.depth.start}</value>
566 <key>schema.version.depth.start</key>
567 <value>${schema.version.depth.start}</value>
570 <key>schema.version.related.link.start</key>
571 <value>${schema.version.related.link.start}</value>
574 <key>schema.version.app.root.start</key>
575 <value>${schema.version.app.root.start}</value>
578 <key>schema.version.edge.label.start</key>
579 <value>${schema.version.app.root.start}</value>
582 <key>schema.version.namespace.change.start</key>
583 <value>${schema.version.namespace.change.start}</value>
586 <key>schema.version.api.default</key>
587 <value>${schema.version.api.default}</value>
590 <key>aai.release</key>
591 <value>${aai.release}</value>
604 <groupId>javax.annotation</groupId>
605 <artifactId>javax.annotation-api</artifactId>
606 <scope>compile</scope>
609 <groupId>javax.xml.bind</groupId>
610 <artifactId>jaxb-api</artifactId>
611 <version>2.3.0</version>
614 <groupId>org.eclipse.persistence</groupId>
615 <artifactId>eclipselink</artifactId>
616 <version>3.0.0</version>
619 <groupId>org.eclipse.persistence</groupId>
620 <artifactId>org.eclipse.persistence.moxy</artifactId>
621 <version>3.0.0</version>
624 <groupId>org.springframework</groupId>
625 <artifactId>spring-context</artifactId>
628 <groupId>org.springframework</groupId>
629 <artifactId>spring-web</artifactId>
632 <groupId>org.springframework</groupId>
633 <artifactId>spring-core</artifactId>
636 <groupId>org.springframework</groupId>
637 <artifactId>spring-expression</artifactId>
640 <groupId>org.springframework</groupId>
641 <artifactId>spring-webmvc</artifactId>
644 <groupId>org.springframework</groupId>
645 <artifactId>spring-test</artifactId>
649 <groupId>junit</groupId>
650 <artifactId>junit</artifactId>
651 <version>4.12</version>
655 <groupId>org.yaml</groupId>
656 <artifactId>snakeyaml</artifactId>
657 <version>1.29</version>
658 <scope>compile</scope>
661 <groupId>org.onap.aai.aai-common</groupId>
662 <artifactId>aai-schema-ingest</artifactId>
663 <version>1.4.0</version>
664 <scope>compile</scope>
667 <groupId>org.springframework</groupId>
668 <artifactId>spring-context</artifactId>
671 <groupId>org.springframework</groupId>
672 <artifactId>spring-core</artifactId>
675 <groupId>org.springframework</groupId>
676 <artifactId>spring-web</artifactId>
679 <groupId>org.springframework</groupId>
680 <artifactId>spring-expression</artifactId>
683 <groupId>org.springframework</groupId>
684 <artifactId>spring-webmvc</artifactId>
689 <groupId>org.freemarker</groupId>
690 <artifactId>freemarker</artifactId>
691 <version>2.3.21</version>
694 <groupId>com.fasterxml.jackson.dataformat</groupId>
695 <artifactId>jackson-dataformat-yaml</artifactId>
696 <version>2.2.3</version>
699 <groupId>org.apache.commons</groupId>
700 <artifactId>commons-lang3</artifactId>
701 <version>3.7</version>
702 <scope>compile</scope>
705 <groupId>org.apache.commons</groupId>
706 <artifactId>commons-text</artifactId>
707 <version>1.2</version>
708 <scope>compile</scope>
711 <groupId>org.hamcrest</groupId>
712 <artifactId>java-hamcrest</artifactId>
713 <version>2.0.0.0</version>
717 <groupId>org.hamcrest</groupId>
718 <artifactId>hamcrest-core</artifactId>
719 <version>1.3</version>
723 <groupId>org.mockito</groupId>
724 <artifactId>mockito-all</artifactId>
725 <version>1.10.19</version>
732 <groupId>org.apache.maven.plugins</groupId>
733 <artifactId>maven-source-plugin</artifactId>
736 <groupId>org.apache.maven.plugins</groupId>
737 <artifactId>maven-site-plugin</artifactId>
740 <groupId>org.apache.maven.plugins</groupId>
741 <artifactId>maven-deploy-plugin</artifactId>
746 <directory>src/main/resources</directory>
747 <filtering>false</filtering>
749 <include>**/*</include>
755 <!-- Start of ONAP Specific Repositories -->
759 <url>http://repo1.maven.org/maven2</url>
763 <name>EvoSuite Repository</name>
764 <url>http://www.evosuite.org/m2</url>
766 </pluginRepositories>
767 <!-- End of ONAP Specific Repositories -->