Просмотр исходного кода

Basic Maven 2.0 webapp directory structure and POM file

peter_backlund 19 лет назад
Родитель
Сommit
63194f9f2d
3 измененных файлов: 78 добавлений и 0 удалений
  1. 63
    0
      dddsample/pom.xml
  2. 10
    0
      dddsample/src/main/webapp/WEB-INF/web.xml
  3. 5
    0
      dddsample/src/main/webapp/index.jsp

+ 63
- 0
dddsample/pom.xml Просмотреть файл

@@ -0,0 +1,63 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+
3
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5
+    <modelVersion>4.0.0</modelVersion>
6
+    <groupId>se.citerus</groupId>
7
+    <artifactId>dddsample</artifactId>
8
+    <packaging>war</packaging>
9
+    <version>1.0-SNAPSHOT</version>
10
+    <name>DDDSample</name>
11
+    <description>
12
+        This application shows a few key concepts of
13
+        Domain Driven Design implemented in Enterprise Java.
14
+    </description>
15
+    <url>http://sourceforge.net/projects/dddsample/</url>
16
+
17
+    <ciManagement/>
18
+
19
+    <scm>
20
+        <developerConnection>scm:svn:https://dddsample.svn.sourceforge.net/svnroot/dddsample</developerConnection>
21
+        <url>http://dddsample.svn.sourceforge.net/viewvc/dddsample/</url>
22
+    </scm>
23
+
24
+    <licenses>
25
+        <license>
26
+            <name>MIT</name>
27
+        </license>
28
+    </licenses>
29
+
30
+    <developers>
31
+        <developer>
32
+            <id>peba</id>
33
+            <name>Peter Backlund</name>
34
+            <organization>Citerus</organization>
35
+            <organizationUrl>http://www.citerus.se</organizationUrl>
36
+            <email>peter.backlund@citerus.se</email>
37
+            <timezone>CET</timezone>
38
+        </developer>
39
+    </developers>
40
+
41
+    <dependencies>
42
+        <dependency>
43
+            <groupId>junit</groupId>
44
+            <artifactId>junit</artifactId>
45
+            <version>4.4</version>
46
+            <scope>test</scope>
47
+        </dependency>
48
+    </dependencies>
49
+
50
+    <build>
51
+        <plugins>
52
+            <plugin>
53
+                <groupId>org.apache.maven.plugins</groupId>
54
+                <artifactId>maven-compiler-plugin</artifactId>
55
+                <configuration>
56
+                    <source>1.5</source>
57
+                    <target>1.5</target>
58
+                    <encoding>UTF-8</encoding>
59
+                </configuration>
60
+            </plugin>
61
+        </plugins>
62
+    </build>
63
+</project>

+ 10
- 0
dddsample/src/main/webapp/WEB-INF/web.xml Просмотреть файл

@@ -0,0 +1,10 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+
3
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
4
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
6
+    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
7
+
8
+    <display-name></display-name>
9
+
10
+</web-app>

+ 5
- 0
dddsample/src/main/webapp/index.jsp Просмотреть файл

@@ -0,0 +1,5 @@
1
+<html>
2
+<body>
3
+<h2>Hello World!</h2>
4
+</body>
5
+</html>