pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?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">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.mephi</groupId>
  5. <artifactId>SASpringSite</artifactId>
  6. <version>1.0-SNAPSHOT</version>
  7. <packaging>war</packaging>
  8. <name>SASpringSite</name>
  9. <properties>
  10. <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <spring.version>4.0.1.RELEASE</spring.version>
  13. <jstl.version>1.2</jstl.version>
  14. <javax.servlet.version>3.0.1</javax.servlet.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>javax</groupId>
  19. <artifactId>javaee-web-api</artifactId>
  20. <version>7.0</version>
  21. <scope>provided</scope>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework</groupId>
  25. <artifactId>spring-core</artifactId>
  26. <version>${spring.version}</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework</groupId>
  30. <artifactId>spring-web</artifactId>
  31. <version>${spring.version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework</groupId>
  35. <artifactId>spring-webmvc</artifactId>
  36. <version>${spring.version}</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>javax.servlet</groupId>
  40. <artifactId>javax.servlet-api</artifactId>
  41. <version>${javax.servlet.version}</version>
  42. <scope>provided</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>jstl</groupId>
  46. <artifactId>jstl</artifactId>
  47. <version>${jstl.version}</version>
  48. </dependency>
  49. </dependencies>
  50. <build>
  51. <plugins>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-compiler-plugin</artifactId>
  55. <version>3.1</version>
  56. <configuration>
  57. <source>1.7</source>
  58. <target>1.7</target>
  59. <compilerArguments>
  60. <endorseddirs>${endorsed.dir}</endorseddirs>
  61. </compilerArguments>
  62. </configuration>
  63. </plugin>
  64. <plugin>
  65. <groupId>org.apache.maven.plugins</groupId>
  66. <artifactId>maven-war-plugin</artifactId>
  67. <version>2.3</version>
  68. <configuration>
  69. <failOnMissingWebXml>false</failOnMissingWebXml>
  70. </configuration>
  71. </plugin>
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-dependency-plugin</artifactId>
  75. <version>2.6</version>
  76. <executions>
  77. <execution>
  78. <phase>validate</phase>
  79. <goals>
  80. <goal>copy</goal>
  81. </goals>
  82. <configuration>
  83. <outputDirectory>${endorsed.dir}</outputDirectory>
  84. <silent>true</silent>
  85. <artifactItems>
  86. <artifactItem>
  87. <groupId>javax</groupId>
  88. <artifactId>javaee-endorsed-api</artifactId>
  89. <version>7.0</version>
  90. <type>jar</type>
  91. </artifactItem>
  92. </artifactItems>
  93. </configuration>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. </plugins>
  98. </build>
  99. </project>