-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
114 lines (112 loc) · 5.93 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
<?xml version="1.0" encoding="UTF-8"?>
<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>ru.ilb.test</groupId>
<artifactId>test-episodes</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<dependencies>
<!-- sources located at https://github.com/ilb/w3c-meta -->
<dependency>
<groupId>ru.ilb.w3c</groupId>
<artifactId>w3c-meta</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- unpack w3c-meta to access w3c.episode -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>unpack</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>ru.ilb.w3c</groupId>
<artifactId>w3c-meta</artifactId>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/schemas-build-root</outputDirectory>
</artifactItem>
</artifactItems>
<includes>schemas/**</includes>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-wadl2java-plugin</artifactId>
<version>3.1.4</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>${project.build.directory}/generated-sources/xjc</sourceRoot>
<wadlOptions>
<wadlOption>
<wadl>${basedir}/src/main/resources/schemas/test/test.wadl</wadl>
<bindingFiles>
<bindingFile>${basedir}/src/main/resources/schemas/test/resource.xjb</bindingFile>
<!-- leads to "Error compiling schema from WADL : "file:...." is not a part of this compilation. Is this a mistake for ..."
<bindingFile>classpath:/schemas/w3c/w3c.episode</bindingFile>-->
</bindingFiles>
<extraargs>
<extraarg>-verbose</extraarg>
<extraarg>-inheritResourceParams</extraarg>
<extraarg>-xjc-Xfluent-api</extraarg>
<extraarg>-catalog</extraarg>
<extraarg>${basedir}/src/main/resources/catalog.xml</extraarg>
<!-- leads to java.lang.ClassCastException: org.apache.cxf.catalog.OASISCatalogManager$1 cannot be cast to com.sun.org.apache.xml.internal.resolver.tools.CatalogResolver
<extraarg>-xjc-catalog</extraarg>
<extraarg>-xjc${basedir}/src/main/resources/catalog.xml</extraarg>-->
<extraarg>-xjc-enableIntrospection</extraarg>
<extraarg>-xjc-b</extraarg>
<!--<extraarg>-xjc/classpath:/schemas/w3c/w3c.episode</extraarg>-->
<!--<extraarg>-xjcschemas/w3c/w3c.episode</extraarg>-->
<!--<extraarg>-xjchttp://www.w3.org/1999/w3c.episode</extraarg>-->
<!-- working, but requires to unpack w3c-meta -->
<extraarg>-xjc${project.build.directory}/schemas-build-root/schemas/w3c/w3c.episode</extraarg>
</extraargs>
</wadlOption>
</wadlOptions>
</configuration>
<goals>
<goal>wadl2java</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-fluent-api</artifactId>
<version>3.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>