├── .gitignore
├── README.md
├── src
└── main
│ ├── java
│ └── com
│ │ └── acme
│ │ └── Server.java
│ └── assembly
│ └── src.xml
├── app
└── index.html
└── pom.xml
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | *.iml
3 | target
4 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | http-bare-project
2 | =================
3 |
--------------------------------------------------------------------------------
/src/main/java/com/acme/Server.java:
--------------------------------------------------------------------------------
1 | package com.acme;
2 |
3 | import net.codestory.http.WebServer;
4 |
5 | public class Server {
6 |
7 | public static void main(String[] args) {
8 | new WebServer().start();
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/app/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello World
6 |
7 |
8 | Hello World !
9 | Welcome to CodeStory http stack.
10 |
11 |
--------------------------------------------------------------------------------
/src/main/assembly/src.xml:
--------------------------------------------------------------------------------
1 |
4 | distrib
5 |
6 | dir
7 |
8 | false
9 |
10 |
11 | app
12 | app
13 |
14 |
15 | ${project.build.directory}
16 | /
17 |
18 | *.jar
19 |
20 |
21 |
22 |
23 |
24 | lib
25 | false
26 |
27 |
28 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.acme
6 | Server
7 | 2.0-SNAPSHOT
8 |
9 |
10 | 1.8
11 | 1.8
12 | UTF-8
13 |
14 |
15 |
16 |
17 |
18 | net.code-story
19 | http
20 | 1.33
21 |
22 |
23 |
24 | junit
25 | junit
26 | 4.11
27 | test
28 |
29 |
30 |
31 |
32 |
33 |
34 | server
35 |
36 |
37 |
38 |
39 | maven-resources-plugin
40 | 2.6
41 |
42 |
43 | maven-clean-plugin
44 | 2.5
45 |
46 |
47 | maven-compiler-plugin
48 | 3.1
49 |
50 |
51 | maven-surefire-plugin
52 | 2.12.4
53 |
54 |
55 | maven-install-plugin
56 | 2.4
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 | org.apache.maven.plugins
65 | maven-jar-plugin
66 | 2.4
67 |
68 |
69 |
70 | com.acme.Server
71 | true
72 | lib/
73 |
74 |
75 |
76 |
77 |
78 |
79 | maven-assembly-plugin
80 | 2.4
81 |
82 |
83 | ${project.basedir}/src/main/assembly/src.xml
84 |
85 | distrib
86 | false
87 |
88 |
89 |
90 |
91 | org.codehaus.mojo
92 | exec-maven-plugin
93 | 1.2.1
94 |
95 |
96 |
97 | java
98 |
99 |
100 |
101 |
102 | com.acme.Server
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
--------------------------------------------------------------------------------