1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!--
|
---|
3 |
|
---|
4 | Copyright (C) Christian Schulte, 2005-206
|
---|
5 | All rights reserved.
|
---|
6 |
|
---|
7 | Redistribution and use in source and binary forms, with or without
|
---|
8 | modification, are permitted provided that the following conditions
|
---|
9 | are met:
|
---|
10 |
|
---|
11 | o Redistributions of source code must retain the above copyright
|
---|
12 | notice, this list of conditions and the following disclaimer.
|
---|
13 |
|
---|
14 | o Redistributions in binary form must reproduce the above copyright
|
---|
15 | notice, this list of conditions and the following disclaimer in
|
---|
16 | the documentation and/or other materials provided with the
|
---|
17 | distribution.
|
---|
18 |
|
---|
19 | THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
---|
20 | INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
---|
21 | AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
---|
22 | THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
---|
23 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
---|
24 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
---|
25 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
---|
26 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
---|
27 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
---|
28 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
---|
29 |
|
---|
30 | $JOMC: pom.xml 4790 2013-04-21 00:04:55Z schulte $
|
---|
31 |
|
---|
32 | -->
|
---|
33 | <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/maven-v4_0_0.xsd">
|
---|
34 | <parent>
|
---|
35 | <artifactId>jomc-parent</artifactId>
|
---|
36 | <groupId>org.jomc</groupId>
|
---|
37 | <version>1.6-SNAPSHOT</version>
|
---|
38 | </parent>
|
---|
39 | <modelVersion>4.0.0</modelVersion>
|
---|
40 | <artifactId>jomc-model</artifactId>
|
---|
41 | <name>JOMC ⁑ Model</name>
|
---|
42 | <description>Object management and configuration model.</description>
|
---|
43 | <url>${jomc.artifacts.url}/${project.artifactId}-${project.version}</url>
|
---|
44 | <build>
|
---|
45 | <resources>
|
---|
46 | <resource>
|
---|
47 | <filtering>true</filtering>
|
---|
48 | <directory>src/main/resources</directory>
|
---|
49 | </resource>
|
---|
50 | <resource>
|
---|
51 | <filtering>false</filtering>
|
---|
52 | <directory>src/main/schemas</directory>
|
---|
53 | <targetPath>org/jomc/model</targetPath>
|
---|
54 | <includes>
|
---|
55 | <include>jomc-1.2.xsd</include>
|
---|
56 | </includes>
|
---|
57 | </resource>
|
---|
58 | <resource>
|
---|
59 | <filtering>false</filtering>
|
---|
60 | <directory>${project.build.directory}/deprecated-schemas</directory>
|
---|
61 | <targetPath>org/jomc/model</targetPath>
|
---|
62 | <includes>
|
---|
63 | <include>*.xsd</include>
|
---|
64 | </includes>
|
---|
65 | </resource>
|
---|
66 | </resources>
|
---|
67 | <testResources>
|
---|
68 | <testResource>
|
---|
69 | <filtering>true</filtering>
|
---|
70 | <directory>src/test/resources</directory>
|
---|
71 | </testResource>
|
---|
72 | <testResource>
|
---|
73 | <filtering>false</filtering>
|
---|
74 | <directory>src/test/objects</directory>
|
---|
75 | </testResource>
|
---|
76 | <testResource>
|
---|
77 | <filtering>false</filtering>
|
---|
78 | <directory>src/test/schemas</directory>
|
---|
79 | <targetPath>org/jomc/model/test</targetPath>
|
---|
80 | <includes>
|
---|
81 | <include>jomc-test-1.2.xsd</include>
|
---|
82 | </includes>
|
---|
83 | </testResource>
|
---|
84 | </testResources>
|
---|
85 | <pluginManagement>
|
---|
86 | <plugins>
|
---|
87 | <plugin>
|
---|
88 | <groupId>org.codehaus.mojo</groupId>
|
---|
89 | <artifactId>xml-maven-plugin</artifactId>
|
---|
90 | <executions>
|
---|
91 | <execution>
|
---|
92 | <id>default-transform-testsuite</id>
|
---|
93 | <phase>generate-test-sources</phase>
|
---|
94 | <goals>
|
---|
95 | <goal>transform</goal>
|
---|
96 | </goals>
|
---|
97 | <configuration>
|
---|
98 | <transformationSets>
|
---|
99 | <transformationSet>
|
---|
100 | <stylesheet>src/test/xslt/ModulesTestSuite.xsl</stylesheet>
|
---|
101 | <dir>src/test/resources/org/jomc/model/test</dir>
|
---|
102 | <outputDir>${project.build.directory}/generated-test-sources/testsuite/org/jomc/model/test</outputDir>
|
---|
103 | <includes>
|
---|
104 | <include>ModulesTestSuite.xml</include>
|
---|
105 | </includes>
|
---|
106 | <fileMappers>
|
---|
107 | <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
|
---|
108 | <targetExtension>.java</targetExtension>
|
---|
109 | </fileMapper>
|
---|
110 | </fileMappers>
|
---|
111 | </transformationSet>
|
---|
112 | <transformationSet>
|
---|
113 | <stylesheet>src/test/xslt/DefaultModelValidatorTestSuite.xsl</stylesheet>
|
---|
114 | <dir>src/test/resources/org/jomc/model/modlet/test</dir>
|
---|
115 | <outputDir>${project.build.directory}/generated-test-sources/testsuite/org/jomc/model/modlet/test</outputDir>
|
---|
116 | <includes>
|
---|
117 | <include>DefaultModelValidatorTestSuite.xml</include>
|
---|
118 | </includes>
|
---|
119 | <fileMappers>
|
---|
120 | <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
|
---|
121 | <targetExtension>.java</targetExtension>
|
---|
122 | </fileMapper>
|
---|
123 | </fileMappers>
|
---|
124 | </transformationSet>
|
---|
125 | </transformationSets>
|
---|
126 | </configuration>
|
---|
127 | </execution>
|
---|
128 | </executions>
|
---|
129 | </plugin>
|
---|
130 | <plugin>
|
---|
131 | <groupId>org.codehaus.mojo</groupId>
|
---|
132 | <artifactId>build-helper-maven-plugin</artifactId>
|
---|
133 | <executions>
|
---|
134 | <execution>
|
---|
135 | <id>default-add-test-source</id>
|
---|
136 | <phase>generate-test-sources</phase>
|
---|
137 | <goals>
|
---|
138 | <goal>add-test-source</goal>
|
---|
139 | </goals>
|
---|
140 | <configuration>
|
---|
141 | <sources>
|
---|
142 | <source>${project.build.directory}/generated-test-sources/testsuite</source>
|
---|
143 | </sources>
|
---|
144 | </configuration>
|
---|
145 | </execution>
|
---|
146 | </executions>
|
---|
147 | </plugin>
|
---|
148 | <plugin>
|
---|
149 | <groupId>org.apache.maven.plugins</groupId>
|
---|
150 | <artifactId>maven-resources-plugin</artifactId>
|
---|
151 | <executions>
|
---|
152 | <execution>
|
---|
153 | <id>default-schemas-copy</id>
|
---|
154 | <phase>prepare-package</phase>
|
---|
155 | <goals>
|
---|
156 | <goal>copy-resources</goal>
|
---|
157 | </goals>
|
---|
158 | <configuration>
|
---|
159 | <outputDirectory>${project.build.directory}/schemas</outputDirectory>
|
---|
160 | <resources>
|
---|
161 | <resource>
|
---|
162 | <directory>src/main/schemas</directory>
|
---|
163 | <filtering>false</filtering>
|
---|
164 | <includes>
|
---|
165 | <include>*.xsd</include>
|
---|
166 | <include>*.xjb</include>
|
---|
167 | </includes>
|
---|
168 | </resource>
|
---|
169 | <resource>
|
---|
170 | <directory>${remoteResourcesOutputDirectory}</directory>
|
---|
171 | <filtering>false</filtering>
|
---|
172 | <includes>
|
---|
173 | <include>**/*.txt</include>
|
---|
174 | </includes>
|
---|
175 | </resource>
|
---|
176 | </resources>
|
---|
177 | </configuration>
|
---|
178 | </execution>
|
---|
179 | </executions>
|
---|
180 | </plugin>
|
---|
181 | <plugin>
|
---|
182 | <groupId>org.apache.maven.plugins</groupId>
|
---|
183 | <artifactId>maven-dependency-plugin</artifactId>
|
---|
184 | <executions>
|
---|
185 | <execution>
|
---|
186 | <id>default-schemas-unpack</id>
|
---|
187 | <phase>generate-resources</phase>
|
---|
188 | <goals>
|
---|
189 | <goal>unpack</goal>
|
---|
190 | </goals>
|
---|
191 | <configuration>
|
---|
192 | <artifactItems>
|
---|
193 | <artifactItem>
|
---|
194 | <groupId>org.jomc</groupId>
|
---|
195 | <artifactId>jomc-model</artifactId>
|
---|
196 | <version>1.0</version>
|
---|
197 | <classifier>schemas</classifier>
|
---|
198 | <outputDirectory>${project.build.directory}/deprecated-schemas</outputDirectory>
|
---|
199 | </artifactItem>
|
---|
200 | </artifactItems>
|
---|
201 | </configuration>
|
---|
202 | </execution>
|
---|
203 | </executions>
|
---|
204 | </plugin>
|
---|
205 | <plugin>
|
---|
206 | <groupId>org.apache.maven.plugins</groupId>
|
---|
207 | <artifactId>maven-jar-plugin</artifactId>
|
---|
208 | <executions>
|
---|
209 | <execution>
|
---|
210 | <id>default-schemas-jar</id>
|
---|
211 | <phase>prepare-package</phase>
|
---|
212 | <goals>
|
---|
213 | <goal>jar</goal>
|
---|
214 | </goals>
|
---|
215 | <configuration>
|
---|
216 | <classesDirectory>${project.build.directory}/schemas</classesDirectory>
|
---|
217 | <classifier>schemas</classifier>
|
---|
218 | </configuration>
|
---|
219 | </execution>
|
---|
220 | </executions>
|
---|
221 | </plugin>
|
---|
222 | <plugin>
|
---|
223 | <groupId>org.codehaus.mojo</groupId>
|
---|
224 | <artifactId>wagon-maven-plugin</artifactId>
|
---|
225 | <executions>
|
---|
226 | <execution>
|
---|
227 | <id>site-deploy-upload</id>
|
---|
228 | <phase>site-deploy</phase>
|
---|
229 | <goals>
|
---|
230 | <goal>upload</goal>
|
---|
231 | </goals>
|
---|
232 | <configuration>
|
---|
233 | <fromDir>${basedir}/src/main/schemas</fromDir>
|
---|
234 | <includes>*.xsd</includes>
|
---|
235 | <serverId>${jomc.xml.distribution.id}</serverId>
|
---|
236 | <toDir>model</toDir>
|
---|
237 | <url>${jomc.xml.distribution.url}</url>
|
---|
238 | </configuration>
|
---|
239 | </execution>
|
---|
240 | </executions>
|
---|
241 | </plugin>
|
---|
242 | <plugin>
|
---|
243 | <groupId>org.jvnet.jaxb2.maven2</groupId>
|
---|
244 | <artifactId>maven-jaxb21-plugin</artifactId>
|
---|
245 | <executions>
|
---|
246 | <execution>
|
---|
247 | <id>default-test-generate</id>
|
---|
248 | <phase>generate-test-sources</phase>
|
---|
249 | <goals>
|
---|
250 | <goal>generate</goal>
|
---|
251 | </goals>
|
---|
252 | <configuration>
|
---|
253 | <args>
|
---|
254 | <arg>-npa</arg>
|
---|
255 | <arg>-copy-constructor</arg>
|
---|
256 | <arg>-mark-generated</arg>
|
---|
257 | <arg>-Xinject-code</arg>
|
---|
258 | <arg>-Xinheritance</arg>
|
---|
259 | </args>
|
---|
260 | <addCompileSourceRoot>false</addCompileSourceRoot>
|
---|
261 | <addTestCompileSourceRoot>true</addTestCompileSourceRoot>
|
---|
262 | <bindingDirectory>src/test/schemas</bindingDirectory>
|
---|
263 | <extension>true</extension>
|
---|
264 | <generateDirectory>${xjcTestOutputDirectory}</generateDirectory>
|
---|
265 | <readOnly>true</readOnly>
|
---|
266 | <schemaDirectory>src/test/schemas</schemaDirectory>
|
---|
267 | <plugins>
|
---|
268 | <plugin>
|
---|
269 | <groupId>org.jvnet.jaxb2_commons</groupId>
|
---|
270 | <artifactId>jaxb2-basics</artifactId>
|
---|
271 | <version>${jaxb2-basics.version}</version>
|
---|
272 | </plugin>
|
---|
273 | <plugin>
|
---|
274 | <groupId>net.sourceforge.ccxjc</groupId>
|
---|
275 | <artifactId>cc-xjc-plugin</artifactId>
|
---|
276 | <version>${cc-xjc-plugin.version}</version>
|
---|
277 | </plugin>
|
---|
278 | </plugins>
|
---|
279 | </configuration>
|
---|
280 | </execution>
|
---|
281 | </executions>
|
---|
282 | </plugin>
|
---|
283 | </plugins>
|
---|
284 | </pluginManagement>
|
---|
285 | <plugins>
|
---|
286 | <plugin>
|
---|
287 | <groupId>org.apache.maven.plugins</groupId>
|
---|
288 | <artifactId>maven-dependency-plugin</artifactId>
|
---|
289 | </plugin>
|
---|
290 | <plugin>
|
---|
291 | <groupId>org.jvnet.jaxb2.maven2</groupId>
|
---|
292 | <artifactId>maven-jaxb21-plugin</artifactId>
|
---|
293 | </plugin>
|
---|
294 | <plugin>
|
---|
295 | <groupId>org.codehaus.mojo</groupId>
|
---|
296 | <artifactId>xml-maven-plugin</artifactId>
|
---|
297 | </plugin>
|
---|
298 | <plugin>
|
---|
299 | <groupId>org.codehaus.mojo</groupId>
|
---|
300 | <artifactId>wagon-maven-plugin</artifactId>
|
---|
301 | </plugin>
|
---|
302 | </plugins>
|
---|
303 | </build>
|
---|
304 | <dependencies>
|
---|
305 | <dependency>
|
---|
306 | <groupId>org.jomc</groupId>
|
---|
307 | <artifactId>jomc-util</artifactId>
|
---|
308 | <scope>compile</scope>
|
---|
309 | </dependency>
|
---|
310 | <dependency>
|
---|
311 | <groupId>org.jomc</groupId>
|
---|
312 | <artifactId>jomc-modlet</artifactId>
|
---|
313 | <scope>compile</scope>
|
---|
314 | </dependency>
|
---|
315 | <dependency>
|
---|
316 | <groupId>junit</groupId>
|
---|
317 | <artifactId>junit</artifactId>
|
---|
318 | <scope>test</scope>
|
---|
319 | </dependency>
|
---|
320 | </dependencies>
|
---|
321 | <distributionManagement>
|
---|
322 | <site>
|
---|
323 | <id>${jomc.artifacts.distribution.id}</id>
|
---|
324 | <name>${jomc.artifacts.distribution.name}</name>
|
---|
325 | <url>${jomc.artifacts.distribution.url}/${project.artifactId}-${project.version}</url>
|
---|
326 | </site>
|
---|
327 | </distributionManagement>
|
---|
328 | <profiles>
|
---|
329 | <profile>
|
---|
330 | <id>jdk15</id>
|
---|
331 | <activation>
|
---|
332 | <jdk>1.5</jdk>
|
---|
333 | </activation>
|
---|
334 | <dependencies>
|
---|
335 | <dependency>
|
---|
336 | <groupId>javax.annotation</groupId>
|
---|
337 | <artifactId>jsr250-api</artifactId>
|
---|
338 | <scope>compile</scope>
|
---|
339 | <optional>true</optional>
|
---|
340 | </dependency>
|
---|
341 | <dependency>
|
---|
342 | <groupId>javax.activation</groupId>
|
---|
343 | <artifactId>activation</artifactId>
|
---|
344 | <scope>compile</scope>
|
---|
345 | </dependency>
|
---|
346 | <dependency>
|
---|
347 | <groupId>javax.xml.bind</groupId>
|
---|
348 | <artifactId>jaxb-api</artifactId>
|
---|
349 | <scope>compile</scope>
|
---|
350 | </dependency>
|
---|
351 | <dependency>
|
---|
352 | <groupId>com.sun.xml.bind</groupId>
|
---|
353 | <artifactId>jaxb-impl</artifactId>
|
---|
354 | <scope>runtime</scope>
|
---|
355 | </dependency>
|
---|
356 | </dependencies>
|
---|
357 | </profile>
|
---|
358 | </profiles>
|
---|
359 | </project>
|
---|