Skip to main content
summaryrefslogtreecommitdiffstats
blob: 400cea7f9680a1c7a1191a1336f4bb272415f0f2 (plain) (blame)
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
<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">

	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>org.eclipse.osee</groupId>
		<artifactId>org.eclipse.osee.x.server.parent</artifactId>
		<version>0.16.0-SNAPSHOT</version>
		<relativePath>../../plugins/org.eclipse.osee.x.server.parent</relativePath>
	</parent>

	<artifactId>org.eclipse.osee.orcs.rest</artifactId>
	<packaging>eclipse-plugin</packaging>
	<name>OSEE ORCS Rest - (Incubation)</name>

	<build>
		<!-- workaround for https://issues.sonatype.org/browse/TYCHO-168 -->
		<resources>
			<resource>
				<directory>src</directory>
				<excludes>
					<exclude>**/*.java</exclude>
				</excludes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-source-plugin</artifactId>
			</plugin>
			<plugin>
				<artifactId>maven-clean-plugin</artifactId>
				<version>${maven-clean-version}</version>
				<configuration>
					<filesets>
						<fileset>
							<directory>REST-INF</directory>
							<includes>
								<include>**/*</include>
							</includes>
							<excludes>
								<exclude>application-doc.xml</exclude>
								<exclude>application-grammars.xml</exclude>
								<exclude>.gitignore</exclude>
							</excludes>
						</fileset>
					</filesets>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>${javadoc-version}</version>
				<inherited>false</inherited>
				<executions>
					<execution>
						<id>resource-doc-orcs</id>
						<goals>
							<goal>javadoc</goal>
						</goals>
						<phase>compile</phase>
						<configuration>
							<debug>false</debug>
							<encoding>UTF-8</encoding>
							<verbose>false</verbose>
							<show>public</show>
							<sourcepath>${basedir}/src:${basedir}/../org.eclipse.osee.orcs.rest.model/src</sourcepath>
							<subpackages>org.eclipse.osee.orcs.rest.internal.search:org.eclipse.osee.orcs.rest.internal:org.eclipse.osee.orcs.rest.model:org.eclipse.osee.orcs.rest.model.search</subpackages>
							<doclet>com.sun.jersey.wadl.resourcedoc.ResourceDoclet</doclet>
							<docletArtifacts>
								<docletArtifact>
									<groupId>com.sun.jersey.contribs</groupId>
									<artifactId>wadl-resourcedoc-doclet</artifactId>
									<version>${jersey-wadlgen-version}</version>
								</docletArtifact>
								<docletArtifact>
									<groupId>com.sun.jersey</groupId>
									<artifactId>jersey-server</artifactId>
									<version>${jersey-version}</version>
								</docletArtifact>
								<docletArtifact>
									<groupId>xerces</groupId>
									<artifactId>xercesImpl</artifactId>
									<version>${xerces-version}</version>
								</docletArtifact>
							</docletArtifacts>
							<additionalparam>-output
								${rest-output-directory}/resourcedoc.xml</additionalparam>
							<useStandardDocletOptions>false</useStandardDocletOptions>
						</configuration>
					</execution>
					<execution>
						<id>jaxb-report-orcs</id>
						<goals>
							<goal>javadoc</goal>
						</goals>
						<phase>compile</phase>
						<configuration>
							<inherited>false</inherited>
							<debug>false</debug>
							<verbose>false</verbose>
							<name>JAXB Report</name>
							<description>All the JAXB models</description>
							<sourcepath>${basedir}/../org.eclipse.osee.orcs.rest.model/src</sourcepath>
							<subpackages>org.eclipse.osee.orcs.rest.model:org.eclipse.osee.orcs.rest.model.search</subpackages>
							<reportOutputDirectory>${rest-output-directory}</reportOutputDirectory>
							<destDir>doc/models</destDir>
							<doclet>com.lunatech.doclets.jax.jaxb.JAXBDoclet</doclet>
							<docletArtifacts>
								<docletArtifact>
									<groupId>com.lunatech.jax-doclets</groupId>
									<artifactId>doclets</artifactId>
									<version>${jaxdoclet-version}</version>
								</docletArtifact>
							</docletArtifacts>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>com.sun.jersey.contribs</groupId>
				<artifactId>maven-wadl-plugin</artifactId>
				<version>${jersey-wadlgen-version}</version>
				<executions>
					<execution>
						<id>generate</id>
						<goals>
							<goal>generate</goal>
						</goals>
						<phase>compile</phase>
					</execution>
				</executions>
				<configuration>
					<wadlFile>${rest-output-directory}/application.wadl</wadlFile>
					<formatWadlFile>true</formatWadlFile>
					<baseUri>oseex</baseUri>
					<packagesResourceConfig>
						<param>org.eclipse.osee.orcs.rest.internal</param>
						<param>org.eclipse.osee.orcs.rest.internal.search</param>
						<param>org.eclipse.osee.orcs.rest.model.search</param>
					</packagesResourceConfig>
					<wadlGenerators>
						<wadlGeneratorDescription>
							<className>com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc</className>
							<properties>
								<property>
									<name>applicationDocsFile</name>
									<value>${rest-output-directory}/application-doc.xml</value>
								</property>
							</properties>
						</wadlGeneratorDescription>
						<wadlGeneratorDescription>
							<className>com.sun.jersey.server.wadl.generators.WadlGeneratorGrammarsSupport</className>
							<properties>
								<property>
									<name>grammarsFile</name>
									<value>${rest-output-directory}/application-grammars.xml</value>
								</property>
							</properties>
						</wadlGeneratorDescription>
						<wadlGeneratorDescription>
							<className>com.sun.jersey.server.wadl.generators.resourcedoc.WadlGeneratorResourceDocSupport</className>
							<properties>
								<property>
									<name>resourceDocFile</name>
									<value>${rest-output-directory}/resourcedoc.xml</value>
								</property>
							</properties>
						</wadlGeneratorDescription>
					</wadlGenerators>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>

Back to the top