Skip to content

Commit e291f81

Browse files
committed
Creating maven project and create dependencies for spring-core, spring-beans, spring-context in pom.xml
0 parents  commit e291f81

File tree

3 files changed

+102
-0
lines changed

3 files changed

+102
-0
lines changed

pom.xml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>dlivitin.springapp1</groupId>
8+
<artifactId>springapp1</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
<packaging>war</packaging>
11+
12+
<name>springapp1 Maven Webapp</name>
13+
<!-- FIXME change it to the project's website -->
14+
<url>http://www.example.com</url>
15+
16+
<properties>
17+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18+
<maven.compiler.source>1.7</maven.compiler.source>
19+
<maven.compiler.target>1.7</maven.compiler.target>
20+
</properties>
21+
22+
<dependencies>
23+
<dependency>
24+
<groupId>junit</groupId>
25+
<artifactId>junit</artifactId>
26+
<version>4.11</version>
27+
<scope>test</scope>
28+
</dependency>
29+
30+
<!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
31+
<dependency>
32+
<groupId>org.springframework</groupId>
33+
<artifactId>spring-core</artifactId>
34+
<version>5.3.7</version>
35+
</dependency>
36+
37+
<!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->
38+
<dependency>
39+
<groupId>org.springframework</groupId>
40+
<artifactId>spring-beans</artifactId>
41+
<version>5.3.7</version>
42+
</dependency>
43+
44+
<!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->
45+
<dependency>
46+
<groupId>org.springframework</groupId>
47+
<artifactId>spring-context</artifactId>
48+
<version>5.3.7</version>
49+
</dependency>
50+
51+
52+
</dependencies>
53+
54+
<build>
55+
<finalName>springapp1</finalName>
56+
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
57+
<plugins>
58+
<plugin>
59+
<artifactId>maven-clean-plugin</artifactId>
60+
<version>3.1.0</version>
61+
</plugin>
62+
<!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
63+
<plugin>
64+
<artifactId>maven-resources-plugin</artifactId>
65+
<version>3.0.2</version>
66+
</plugin>
67+
<plugin>
68+
<artifactId>maven-compiler-plugin</artifactId>
69+
<version>3.8.0</version>
70+
</plugin>
71+
<plugin>
72+
<artifactId>maven-surefire-plugin</artifactId>
73+
<version>2.22.1</version>
74+
</plugin>
75+
<plugin>
76+
<artifactId>maven-war-plugin</artifactId>
77+
<version>3.2.2</version>
78+
</plugin>
79+
<plugin>
80+
<artifactId>maven-install-plugin</artifactId>
81+
<version>2.5.2</version>
82+
</plugin>
83+
<plugin>
84+
<artifactId>maven-deploy-plugin</artifactId>
85+
<version>2.8.2</version>
86+
</plugin>
87+
</plugins>
88+
</pluginManagement>
89+
</build>
90+
</project>

src/main/webapp/WEB-INF/web.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!DOCTYPE web-app PUBLIC
2+
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
3+
"http://java.sun.com/dtd/web-app_2_3.dtd" >
4+
5+
<web-app>
6+
<display-name>Archetype Created Web Application</display-name>
7+
</web-app>

src/main/webapp/index.jsp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<html>
2+
<body>
3+
<h2>Hello World!</h2>
4+
</body>
5+
</html>

0 commit comments

Comments
 (0)