You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.9 KiB

7 years ago
  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.eldermoraes</groupId>
  5. <artifactId>apptest</artifactId>
  6. <version>1.0</version>
  7. <packaging>war</packaging>
  8. <name>apptest</name>
  9. <properties>
  10. <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. </properties>
  13. <dependencies>
  14. <dependency>
  15. <groupId>javax</groupId>
  16. <artifactId>javaee-web-api</artifactId>
  17. <version>7.0</version>
  18. <scope>provided</scope>
  19. </dependency>
  20. </dependencies>
  21. <build>
  22. <plugins>
  23. <plugin>
  24. <groupId>org.apache.maven.plugins</groupId>
  25. <artifactId>maven-compiler-plugin</artifactId>
  26. <version>3.1</version>
  27. <configuration>
  28. <source>1.8</source>
  29. <target>1.8</target>
  30. <compilerArguments>
  31. <endorseddirs>${endorsed.dir}</endorseddirs>
  32. </compilerArguments>
  33. </configuration>
  34. </plugin>
  35. <plugin>
  36. <groupId>org.apache.maven.plugins</groupId>
  37. <artifactId>maven-war-plugin</artifactId>
  38. <version>2.3</version>
  39. <configuration>
  40. <failOnMissingWebXml>false</failOnMissingWebXml>
  41. </configuration>
  42. </plugin>
  43. <plugin>
  44. <groupId>org.apache.maven.plugins</groupId>
  45. <artifactId>maven-dependency-plugin</artifactId>
  46. <version>2.6</version>
  47. <executions>
  48. <execution>
  49. <phase>validate</phase>
  50. <goals>
  51. <goal>copy</goal>
  52. </goals>
  53. <configuration>
  54. <outputDirectory>${endorsed.dir}</outputDirectory>
  55. <silent>true</silent>
  56. <artifactItems>
  57. <artifactItem>
  58. <groupId>javax</groupId>
  59. <artifactId>javaee-endorsed-api</artifactId>
  60. <version>7.0</version>
  61. <type>jar</type>
  62. </artifactItem>
  63. </artifactItems>
  64. </configuration>
  65. </execution>
  66. </executions>
  67. </plugin>
  68. </plugins>
  69. </build>
  70. </project>