Skip to main content
summaryrefslogtreecommitdiffstats
blob: dfd8ab95848ad54cc236748c7974f85ca76f64df (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
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
207
208
<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.15.0-SNAPSHOT</version>
		<relativePath>../../plugins/org.eclipse.osee.x.server.parent</relativePath>
	</parent>

	<artifactId>org.eclipse.osee.ats.rest</artifactId>
	<packaging>eclipse-plugin</packaging>
	<name>OSEE Ats 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-ats</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}/../org.eclipse.osee.ats.rest/src</sourcepath>
							<subpackages>org.eclipse.osee.ats.rest.internal.resources</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-ats</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}/src</sourcepath>
							<subpackages>org.eclipse.osee.ats.rest:org.eclipse.osee.ats.rest.internal.build.report.model</subpackages>
							<excludePackageNames>java.*:javax.*:org.junit.*</excludePackageNames>
							<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>
					<execution>
						<id>rest-api-ats</id>
						<goals>
							<goal>javadoc</goal>
						</goals>
						<phase>compile</phase>
						<configuration>
							<inherited>false</inherited>
							<debug>false</debug>
							<verbose>false</verbose>
							<name>REST API</name>
							<description>All the REST APIs</description>
							<sourcepath>${basedir}/src</sourcepath>
							<subpackages>org.eclipse.osee.ats.rest:org.eclipse.osee.ats.rest.internal:org.eclipse.osee.ats.rest.internal.resources:org.eclipse.osee.ats.rest.internal.build.report.resources</subpackages>
							<excludePackageNames>java.*:javax.*:org.junit.*:org.eclipse.osee.orcs.rest.test</excludePackageNames>
				 			<detectLinks>true</detectLinks>
							<detectOfflineLinks>true</detectOfflineLinks>
							<reportOutputDirectory>${rest-output-directory}</reportOutputDirectory>
							<destDir>doc</destDir>
							<doclet>com.lunatech.doclets.jax.jaxrs.JAXRSDoclet</doclet>
							<docletArtifacts>
								<docletArtifact>
									<groupId>com.lunatech.jax-doclets</groupId>
									<artifactId>doclets</artifactId>
									<version>${jaxdoclet-version}</version>
								</docletArtifact>
							</docletArtifacts>
							<additionalparam>-jaxrscontext "ats"</additionalparam>
							<links>
								<link>./models</link>
							</links>
						</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>${basedir}/REST-INF/application.wadl</wadlFile>
					<formatWadlFile>true</formatWadlFile>
					<baseUri>ats</baseUri>
					<packagesResourceConfig>
						<param>org.eclipse.osee.ats.rest.internal.resources</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