Skip to content

Commit 88ebd40

Browse files
authored
WADL example fix (#5722)
Signed-off-by: Maxim Nesen <[email protected]>
1 parent 2d7b11f commit 88ebd40

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

examples/extended-wadl-webapp/README.MD

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ jersey.
1515
Contents
1616
--------
1717

18-
The description of what's done here you'll find in the [jersey 1
19-
wiki](https://wikis.oracle.com/display/Jersey/HowToConfigureExtendedWADL).
20-
2118
The difference in configuration against jersey 1.x is in property
2219
configuring the custom WadlGeneratorConfig. Instead of property key
2320
'com.sun.jersey.config.property.WadlGeneratorConfig' use the property
@@ -48,6 +45,8 @@ into your existing GlassFish instance, you will need to follow
4845
instructions at [the module README file](../../README.html) in order to
4946
deploy the example.
5047

48+
NOTE: the example must be run with a JDK prior to JDK 13 otherwise javadoc plugin won't work properly.
49+
5150
Otherwise, you can run the example using embedded GlassFish as follows:
5251

5352
You can run the example using Grizzly as follows:

examples/extended-wadl-webapp/pom.xml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
<dependency>
133133
<groupId>com.sun.xml.bind</groupId>
134134
<artifactId>jaxb-osgi</artifactId>
135-
<scope>test</scope>
135+
<scope>runtime</scope>
136136
</dependency>
137137
<dependency>
138138
<groupId>jakarta.xml.bind</groupId>
@@ -301,6 +301,33 @@
301301
<skip>true</skip>
302302
</configuration>
303303
</plugin>
304+
<plugin>
305+
<artifactId>maven-antrun-plugin</artifactId>
306+
<executions>
307+
<execution>
308+
<phase>generate-resources</phase>
309+
<goals>
310+
<goal>run</goal>
311+
</goals>
312+
<configuration>
313+
<target>
314+
<echo>****************************************************</echo>
315+
<echo>****THIS EXAMPLE WORKS ONLY ON JDKs PRIOR to 13!****</echo>
316+
<echo>********CURRENT JDK IS NOT SUPPORTED!***************</echo>
317+
<echo>****************************************************</echo>
318+
</target>
319+
</configuration>
320+
</execution>
321+
</executions>
322+
</plugin>
323+
<plugin>
324+
<groupId>org.jvnet.jaxb2.maven2</groupId>
325+
<artifactId>maven-jaxb2-plugin</artifactId>
326+
<version>0.14.0</version>
327+
<configuration>
328+
<verbose>false</verbose>
329+
</configuration>
330+
</plugin>
304331
</plugins>
305332
</build>
306333
</profile>

0 commit comments

Comments
 (0)