File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Hello World! (WAR-style)
2+ ===============
3+
4+ This is the simplest possible Java webapp for testing servlet container deployments. It should work on any container and requires no other dependencies or configuration.
Original file line number Diff line number Diff line change 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" >
3+ <modelVersion >4.0.0</modelVersion >
4+ <groupId >com.efsavage</groupId >
5+ <artifactId >hello-world-war</artifactId >
6+ <version >1.0.0</version >
7+ <packaging >war</packaging >
8+ <name >Hello World Web Application Repository</name >
9+ <description >Simplest possible Java Webapp</description >
10+
11+ <build >
12+ <plugins >
13+ <plugin >
14+ <groupId >org.mortbay.jetty</groupId >
15+ <artifactId >jetty-maven-plugin</artifactId >
16+ <version >8.1.5.v20120716</version >
17+ <configuration >
18+ <scanIntervalSeconds >0</scanIntervalSeconds >
19+ </configuration >
20+ </plugin >
21+ <plugin >
22+ <groupId >org.apache.maven.plugins</groupId >
23+ <artifactId >maven-war-plugin</artifactId >
24+ <version >2.1.1</version >
25+ </plugin >
26+ </plugins >
27+ </build >
28+
29+ </project >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <web-app version =" 2.5" xmlns =" http://java.sun.com/xml/ns/javaee" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
4+ >
5+ <!-- This is only here because Maven requires it to make a war. -->
6+ </web-app >
Original file line number Diff line number Diff line change 1+ <html >
2+ <head >
3+ <title >Hello World!</title >
4+ </head >
5+ <body >
6+ <h1 >Hello World!</h1 >
7+ <p >
8+ It is now
9+ <%= new java.util. Date () % > </p >
10+ <p >
11+ You are coming from
12+ <%= request. getRemoteAddr() % > </p >
13+ </body >
You can’t perform that action at this time.
0 commit comments