Skip to content

Commit 461cd60

Browse files
authored
Add files via upload
1 parent 32643fc commit 461cd60

5 files changed

Lines changed: 52 additions & 0 deletions

File tree

hello-world-war-master/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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.
2.36 KB
Binary file not shown.

hello-world-war-master/pom.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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>

0 commit comments

Comments
 (0)