-
Notifications
You must be signed in to change notification settings - Fork 188
/
pom.xml
130 lines (122 loc) · 5.19 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?xml version="1.0"?>
<!--
~ Copyright (c) 2010-2017 Evolveum and contributors
~
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>infra</artifactId>
<groupId>com.evolveum.midpoint.infra</groupId>
<version>4.4-SNAPSHOT</version>
</parent>
<artifactId>schema-pure-jaxb</artifactId>
<packaging>jar</packaging>
<name>midPoint Infrastructure - pure JAXB schema</name>
<properties>
<maven.test.skip>true</maven.test.skip>
</properties>
<dependencies>
<!-- Testing dependencies -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.evolveum.midpoint.tools</groupId>
<artifactId>test-ng</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<!-- Commented out experimentally, as this fools IDEA into searching for XSD types at this location as well. -->
<!--<resource>-->
<!-- <directory>target/midpoint-schema</directory>-->
<!--</resource>-->
</resources>
<plugins>
<plugin>
<!-- Used to pull XSD files from the JAR -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-schema-files</id>
<phase>initialize</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.evolveum.midpoint.infra</groupId>
<artifactId>schema</artifactId>
<version>${project.version}</version>
<type>jar</type>
</artifactItem>
</artifactItems>
<includes>**/*.xsd,**/*.dtd</includes>
<excludes>prism-impl/xml/ns/test/**,xml/ns/test/**</excludes>
<outputDirectory>${project.basedir}/target/midpoint-schema</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.5.0</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<sources>
<source>${project.basedir}/target/midpoint-schema</source>
</sources>
<catalog>${basedir}/src/compile/resources/catalog.xml</catalog>
<laxSchemaValidation>true</laxSchemaValidation>
<verbose>false</verbose>
<!-- JDK 11 does not need exclusions of imported files like JDK 8 -->
</configuration>
<dependencies>
<!--
Don't change this to org.glassfish.jaxb:xsom:${glassfish-jaxb.version} to avoid
error: JAXP09020006: The argument 'systemId' can not be null.
(Is it valid error? I don't know, but we may drop this with Axiom anyway.)
-->
<dependency>
<groupId>com.sun.xsom</groupId>
<artifactId>xsom</artifactId>
<version>20190730e</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>${xerces.version}</version>
</dependency>
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>${xalan.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>