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.

50 lines
1.9 KiB

10 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>SampleApp</groupId>
  5. <artifactId>SampleApp</artifactId>
  6. <packaging>war</packaging>
  7. <version>1.0</version>
  8. <name>SampleApp</name>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <maven.compiler.source>1.7</maven.compiler.source>
  12. <maven.compiler.target>1.7</maven.compiler.target>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>javax</groupId>
  17. <artifactId>javaee-api</artifactId>
  18. <version>7.0</version>
  19. <scope>provided</scope>
  20. </dependency>
  21. </dependencies>
  22. <profiles>
  23. <profile>
  24. <!-- When built in OpenShift the 'openshift' profile will be used when invoking mvn. -->
  25. <!-- Use this profile for any OpenShift specific customization your app will need. -->
  26. <!-- By default that is to put the resulting archive into the 'deployments' folder. -->
  27. <!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html -->
  28. <id>openshift</id>
  29. <build>
  30. <finalName>SampleApp</finalName>
  31. <plugins>
  32. <plugin>
  33. <groupId>org.apache.maven.plugins</groupId>
  34. <artifactId>maven-war-plugin</artifactId>
  35. <version>2.3</version>
  36. <configuration>
  37. <failOnMissingWebXml>false</failOnMissingWebXml>
  38. <outputDirectory>target</outputDirectory>
  39. <warName>ROOT</warName>
  40. </configuration>
  41. </plugin>
  42. </plugins>
  43. </build>
  44. </profile>
  45. </profiles>
  46. </project>