1- <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- <modelVersion >4.0.0</modelVersion >
3- <groupId >com.baeldung</groupId >
4- <artifactId >MyStrutsApp</artifactId >
5- <version >0.0.1-SNAPSHOT</version >
6- <packaging >war</packaging >
7- <name >MyStrutsApp</name >
8- <build >
9- <sourceDirectory >src</sourceDirectory >
10- <resources >
11- <resource >
12- <directory >src</directory >
13- <excludes >
14- <exclude >**/*.java</exclude >
15- </excludes >
16- </resource >
17- </resources >
18- <plugins >
19- <plugin >
20- <artifactId >maven-compiler-plugin</artifactId >
21- <version >3.5.1</version >
22- <configuration >
23- <source >1.8</source >
24- <target >1.8</target >
25- </configuration >
26- </plugin >
27- <plugin >
28- <artifactId >maven-war-plugin</artifactId >
29- <version >3.0.0</version >
30- <configuration >
31- <warSourceDirectory >WebContent</warSourceDirectory >
32- </configuration >
33- </plugin >
34- </plugins >
35- </build >
36- <dependencies >
37- <!-- https://mvnrepository.com/artifact/org.apache.struts/struts2-core -->
38- <dependency >
39- <groupId >org.apache.struts</groupId >
40- <artifactId >struts2-core</artifactId >
41- <version >2.5.5</version >
42- </dependency >
43- </dependencies >
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.baeldung</groupId >
5+ <artifactId >struts2</artifactId >
6+ <version >0.0.1-SNAPSHOT</version >
7+ <packaging >war</packaging >
8+ <name >struts2</name >
9+
10+ <build >
11+ <sourceDirectory >src</sourceDirectory >
12+ <resources >
13+ <resource >
14+ <directory >src</directory >
15+ <excludes >
16+ <exclude >**/*.java</exclude >
17+ </excludes >
18+ </resource >
19+ </resources >
20+ <plugins >
21+ <plugin >
22+ <artifactId >maven-compiler-plugin</artifactId >
23+ <version >3.5.1</version >
24+ <configuration >
25+ <source >1.8</source >
26+ <target >1.8</target >
27+ </configuration >
28+ </plugin >
29+ <plugin >
30+ <artifactId >maven-war-plugin</artifactId >
31+ <version >3.0.0</version >
32+ <configuration >
33+ <warSourceDirectory >WebContent</warSourceDirectory >
34+ </configuration >
35+ </plugin >
36+ </plugins >
37+ </build >
38+
39+ <dependencies >
40+ <!-- https://mvnrepository.com/artifact/org.apache.struts/struts2-core -->
41+ <dependency >
42+ <groupId >org.apache.struts</groupId >
43+ <artifactId >struts2-core</artifactId >
44+ <version >2.5.5</version >
45+ </dependency >
46+ </dependencies >
47+
4448</project >
0 commit comments