|
| 1 | +<?xml version="1.0"?> |
| 2 | +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| 3 | + xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 4 | + |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + <groupId>com.baeldung</groupId> |
| 7 | + <version>0.1-SNAPSHOT</version> |
| 8 | + <artifactId>spring-mvc-forms</artifactId> |
| 9 | + |
| 10 | + <name>spring-mvc-forms</name> |
| 11 | + <packaging>war</packaging> |
| 12 | + |
| 13 | + <dependencies> |
| 14 | + <dependency> |
| 15 | + <groupId>org.springframework</groupId> |
| 16 | + <artifactId>spring-webmvc</artifactId> |
| 17 | + <version>${springframework.version}</version> |
| 18 | + </dependency> |
| 19 | + |
| 20 | + <dependency> |
| 21 | + <groupId>javax.servlet</groupId> |
| 22 | + <artifactId>javax.servlet-api</artifactId> |
| 23 | + <version>${javax.servlet-api.version}</version> |
| 24 | + </dependency> |
| 25 | + |
| 26 | + <dependency> |
| 27 | + <groupId>javax.servlet.jsp</groupId> |
| 28 | + <artifactId>javax.servlet.jsp-api</artifactId> |
| 29 | + <version>${javax.servlet.jsp-api.version}</version> |
| 30 | + </dependency> |
| 31 | + |
| 32 | + <dependency> |
| 33 | + <groupId>javax.servlet</groupId> |
| 34 | + <artifactId>jstl</artifactId> |
| 35 | + <version>${jstl.version}</version> |
| 36 | + </dependency> |
| 37 | + |
| 38 | + <dependency> |
| 39 | + <groupId>org.hibernate</groupId> |
| 40 | + <artifactId>hibernate-validator</artifactId> |
| 41 | + <version>${hibernate-validator.version}</version> |
| 42 | + </dependency> |
| 43 | + |
| 44 | + |
| 45 | + </dependencies> |
| 46 | + <profiles> |
| 47 | + <!-- Local --> |
| 48 | + <profile> |
| 49 | + <id>spring-mvc-forms</id> |
| 50 | + <activation> |
| 51 | + <activeByDefault>true</activeByDefault> |
| 52 | + </activation> |
| 53 | + <build> |
| 54 | + <pluginManagement> |
| 55 | + <plugins> |
| 56 | + |
| 57 | + <plugin> |
| 58 | + <groupId>org.apache.maven.plugins</groupId> |
| 59 | + <artifactId>maven-compiler-plugin</artifactId> |
| 60 | + <version>${maven-compiler-plugin.version}</version> |
| 61 | + <configuration> |
| 62 | + <source>${maven-compiler-plugin.source}</source> |
| 63 | + <target>${maven-compiler-plugin.source}</target> |
| 64 | + </configuration> |
| 65 | + </plugin> |
| 66 | + |
| 67 | + <plugin> |
| 68 | + <groupId>org.apache.maven.plugins</groupId> |
| 69 | + <artifactId>maven-war-plugin</artifactId> |
| 70 | + <version>${maven-war-plugin.version}</version> |
| 71 | + <configuration> |
| 72 | + <warSourceDirectory>src/main/webapp</warSourceDirectory> |
| 73 | + <warName>spring-mvc-forms</warName> |
| 74 | + <failOnMissingWebXml>false</failOnMissingWebXml> |
| 75 | + <outputDirectory>${deploy-path}</outputDirectory> |
| 76 | + </configuration> |
| 77 | + </plugin> |
| 78 | + |
| 79 | + </plugins> |
| 80 | + </pluginManagement> |
| 81 | + <finalName>spring-mvc-forms</finalName> |
| 82 | + </build> |
| 83 | + </profile> |
| 84 | + </profiles> |
| 85 | + |
| 86 | + <properties> |
| 87 | + <springframework.version>4.0.6.RELEASE</springframework.version> |
| 88 | + <maven-war-plugin.version>2.4</maven-war-plugin.version> |
| 89 | + <jstl.version>1.2</jstl.version> |
| 90 | + <javax.servlet.jsp-api.version>2.3.1</javax.servlet.jsp-api.version> |
| 91 | + <javax.servlet-api.version>3.1.0</javax.servlet-api.version> |
| 92 | + <maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version> |
| 93 | + <maven-compiler-plugin.source>1.8</maven-compiler-plugin.source> |
| 94 | + <hibernate-validator.version>5.1.1.Final</hibernate-validator.version> |
| 95 | + <deploy-path>enter-location-of-server</deploy-path> |
| 96 | + </properties> |
| 97 | + |
| 98 | +</project> |
| 99 | + |
0 commit comments