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.6.0-SNAPSHOT</version>
32 <artifactId>aai-schema-gen</artifactId>
33 <name>aai-schema-gen</name>
34 <version>1.6.0-SNAPSHOT</version>
36 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
37 <!-- Start of Default ONAP Schema Properties -->
38 <aai.wiki.link>https://wiki.onap.org/</aai.wiki.link>
39 <gendoc.version>v16</gendoc.version>
40 <aai.release>onap</aai.release>
41 <schema.uri.base.path>/aai</schema.uri.base.path>
42 <schema.xsd.maxoccurs>5000</schema.xsd.maxoccurs>
43 <schema.configuration.location>N/A</schema.configuration.location>
44 <schema.nodes.location>aai-schema/src/main/resources/${aai.release}/oxm</schema.nodes.location>
45 <schema.edges.location>aai-schema/src/main/resources/${aai.release}/dbedgerules</schema.edges.location>
46 <schema.version.depth.start>v10</schema.version.depth.start>
47 <schema.version.related.link.start>v10</schema.version.related.link.start>
48 <schema.version.app.root.start>v11</schema.version.app.root.start>
49 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
50 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
51 <schema.version.api.default>v16</schema.version.api.default>
52 <schema.version.list>v10,v11,v12,v13,v14,v15,v16</schema.version.list>
53 <springframework.version>4.3.18.RELEASE</springframework.version>
54 <!-- End of Default ONAP Schema Properties -->
57 <!-- Start of ONAP profile -->
61 <aai.release>onap</aai.release>
62 <schema.xsd.maxoccurs>unbounded</schema.xsd.maxoccurs>
63 <schema.configuration.location>N/A</schema.configuration.location>
64 <schema.nodes.location>aai-schema/src/main/resources/${aai.release}/oxm</schema.nodes.location>
65 <schema.edges.location>aai-schema/src/main/resources/${aai.release}/dbedgerules</schema.edges.location>
66 <schema.version.depth.start>v10</schema.version.depth.start>
67 <schema.version.related.link.start>v10</schema.version.related.link.start>
68 <schema.version.app.root.start>v11</schema.version.app.root.start>
69 <schema.version.edge.label.start>v12</schema.version.edge.label.start>
70 <schema.version.namespace.change.start>v12</schema.version.namespace.change.start>
71 <schema.version.api.default>v15</schema.version.api.default>
72 <schema.version.list>v10,v11,v12,v13,v14,v15,v16</schema.version.list>
73 <gendoc.version>v16</gendoc.version>
74 <springframework.version>4.3.18.RELEASE</springframework.version>
77 <!-- End of ONAP profile -->
83 <groupId>org.codehaus.mojo</groupId>
84 <artifactId>exec-maven-plugin</artifactId>
85 <version>1.1.1</version>
88 <phase>process-classes</phase>
93 <mainClass>org.onap.aai.schemagen.GenerateXsd</mainClass>
96 <key>gen_version</key>
97 <value>${gendoc.version}</value>
104 <key>schema.xsd.maxoccurs</key>
105 <value>${schema.xsd.maxoccurs}</value>
108 <key>yamlresponses_url</key>
112 <key>yamlresponses_label</key>
116 <key>schema.configuration.location</key>
117 <value>${schema.configuration.location}</value>
120 <key>schema.nodes.location</key>
121 <value>${schema.nodes.location}</value>
124 <key>schema.edges.location</key>
125 <value>${schema.edges.location}</value>
128 <key>schema.version.list</key>
129 <value>${schema.version.list}</value>
132 <key>schema.version.depth.start</key>
133 <value>${schema.version.depth.start}</value>
136 <key>schema.version.depth.start</key>
137 <value>${schema.version.depth.start}</value>
140 <key>schema.version.related.link.start</key>
141 <value>${schema.version.related.link.start}</value>
144 <key>schema.version.app.root.start</key>
145 <value>${schema.version.app.root.start}</value>
148 <key>schema.version.edge.label.start</key>
149 <value>${schema.version.app.root.start}</value>
152 <key>schema.version.namespace.change.start</key>
153 <value>${schema.version.namespace.change.start}</value>
156 <key>schema.version.api.default</key>
157 <value>${schema.version.api.default}</value>
160 <key>schema.uri.base.path</key>
161 <value>${schema.uri.base.path}</value>
164 <key>aai.release</key>
165 <value>${aai.release}</value>
176 <id>generateYaml</id>
180 <groupId>org.codehaus.mojo</groupId>
181 <artifactId>exec-maven-plugin</artifactId>
182 <version>1.1.1</version>
185 <phase>process-classes</phase>
190 <mainClass>org.onap.aai.schemagen.GenerateXsd</mainClass>
193 <key>gen_version</key>
194 <value>${gendoc.version}</value>
201 <key>yamlresponses_url</key>
202 <value>https://wiki.web.att.com/pages/viewpage.action?pageId=607391054
206 <key>yamlresponses_label</key>
207 <value>Response codes found in [response codes]</value>
210 <key>schema.configuration.location</key>
211 <value>${schema.configuration.location}</value>
214 <key>schema.nodes.location</key>
215 <value>${schema.nodes.location}</value>
218 <key>schema.edges.location</key>
219 <value>${schema.edges.location}</value>
222 <key>schema.version.list</key>
223 <value>${schema.version.list}</value>
226 <key>schema.version.depth.start</key>
227 <value>${schema.version.depth.start}</value>
230 <key>schema.version.depth.start</key>
231 <value>${schema.version.depth.start}</value>
234 <key>schema.version.related.link.start</key>
235 <value>${schema.version.related.link.start}</value>
238 <key>schema.version.app.root.start</key>
239 <value>${schema.version.app.root.start}</value>
242 <key>schema.version.edge.label.start</key>
243 <value>${schema.version.app.root.start}</value>
246 <key>schema.version.namespace.change.start</key>
247 <value>${schema.version.namespace.change.start}</value>
250 <key>schema.version.api.default</key>
251 <value>${schema.version.api.default}</value>
254 <key>schema.uri.base.path</key>
255 <value>${schema.uri.base.path}</value>
258 <key>aai.release</key>
259 <value>${aai.release}</value>
270 <id>generateHtml</id>
274 <groupId>org.codehaus.mojo</groupId>
275 <artifactId>exec-maven-plugin</artifactId>
276 <version>1.1.1</version>
279 <phase>process-classes</phase>
284 <mainClass>org.onap.aai.schemagen.swagger.GenerateSwagger</mainClass>
287 <key>aai.generate.version</key>
288 <value>${gendoc.version}</value>
291 <key>aai.wiki.link</key>
292 <value>${aai.wiki.link}</value>
295 <key>schema.configuration.location</key>
296 <value>${schema.configuration.location}</value>
299 <key>schema.nodes.location</key>
300 <value>${schema.nodes.location}</value>
303 <key>schema.edges.location</key>
304 <value>${schema.edges.location}</value>
307 <key>schema.version.list</key>
308 <value>${schema.version.list}</value>
311 <key>schema.version.depth.start</key>
312 <value>${schema.version.depth.start}</value>
315 <key>schema.version.depth.start</key>
316 <value>${schema.version.depth.start}</value>
319 <key>schema.version.related.link.start</key>
320 <value>${schema.version.related.link.start}</value>
323 <key>schema.version.app.root.start</key>
324 <value>${schema.version.app.root.start}</value>
327 <key>schema.version.edge.label.start</key>
328 <value>${schema.version.app.root.start}</value>
331 <key>schema.version.namespace.change.start</key>
332 <value>${schema.version.namespace.change.start}</value>
335 <key>schema.version.api.default</key>
336 <value>${schema.version.api.default}</value>
339 <key>schema.uri.base.path</key>
340 <value>${schema.uri.base.path}</value>
343 <key>aai.release</key>
344 <value>${aai.release}</value>
355 <id>autoGenerate</id>
358 <name>aai.generate.schema</name>
359 <value>!false</value>
365 <groupId>org.codehaus.mojo</groupId>
366 <artifactId>exec-maven-plugin</artifactId>
367 <version>1.1.1</version>
370 <id>autoGenerateXsd</id>
371 <phase>process-classes</phase>
376 <mainClass>org.onap.aai.schemagen.GenerateXsd</mainClass>
379 <key>gen_version</key>
387 <key>schema.xsd.maxoccurs</key>
388 <value>${schema.xsd.maxoccurs}</value>
391 <key>yamlresponses_url</key>
395 <key>yamlresponses_label</key>
399 <key>schema.configuration.location</key>
400 <value>${schema.configuration.location}</value>
403 <key>schema.nodes.location</key>
404 <value>${schema.nodes.location}</value>
407 <key>schema.edges.location</key>
408 <value>${schema.edges.location}</value>
411 <key>schema.version.list</key>
412 <value>${schema.version.list}</value>
415 <key>schema.version.depth.start</key>
416 <value>${schema.version.depth.start}</value>
419 <key>schema.version.depth.start</key>
420 <value>${schema.version.depth.start}</value>
423 <key>schema.version.related.link.start</key>
424 <value>${schema.version.related.link.start}</value>
427 <key>schema.version.app.root.start</key>
428 <value>${schema.version.app.root.start}</value>
431 <key>schema.version.edge.label.start</key>
432 <value>${schema.version.app.root.start}</value>
435 <key>schema.version.namespace.change.start</key>
436 <value>${schema.version.namespace.change.start}</value>
439 <key>schema.version.api.default</key>
440 <value>${schema.version.api.default}</value>
443 <key>schema.uri.base.path</key>
444 <value>${schema.uri.base.path}</value>
447 <key>aai.release</key>
448 <value>${aai.release}</value>
454 <id>autoGenerateYaml</id>
455 <phase>process-classes</phase>
460 <mainClass>org.onap.aai.schemagen.GenerateXsd</mainClass>
463 <key>gen_version</key>
471 <key>yamlresponses_url</key>
472 <value>https://wiki.web.att.com/pages/viewpage.action?pageId=607391054
476 <key>yamlresponses_label</key>
477 <value>Response codes found in [response codes]</value>
480 <key>schema.configuration.location</key>
481 <value>${schema.configuration.location}</value>
484 <key>schema.nodes.location</key>
485 <value>${schema.nodes.location}</value>
488 <key>schema.edges.location</key>
489 <value>${schema.edges.location}</value>
492 <key>schema.version.list</key>
493 <value>${schema.version.list}</value>
496 <key>schema.version.depth.start</key>
497 <value>${schema.version.depth.start}</value>
500 <key>schema.version.depth.start</key>
501 <value>${schema.version.depth.start}</value>
504 <key>schema.version.related.link.start</key>
505 <value>${schema.version.related.link.start}</value>
508 <key>schema.version.app.root.start</key>
509 <value>${schema.version.app.root.start}</value>
512 <key>schema.version.edge.label.start</key>
513 <value>${schema.version.app.root.start}</value>
516 <key>schema.version.namespace.change.start</key>
517 <value>${schema.version.namespace.change.start}</value>
520 <key>schema.version.api.default</key>
521 <value>${schema.version.api.default}</value>
524 <key>aai.release</key>
525 <value>${aai.release}</value>
531 <id>autoGenerateHtml</id>
532 <phase>process-classes</phase>
537 <mainClass>org.onap.aai.schemagen.AutoGenerateHtml</mainClass>
540 <key>aai.generate.version</key>
541 <value>${gendoc.version}</value>
544 <key>aai.wiki.link</key>
545 <value>${aai.wiki.link}</value>
548 <key>schema.configuration.location</key>
549 <value>${schema.configuration.location}</value>
552 <key>schema.nodes.location</key>
553 <value>${schema.nodes.location}</value>
556 <key>schema.edges.location</key>
557 <value>${schema.edges.location}</value>
560 <key>schema.version.list</key>
561 <value>${schema.version.list}</value>
564 <key>schema.version.depth.start</key>
565 <value>${schema.version.depth.start}</value>
568 <key>schema.version.depth.start</key>
569 <value>${schema.version.depth.start}</value>
572 <key>schema.version.related.link.start</key>
573 <value>${schema.version.related.link.start}</value>
576 <key>schema.version.app.root.start</key>
577 <value>${schema.version.app.root.start}</value>
580 <key>schema.version.edge.label.start</key>
581 <value>${schema.version.app.root.start}</value>
584 <key>schema.version.namespace.change.start</key>
585 <value>${schema.version.namespace.change.start}</value>
588 <key>schema.version.api.default</key>
589 <value>${schema.version.api.default}</value>
592 <key>aai.release</key>
593 <value>${aai.release}</value>
605 <dependencyManagement>
608 <groupId>org.springframework</groupId>
609 <artifactId>spring-context</artifactId>
610 <version>${springframework.version}</version>
613 <groupId>org.springframework</groupId>
614 <artifactId>spring-web</artifactId>
615 <version>${springframework.version}</version>
618 <groupId>org.springframework</groupId>
619 <artifactId>spring-core</artifactId>
620 <version>${springframework.version}</version>
623 <groupId>org.springframework</groupId>
624 <artifactId>spring-expression</artifactId>
625 <version>${springframework.version}</version>
628 <groupId>org.springframework</groupId>
629 <artifactId>spring-webmvc</artifactId>
630 <version>${springframework.version}</version>
633 <groupId>org.springframework</groupId>
634 <artifactId>spring-test</artifactId>
635 <version>${springframework.version}</version>
639 </dependencyManagement>
643 <groupId>junit</groupId>
644 <artifactId>junit</artifactId>
645 <version>4.12</version>
649 <groupId>org.yaml</groupId>
650 <artifactId>snakeyaml</artifactId>
651 <version>1.18</version>
652 <scope>compile</scope>
655 <groupId>org.onap.aai.aai-common</groupId>
656 <artifactId>aai-schema-ingest</artifactId>
657 <version>1.4.0</version>
658 <scope>compile</scope>
661 <groupId>org.freemarker</groupId>
662 <artifactId>freemarker</artifactId>
663 <version>2.3.21</version>
666 <groupId>com.fasterxml.jackson.dataformat</groupId>
667 <artifactId>jackson-dataformat-yaml</artifactId>
668 <version>2.2.3</version>
671 <groupId>org.apache.commons</groupId>
672 <artifactId>commons-lang3</artifactId>
673 <version>3.7</version>
674 <scope>compile</scope>
677 <groupId>org.apache.commons</groupId>
678 <artifactId>commons-text</artifactId>
679 <version>1.2</version>
680 <scope>compile</scope>
683 <groupId>org.hamcrest</groupId>
684 <artifactId>java-hamcrest</artifactId>
685 <version>2.0.0.0</version>
689 <groupId>org.hamcrest</groupId>
690 <artifactId>hamcrest-core</artifactId>
691 <version>1.3</version>
695 <groupId>org.mockito</groupId>
696 <artifactId>mockito-all</artifactId>
697 <version>1.10.19</version>
704 <groupId>org.apache.maven.plugins</groupId>
705 <artifactId>maven-source-plugin</artifactId>
708 <groupId>org.apache.maven.plugins</groupId>
709 <artifactId>maven-site-plugin</artifactId>
712 <groupId>org.apache.maven.plugins</groupId>
713 <artifactId>maven-deploy-plugin</artifactId>
718 <directory>src/main/resources</directory>
719 <filtering>false</filtering>
721 <include>**/*</include>
727 <!-- Start of ONAP Specific Repositories -->
731 <url>http://repo1.maven.org/maven2</url>
735 <name>EvoSuite Repository</name>
736 <url>http://www.evosuite.org/m2</url>
738 </pluginRepositories>
739 <!-- End of ONAP Specific Repositories -->