Skip to content

Commit d51236c

Browse files
committed
Enable wicket example. Removed incorrect comment about cargo requiring Java 7. It does not. (Jetty 9 does, but we're on 8 now).
1 parent e90462b commit d51236c

File tree

2 files changed

+12
-22
lines changed

2 files changed

+12
-22
lines changed

examples/java-wicket/README.md

-12
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,3 @@ mvn install
1313

1414
This runs Cucumber features using the JUnit runner. The `@RunWith(Cucumber.class)` annotation on the `RunCukesIT` junit class
1515
kicks off Cucumber.
16-
17-
### Java 7
18-
19-
The cargo-maven2-plugin 1.3.0 is built using Java 7. This means that this example will fail if used with older Java versions.
20-
The error will be similar to:
21-
22-
```
23-
[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.3.0:start (start-servlet-engine) on project java-wicket-test: Execution start-servlet-engine of goal org.codehaus.cargo:cargo-maven2-plugin:1.3.0:start failed: An API incompatibility was encountered while executing org.codehaus.cargo:cargo-maven2-plugin:1.3.0:start: java.lang.UnsupportedClassVersionError: org/eclipse/jetty/server/Server : Unsupported major.minor version 51.0
24-
```
25-
26-
The thing you want to look for is the ```Unsupported major.minor version 51.0``` that indicates that this has been
27-
compiled using Java 7 and that you are executing it using an older Java version.

pom.xml

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<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">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34
<groupId>info.cukes</groupId>
45
<artifactId>cucumber-jvm</artifactId>
@@ -330,12 +331,12 @@
330331
<artifactId>selenium-server</artifactId>
331332
<version>${selenium.version}</version>
332333
</dependency>
333-
<dependency>
334-
<groupId>org.seleniumhq.selenium</groupId>
335-
<artifactId>selenium-java</artifactId>
336-
<version>${selenium.version}</version>
337-
<scope>test</scope>
338-
</dependency>
334+
<dependency>
335+
<groupId>org.seleniumhq.selenium</groupId>
336+
<artifactId>selenium-java</artifactId>
337+
<version>${selenium.version}</version>
338+
<scope>test</scope>
339+
</dependency>
339340
<dependency>
340341
<groupId>org.webbitserver</groupId>
341342
<artifactId>webbit</artifactId>
@@ -388,9 +389,9 @@
388389
</dependency>
389390

390391
<dependency>
391-
<groupId>de.akquinet.jbosscc</groupId>
392-
<artifactId>jbosscc-needle</artifactId>
393-
<version>${needle.version}</version>
392+
<groupId>de.akquinet.jbosscc</groupId>
393+
<artifactId>jbosscc-needle</artifactId>
394+
<version>${needle.version}</version>
394395
</dependency>
395396

396397
<dependency>
@@ -480,6 +481,7 @@
480481
<profile>
481482
<id>examples</id>
482483
<modules>
484+
<module>examples/java-wicket</module>
483485
<module>examples/spring-txn</module>
484486
<module>examples/java-calculator</module>
485487
<module>examples/groovy-calculator</module>

0 commit comments

Comments
 (0)