-
Notifications
You must be signed in to change notification settings - Fork 14
/
pom.xml
206 lines (203 loc) · 6.89 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!--
Copyright (c) 2017 JSONx
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
You should have received a copy of The MIT License (MIT) along with this
program. If not, see <http://opensource.org/licenses/MIT/>.
-->
<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>
<groupId>org.jsonx</groupId>
<artifactId>jsonx</artifactId>
<version>0.5.1-SNAPSHOT</version>
</parent>
<artifactId>jsonx-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>JSONx Maven Plugin</name>
<description>
The jsonx-maven-plugin plugin is used to generate JSONx and JSD bindings with the JSONx framework.
</description>
<properties>
<maven.version>3.0</maven.version>
</properties>
<prerequisites>
<maven>${maven.version}</maven>
</prerequisites>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
<goalPrefix>jsonx</goalPrefix>
</configuration>
<executions>
<execution>
<id>default-descriptor</id>
<goals>
<goal>descriptor</goal>
</goals>
<phase>process-classes</phase>
</execution>
<execution>
<id>help-descriptor</id>
<goals>
<goal>helpmojo</goal>
</goals>
<phase>process-classes</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>maven-plugin-test</id>
<build>
<plugins>
<plugin>
<groupId>org.jsonx</groupId>
<artifactId>jsonx-maven-plugin</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<id>convert</id>
<phase>generate-test-resources</phase>
<goals>
<goal>convert</goal>
</goals>
<configuration>
<destDir>${project.build.directory}/generated-test-resources/jsonx</destDir>
<schemas>
<schema>src/test/resources/test.jsbx</schema>
<schema>src/test/resources/test.jsb</schema>
<schema>src/test/resources/sensor.jsbx</schema>
</schemas>
</configuration>
</execution>
<execution>
<id>generate</id>
<phase>generate-test-sources</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<destDir>${project.build.directory}/generated-test-sources/jsonx</destDir>
<namespacePackages>
<namespacePackage package="org.jsonx."/>
</namespacePackages>
<schemas>
<schema>src/test/resources/sensor.jsbx</schema>
<schema>src/test/resources/test.jsb</schema>
<schema>src/test/resources/test.jsbx</schema>
</schemas>
</configuration>
</execution>
<execution>
<id>validate</id>
<phase>process-test-resources</phase>
<goals>
<goal>validate</goal>
</goals>
<configuration>
<schemas>
<schema>src/test/resources/test.jsb</schema>
<schema>src/test/resources/test.jsbx</schema>
<schema>src/test/resources/sensor.jsbx</schema>
</schemas>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-model</artifactId>
<version>${maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-repository-metadata</artifactId>
<version>${maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>${maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-settings</artifactId>
<version>${maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${maven.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>${maven.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.openjax.maven</groupId>
<artifactId>mojo</artifactId>
<version>0.5.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jsonx</groupId>
<artifactId>jsonxml</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.jsonx</groupId>
<artifactId>generator</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.jsonx</groupId>
<artifactId>generator</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<type>test-jar</type>
</dependency>
<dependency>
<groupId>com.github.mifmif</groupId>
<artifactId>generex</artifactId>
<version>1.0.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>