Skip to content

Commit 4ad5e84

Browse files
committed
iluwatar#90 Skeleton for Front Controller example
1 parent a0861c4 commit 4ad5e84

File tree

4 files changed

+95
-57
lines changed

4 files changed

+95
-57
lines changed

front-controller/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0"?>
2+
<project
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4+
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>com.iluwatar</groupId>
8+
<artifactId>java-design-patterns</artifactId>
9+
<version>1.2.0</version>
10+
</parent>
11+
<artifactId>front-controller</artifactId>
12+
<dependencies>
13+
<dependency>
14+
<groupId>junit</groupId>
15+
<artifactId>junit</artifactId>
16+
<scope>test</scope>
17+
</dependency>
18+
</dependencies>
19+
</project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.iluwatar;
2+
3+
public class App {
4+
public static void main(String[] args) {
5+
System.out.println("Hello World!");
6+
}
7+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.iluwatar;
2+
3+
import org.junit.Test;
4+
5+
public class AppTest {
6+
7+
@Test
8+
public void test() {
9+
String[] args = {};
10+
App.main(args);
11+
}
12+
}

pom.xml

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<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">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45

56
<groupId>com.iluwatar</groupId>
@@ -64,9 +65,10 @@
6465
<module>thread-pool</module>
6566
<module>private-class-data</module>
6667
<module>object-pool</module>
67-
<module>dependency-injection</module>
68-
<module>naked-objects</module>
69-
</modules>
68+
<module>dependency-injection</module>
69+
<module>naked-objects</module>
70+
<module>front-controller</module>
71+
</modules>
7072

7173
<dependencyManagement>
7274
<dependencies>
@@ -88,44 +90,42 @@
8890
</dependency>
8991
</dependencies>
9092
</dependencyManagement>
91-
93+
9294

9395
<build>
9496
<pluginManagement>
9597
<plugins>
96-
<!--
97-
This plugin's configuration is used to store Eclipse m2e settings only.
98-
It has no influence on the Maven build itself.
99-
TODO: Remove when the m2e plugin can correctly bind to Maven lifecycle
100-
-->
101-
<plugin>
102-
<groupId>org.eclipse.m2e</groupId>
103-
<artifactId>lifecycle-mapping</artifactId>
104-
<version>1.0.0</version>
105-
<configuration>
106-
<lifecycleMappingMetadata>
107-
<pluginExecutions>
108-
<pluginExecution>
109-
<pluginExecutionFilter>
110-
<groupId>org.jacoco</groupId>
111-
<artifactId>
112-
jacoco-maven-plugin
113-
</artifactId>
114-
<versionRange>
115-
[0.6.2,)
116-
</versionRange>
117-
<goals>
118-
<goal>prepare-agent</goal>
119-
</goals>
120-
</pluginExecutionFilter>
121-
<action>
122-
<ignore/>
123-
</action>
124-
</pluginExecution>
125-
</pluginExecutions>
126-
</lifecycleMappingMetadata>
127-
</configuration>
128-
</plugin>
98+
<!-- This plugin's configuration is used to store Eclipse m2e settings
99+
only. It has no influence on the Maven build itself. TODO: Remove when the
100+
m2e plugin can correctly bind to Maven lifecycle -->
101+
<plugin>
102+
<groupId>org.eclipse.m2e</groupId>
103+
<artifactId>lifecycle-mapping</artifactId>
104+
<version>1.0.0</version>
105+
<configuration>
106+
<lifecycleMappingMetadata>
107+
<pluginExecutions>
108+
<pluginExecution>
109+
<pluginExecutionFilter>
110+
<groupId>org.jacoco</groupId>
111+
<artifactId>
112+
jacoco-maven-plugin
113+
</artifactId>
114+
<versionRange>
115+
[0.6.2,)
116+
</versionRange>
117+
<goals>
118+
<goal>prepare-agent</goal>
119+
</goals>
120+
</pluginExecutionFilter>
121+
<action>
122+
<ignore />
123+
</action>
124+
</pluginExecution>
125+
</pluginExecutions>
126+
</lifecycleMappingMetadata>
127+
</configuration>
128+
</plugin>
129129
</plugins>
130130
</pluginManagement>
131131

@@ -141,26 +141,26 @@
141141
</configuration>
142142
</plugin>
143143
<plugin>
144-
<groupId>org.eluder.coveralls</groupId>
145-
<artifactId>coveralls-maven-plugin</artifactId>
146-
<version>${coveralls.version}</version>
147-
<configuration>
148-
<repoToken>jb6wYzxkVvjolD6qOWpzWdcWBzYk2fAmF</repoToken>
149-
</configuration>
150-
</plugin>
144+
<groupId>org.eluder.coveralls</groupId>
145+
<artifactId>coveralls-maven-plugin</artifactId>
146+
<version>${coveralls.version}</version>
147+
<configuration>
148+
<repoToken>jb6wYzxkVvjolD6qOWpzWdcWBzYk2fAmF</repoToken>
149+
</configuration>
150+
</plugin>
151151
<plugin>
152-
<groupId>org.jacoco</groupId>
153-
<artifactId>jacoco-maven-plugin</artifactId>
154-
<version>${jacoco.version}</version>
155-
<executions>
156-
<execution>
157-
<id>prepare-agent</id>
158-
<goals>
159-
<goal>prepare-agent</goal>
160-
</goals>
161-
</execution>
162-
</executions>
163-
</plugin>
152+
<groupId>org.jacoco</groupId>
153+
<artifactId>jacoco-maven-plugin</artifactId>
154+
<version>${jacoco.version}</version>
155+
<executions>
156+
<execution>
157+
<id>prepare-agent</id>
158+
<goals>
159+
<goal>prepare-agent</goal>
160+
</goals>
161+
</execution>
162+
</executions>
163+
</plugin>
164164
</plugins>
165165
</build>
166166

0 commit comments

Comments
 (0)