Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 6.13 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns = "http://maven.apache.org/POM/4.0.0"
  3.         xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
  4.         xsi:schemaLocation = "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5.     <modelVersion>4.0.0</modelVersion>
  6.  
  7.     <groupId>me.is102g4.restapi</groupId>
  8.     <artifactId>Rest-API</artifactId>
  9.     <version>1.0.0</version>
  10.     <packaging>war</packaging>
  11.  
  12.     <name>Vitia REST API</name>
  13.  
  14.     <properties>
  15.         <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
  16.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17.         <jersey.version>2.26</jersey.version>
  18.     </properties>
  19.  
  20.     <dependencies>
  21.         <dependency>
  22.             <groupId>javax</groupId>
  23.             <artifactId>javaee-web-api</artifactId>
  24.             <version>7.0</version>
  25.             <scope>provided</scope>
  26.         </dependency>
  27.         <!-- jax-rs-related dependencies start -->
  28.         <dependency>
  29.             <groupId>org.glassfish.jersey.bundles</groupId>
  30.             <artifactId>jaxrs-ri</artifactId>
  31.             <version>2.26</version>
  32.         </dependency>
  33.         <!-- jax-rs-related dependencies end -->
  34.         <!-- for JWT libraries (start) -->
  35.         <dependency>
  36.             <groupId>io.jsonwebtoken</groupId>
  37.             <artifactId>jjwt-api</artifactId>
  38.             <version>0.10.2</version>
  39.         </dependency>
  40.         <dependency>
  41.             <groupId>io.jsonwebtoken</groupId>
  42.             <artifactId>jjwt-impl</artifactId>
  43.             <version>0.10.2</version>
  44.             <scope>runtime</scope>
  45.         </dependency>
  46.         <dependency>
  47.             <groupId>io.jsonwebtoken</groupId>
  48.             <artifactId>jjwt-jackson</artifactId>
  49.             <version>0.10.2</version>
  50.             <scope>runtime</scope>
  51.         </dependency>
  52.         <!-- for JWT libraries (end) -->
  53.         <dependency>
  54.             <groupId>junit</groupId>
  55.             <artifactId>junit</artifactId>
  56.             <version>4.12</version>
  57.             <scope>test</scope>
  58.         </dependency>
  59.         <dependency>
  60.             <groupId>commons-dbcp</groupId>
  61.             <artifactId>commons-dbcp</artifactId>
  62.             <version>20030825.184428</version>
  63.         </dependency>
  64.         <!-- MySQL -->
  65.         <dependency>
  66.             <groupId>mysql</groupId>
  67.             <artifactId>mysql-connector-java</artifactId>
  68.             <version>8.0.12</version>
  69.         </dependency>
  70.         <dependency>
  71.             <groupId>commons-pool</groupId>
  72.             <artifactId>commons-pool</artifactId>
  73.             <version>1.5.4</version>
  74.         </dependency>
  75.         <!-- email -->
  76.         <!-- https://mvnrepository.com/artifact/com.sendgrid/sendgrid-java -->
  77.         <dependency>
  78.             <groupId>com.sendgrid</groupId>
  79.             <artifactId>sendgrid-java</artifactId>
  80.             <version>4.3.0</version>
  81.         </dependency>
  82.         <!-- ORM -->
  83.         <dependency>
  84.             <groupId>org.hibernate.javax.persistence</groupId>
  85.             <artifactId>hibernate-jpa-2.1-api</artifactId>
  86.             <version>1.0.0.Final</version>
  87.         </dependency>
  88.         <dependency>
  89.             <groupId>org.hibernate</groupId>
  90.             <artifactId>hibernate-core</artifactId>
  91.             <version>5.3.7.Final</version>
  92.         </dependency>
  93.         <!-- GSON for JSON handling, because screw JAX-RS tbh -->
  94.         <dependency>
  95.             <groupId>com.google.code.gson</groupId>
  96.             <artifactId>gson</artifactId>
  97.             <version>2.8.5</version>
  98.         </dependency>
  99.     </dependencies>
  100.  
  101.     <build>
  102.         <plugins>
  103.             <plugin>
  104.                 <groupId>org.apache.maven.plugins</groupId>
  105.                 <artifactId>maven-compiler-plugin</artifactId>
  106.                 <version>3.1</version>
  107.                 <configuration>
  108.                     <source>1.8</source>
  109.                     <target>1.8</target>
  110.                     <compilerArguments>
  111.                         <endorseddirs>${endorsed.dir}</endorseddirs>
  112.                     </compilerArguments>
  113.                 </configuration>
  114.             </plugin>
  115.             <plugin>
  116.                 <groupId>org.apache.maven.plugins</groupId>
  117.                 <artifactId>maven-war-plugin</artifactId>
  118.                 <version>2.3</version>
  119.                 <configuration>
  120.                     <failOnMissingWebXml>false</failOnMissingWebXml>
  121.                 </configuration>
  122.             </plugin>
  123.             <plugin>
  124.                 <groupId>org.apache.maven.plugins</groupId>
  125.                 <artifactId>maven-dependency-plugin</artifactId>
  126.                 <version>2.6</version>
  127.                 <executions>
  128.                     <execution>
  129.                         <phase>validate</phase>
  130.                         <goals>
  131.                             <goal>copy</goal>
  132.                         </goals>
  133.                         <configuration>
  134.                             <outputDirectory>${endorsed.dir}</outputDirectory>
  135.                             <silent>true</silent>
  136.                             <artifactItems>
  137.                                 <artifactItem>
  138.                                     <groupId>javax</groupId>
  139.                                     <artifactId>javaee-endorsed-api</artifactId>
  140.                                     <version>7.0</version>
  141.                                     <type>jar</type>
  142.                                 </artifactItem>
  143.                             </artifactItems>
  144.                         </configuration>
  145.                     </execution>
  146.                 </executions>
  147.             </plugin>
  148.             <plugin>
  149.                 <groupId>org.eclipse.jetty</groupId>
  150.                 <artifactId>jetty-maven-plugin</artifactId>
  151.                 <version>9.4.7.v20170914</version>
  152.                 <!--<configuration>
  153.                     <scanIntervalSeconds>10</scanIntervalSeconds>
  154.                     <webApp>
  155.                         <contextPath>/flash-card-app</contextPath>
  156.                     </webApp>
  157.                 </configuration>-->
  158.             </plugin>
  159.  
  160.         </plugins>
  161.     </build>
  162.  
  163. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement