-
Notifications
You must be signed in to change notification settings - Fork 188
/
pom.xml
126 lines (125 loc) · 5.61 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
<?xml version="1.0"?>
<!--
~ Copyright (c) 2011 Evolveum
~
~ The contents of this file are subject to the terms
~ of the Common Development and Distribution License
~ (the License). You may not use this file except in
~ compliance with the License.
~
~ You can obtain a copy of the License at
~ http://www.opensource.org/licenses/cddl1 or
~ CDDLv1.0.txt file in the source code distribution.
~ See the License for the specific language governing
~ permission and limitations under the License.
~
~ If applicable, add the following below the CDDL Header,
~ with the fields enclosed by brackets [] replaced by
~ your own identifying information:
~
~ Portions Copyrighted 2011 [name of copyright owner]
-->
<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>
<groupId>com.evolveum.midpoint.infra</groupId>
<artifactId>prism</artifactId>
<version>2.1.1p1-SNAPSHOT</version>
<name>midPoint Infrastructure - prism</name>
<parent>
<artifactId>infra</artifactId>
<groupId>com.evolveum.midpoint</groupId>
<version>2.1.1p1-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>com.evolveum.midpoint.infra</groupId>
<artifactId>util</artifactId>
<version>2.1.1p1-SNAPSHOT</version>
</dependency>
<!-- <dependency>
<groupId>com.sun.xsom</groupId>
<artifactId>xsom</artifactId>
</dependency> -->
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>${jaxb-xjc.version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
<!-- TEST -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.evolveum.midpoint.tools</groupId>
<artifactId>test-ng</artifactId>
<version>2.1.1p1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Code generator may be used in Prism in the "pure" form without any prism-specific plugins.
This creates the classes for basic (almost-primitive) data types such as PolyStringType.
But ... the JAXB-generated classes are not that useful. They may reflect the schema well, but
there are glitches. E.g. the JAXB classes generated for query namespace are completely useless.
The default JAXB-generated class for PolyStringType is also useless. Therefore the classes that
were generated from the schema are copied to the "main" source tree in the form that suits us
better than just blindly following the schema. Therefore the following plugin is commented out.
It may be used in case that the schemas change and we need to re-generate and re-tweak them.
But the plugin should be disabled during normal build. -->
<!-- <plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.8.0</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<verbose>true</verbose>
<catalog>src/main/resources/META-INF/catalog.xml</catalog>
<extension>true</extension>
<schemaDirectory>src/main/resources/xml/ns/public</schemaDirectory>
<generateDirectory>${project.build.directory}/generated-sources/xjc</generateDirectory>
</configuration>
</execution>
</executions>
</plugin> -->
<!--
Following plugin generates the JAXB classes for prism tests.
We can't really test full JAXB capabilities here as we get the proper JAXB plugin code
only after Prism is compiled.
This plugin is not really needed during normal build.
The classes that we need are hard-copied into the prism test source tree.
Disabling this plugin speeds up the compilation. -->
<!--
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.8.0</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<verbose>true</verbose>
<catalog>src/main/resources/META-INF/catalog.xml</catalog>
<extension>true</extension>
<schemaDirectory>src/main/resources/xml/ns/test</schemaDirectory>
<generateDirectory>${project.build.directory}/generated-sources/xjc</generateDirectory>
</configuration>
</execution>
</executions>
</plugin> -->
</plugins>
</build>
</project>