pom.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <name>RestExpress-Minimal-Scaffold</name>
  5. <!--
  6. To run the project: mvn clean package exec:java
  7. To create a project deployable assembly:
  8. mvn clean package
  9. mvn assembly:single
  10. -->
  11. <description>A Minimal RestExpress Server</description>
  12. <url>https://github.com/RestExpress/RestExpress-Scaffold</url>
  13. <groupId>hello.world</groupId>
  14. <artifactId>world</artifactId>
  15. <version>1.0-SNAPSHOT</version>
  16. <packaging>jar</packaging>
  17. <dependencies>
  18. <dependency>
  19. <groupId>com.strategicgains</groupId>
  20. <artifactId>RestExpress</artifactId>
  21. <version>0.9.2</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>com.strategicgains.repoexpress</groupId>
  25. <artifactId>repoexpress-mongodb</artifactId>
  26. <version>0.3.2</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>mysql</groupId>
  30. <artifactId>mysql-connector-java</artifactId>
  31. <version>5.1.23</version>
  32. </dependency>
  33. </dependencies>
  34. <build>
  35. <defaultGoal>package</defaultGoal>
  36. <plugins>
  37. <plugin>
  38. <groupId>org.apache.maven.plugins</groupId>
  39. <artifactId>maven-compiler-plugin</artifactId>
  40. <version>3.0</version>
  41. <configuration>
  42. <source>1.7</source>
  43. <target>1.7</target>
  44. <encoding>UTF-8</encoding>
  45. </configuration>
  46. </plugin>
  47. <plugin>
  48. <groupId>org.codehaus.mojo</groupId>
  49. <artifactId>exec-maven-plugin</artifactId>
  50. <version>1.2.1</version>
  51. <configuration>
  52. <mainClass>hello.Main</mainClass>
  53. </configuration>
  54. </plugin>
  55. <plugin>
  56. <groupId>org.apache.maven.plugins</groupId>
  57. <artifactId>maven-jar-plugin</artifactId>
  58. <version>2.4</version>
  59. <configuration>
  60. <archive>
  61. <addMavenDescriptor>false</addMavenDescriptor>
  62. <manifest>
  63. <addClasspath>true</addClasspath>
  64. <classpathPrefix>./lib/</classpathPrefix>
  65. <mainClass>hello.Main</mainClass>
  66. </manifest>
  67. </archive>
  68. </configuration>
  69. </plugin>
  70. <plugin>
  71. <groupId>org.apache.maven.plugins</groupId>
  72. <artifactId>maven-assembly-plugin</artifactId>
  73. <version>2.4</version>
  74. <configuration>
  75. <descriptor>zip-with-dependencies.xml</descriptor>
  76. </configuration>
  77. </plugin>
  78. </plugins>
  79. </build>
  80. <reporting>
  81. <plugins>
  82. <plugin>
  83. <groupId>org.codehaus.mojo</groupId>
  84. <artifactId>versions-maven-plugin</artifactId>
  85. <version>2.0</version>
  86. </plugin>
  87. </plugins>
  88. </reporting>
  89. </project>