Advertisement
robert-lill

pom.xml updated

Oct 11th, 2016
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 12.41 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.  
  6.     <modelVersion>4.0.0</modelVersion>
  7.     <packaging>war</packaging>
  8.     <version>1.0-SNAPSHOT</version>
  9.  
  10.     <groupId>my.package</groupId>
  11.     <artifactId>my-manager</artifactId>
  12.  
  13.     <properties>
  14.         <app.id>my-manager</app.id>
  15.         <app.version>1</app.version>
  16.         <appengine.version>1.9.42</appengine.version>
  17.         <gcloud.plugin.version>2.0.9.121.v20160815</gcloud.plugin.version>
  18.         <google-api-client.version>1.22.0</google-api-client.version>
  19.         <google-api-pubsub.version>v1-rev8-1.21.0</google-api-pubsub.version>
  20.         <swagger-maven-plugin-version>3.1.0</swagger-maven-plugin-version>
  21.         <swagger-core-version>1.5.9</swagger-core-version>
  22.         <jersey.version>2.23.2</jersey.version>
  23.         <jackson.version>2.8.3</jackson.version>
  24.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  25.         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  26.         <maven.compiler.source>1.7</maven.compiler.source>
  27.         <maven.compiler.target>1.7</maven.compiler.target>
  28.         <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation>
  29.         <archiveClasses>true</archiveClasses>
  30.     </properties>
  31.  
  32.     <prerequisites>
  33.         <maven>3.3.9</maven>
  34.     </prerequisites>
  35.  
  36.     <dependencies>
  37.         <!-- Compile/runtime dependencies -->
  38.         <dependency>
  39.             <groupId>com.google.appengine</groupId>
  40.             <artifactId>appengine-api-1.0-sdk</artifactId>
  41.             <version>${appengine.version}</version>
  42.         </dependency>
  43.         <dependency>
  44.             <groupId>javax.servlet</groupId>
  45.             <artifactId>javax.servlet-api</artifactId>
  46.             <version>3.1.0</version>
  47.         </dependency>
  48.         <dependency>
  49.             <groupId>jstl</groupId>
  50.             <artifactId>jstl</artifactId>
  51.             <version>1.2</version>
  52.         </dependency>
  53.         <dependency>
  54.           <groupId>com.googlecode.objectify</groupId>
  55.           <artifactId>objectify</artifactId>
  56.           <version>5.1.13</version>
  57.         </dependency>
  58.         <dependency>
  59.             <groupId>com.google.apis</groupId>
  60.             <artifactId>google-api-services-pubsub</artifactId>
  61.             <version>${google-api-pubsub.version}</version>
  62.             <exclusions>
  63.                 <exclusion>
  64.                     <groupId>com.fasterxml.jackson.core</groupId>
  65.                     <artifactId>jackson-core</artifactId>
  66.                 </exclusion>
  67.                 <exclusion>
  68.                     <groupId>com.google.code.findbugs</groupId>
  69.                     <artifactId>jsr305</artifactId>
  70.                 </exclusion>
  71.             </exclusions>
  72.         </dependency>
  73.         <dependency>
  74.             <groupId>com.google.api-client</groupId>
  75.             <artifactId>google-api-client-appengine</artifactId>
  76.             <version>${google-api-client.version}</version>
  77.         </dependency>
  78.  
  79.         <dependency>
  80.             <groupId>org.glassfish.jersey.core</groupId>
  81.             <artifactId>jersey-server</artifactId>
  82.             <version>${jersey.version}</version>
  83.         </dependency>
  84.         <dependency>
  85.             <groupId>org.glassfish.jersey.containers</groupId>
  86.             <artifactId>jersey-container-servlet</artifactId>
  87.             <version>${jersey.version}</version>
  88.         </dependency>
  89.         <dependency>
  90.             <groupId>org.glassfish.jersey.ext</groupId>
  91.             <artifactId>jersey-mvc-jsp</artifactId>
  92.             <version>${jersey.version}</version>
  93.         </dependency>
  94.         <dependency>
  95.             <groupId>org.glassfish.jersey.media</groupId>
  96.             <artifactId>jersey-media-json-jackson</artifactId>
  97.             <version>${jersey.version}</version>
  98.             <exclusions>
  99.                 <exclusion>
  100.                   <groupId>com.fasterxml.jackson.jaxrs</groupId>
  101.                   <artifactId>jackson-jaxrs-base</artifactId>
  102.                 </exclusion>
  103.                 <exclusion>
  104.                   <groupId>com.fasterxml.jackson.jaxrs</groupId>
  105.                   <artifactId>jackson-jaxrs-json-provider</artifactId>
  106.                 </exclusion>
  107.                 <exclusion>
  108.                   <groupId>com.fasterxml.jackson.core</groupId>
  109.                   <artifactId>jackson-annotations</artifactId>
  110.                 </exclusion>
  111.             </exclusions>
  112.         </dependency>
  113.  
  114.         <dependency>
  115.             <groupId>com.fasterxml.jackson.core</groupId>
  116.             <artifactId>jackson-annotations</artifactId>
  117.             <version>${jackson.version}</version>
  118.         </dependency>
  119.         <dependency>
  120.             <groupId>com.fasterxml.jackson.core</groupId>
  121.             <artifactId>jackson-core</artifactId>
  122.             <version>${jackson.version}</version>
  123.         </dependency>
  124.         <dependency>
  125.             <groupId>com.fasterxml.jackson.core</groupId>
  126.             <artifactId>jackson-databind</artifactId>
  127.             <version>${jackson.version}</version>
  128.             <exclusions>
  129.                 <exclusion>  
  130.                   <groupId>com.fasterxml.jackson.core</groupId>
  131.                   <artifactId>jackson-annotations</artifactId>
  132.                 </exclusion>
  133.             </exclusions>
  134.         </dependency>
  135.         <dependency>
  136.             <groupId>com.fasterxml.jackson.jaxrs</groupId>
  137.             <artifactId>jackson-jaxrs-base</artifactId>
  138.             <version>${jackson.version}</version>
  139.         </dependency>
  140.         <dependency>
  141.             <groupId>com.fasterxml.jackson.jaxrs</groupId>
  142.             <artifactId>jackson-jaxrs-json-provider</artifactId>
  143.             <version>${jackson.version}</version>
  144.             <exclusions>
  145.                 <exclusion>  
  146.                   <groupId>com.fasterxml.jackson.core</groupId>
  147.                   <artifactId>jackson-annotations</artifactId>
  148.                 </exclusion>
  149.             </exclusions>
  150.         </dependency>
  151.  
  152.         <!-- Compile dependency -->
  153.         <dependency>
  154.             <groupId>io.swagger</groupId>
  155.             <artifactId>swagger-core</artifactId>
  156.             <version>${swagger-core-version}</version>
  157.             <scope>compile</scope>
  158.             <exclusions>
  159.                 <exclusion>
  160.                   <groupId>com.fasterxml.jackson.core</groupId>
  161.                   <artifactId>jackson-core</artifactId>
  162.                 </exclusion>
  163.                 <exclusion>
  164.                   <groupId>com.fasterxml.jackson.core</groupId>
  165.                   <artifactId>jackson-annotations</artifactId>
  166.                 </exclusion>
  167.                 <exclusion>
  168.                   <groupId>com.fasterxml.jackson.core</groupId>
  169.                   <artifactId>jackson-databind</artifactId>
  170.                 </exclusion>
  171.             </exclusions>
  172.         </dependency>
  173.  
  174.         <!-- Test Dependencies -->
  175.         <dependency>
  176.             <groupId>com.google.appengine</groupId>
  177.             <artifactId>appengine-testing</artifactId>
  178.             <version>${appengine.version}</version>
  179.             <scope>test</scope>
  180.         </dependency>
  181.         <dependency>
  182.             <groupId>com.google.appengine</groupId>
  183.             <artifactId>appengine-api-stubs</artifactId>
  184.             <version>${appengine.version}</version>
  185.             <scope>test</scope>
  186.         </dependency>
  187.         <dependency>
  188.             <groupId>junit</groupId>
  189.             <artifactId>junit</artifactId>
  190.             <version>4.12</version>
  191.             <scope>test</scope>
  192.         </dependency>
  193.     </dependencies>
  194.  
  195.     <build>
  196.         <!-- for hot reload of the web application-->
  197.         <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
  198.         <pluginManagement>
  199.             <plugins>
  200.                 <plugin>
  201.                     <groupId>org.codehaus.mojo</groupId>
  202.                     <artifactId>versions-maven-plugin</artifactId>
  203.                     <version>2.1</version>
  204.                     <executions>
  205.                         <execution>
  206.                             <phase>compile</phase>
  207.                             <goals>
  208.                                 <goal>display-dependency-updates</goal>
  209.                                 <goal>display-plugin-updates</goal>
  210.                             </goals>
  211.                         </execution>
  212.                     </executions>
  213.                 </plugin>
  214.    
  215.                 <plugin>
  216.                     <groupId>org.apache.maven.plugins</groupId>
  217.                     <artifactId>maven-war-plugin</artifactId>
  218.                     <version>2.6</version>
  219.                     <configuration>
  220.                         <archiveClasses>true</archiveClasses>
  221.                         <webResources>
  222.                             <!-- in order to interpolate version from pom into appengine-web.xml -->
  223.                             <resource>
  224.                                 <directory>${basedir}/src/main/webapp/WEB-INF</directory>
  225.                                 <filtering>true</filtering>
  226.                                 <exclude>**/*.jar</exclude>
  227.                                 <targetPath>WEB-INF</targetPath>
  228.                             </resource>
  229.                         </webResources>
  230.                     </configuration>
  231.                 </plugin>
  232.    
  233.                 <plugin>
  234.                     <groupId>com.google.appengine</groupId>
  235.                     <artifactId>appengine-maven-plugin</artifactId>
  236.                     <version>${appengine.version}</version>
  237.                     <configuration>
  238.                         <enableJarClasses>false</enableJarClasses>
  239.                         <version>${app.version}</version>
  240.                         <!-- Comment in the below snippet to bind to all IPs instead of just localhost -->
  241.                         <address>0.0.0.0</address>
  242.                         <port>8080</port>
  243.                         <!-- Comment in the below snippet to enable local debugging with a remote debugger
  244.                             like those included with Eclipse or IntelliJ -->
  245.                         <!-- jvmFlags>
  246.                          <jvmFlag>-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n</jvmFlag>
  247.                        </jvmFlags -->
  248.                     </configuration>
  249.                 </plugin>
  250.                 <plugin>
  251.                   <groupId>com.google.appengine</groupId>
  252.                   <artifactId>gcloud-maven-plugin</artifactId>
  253.                   <version>${gcloud.plugin.version}</version>
  254.                   <configuration>
  255.                     <set_default>true</set_default>
  256.                   </configuration>
  257.                 </plugin>
  258.                 <plugin>
  259.                     <groupId>com.github.kongchen</groupId>
  260.                     <artifactId>swagger-maven-plugin</artifactId>
  261.                     <version>${swagger-maven-plugin-version}</version>
  262.                     <configuration>
  263.                         <apiSources>
  264.                             <apiSource>
  265.                                 <springmvc>false</springmvc>
  266.                                 <locations>my.controller</locations>
  267.                                 <schemes>http,https</schemes>
  268.                                 <host>localhost:8080</host>
  269.                                 <basePath>/api</basePath>
  270.                                 <info>
  271.                                     <title>My Manager</title>
  272.                                     <version>1.0</version>
  273.                                 </info>
  274.                                 <outputPath>${basedir}/src/main/webapp/swagger</outputPath>
  275.                                 <swaggerDirectory>${basedir}/src/main/webapp/swagger</swaggerDirectory>
  276.                             </apiSource>
  277.                         </apiSources>
  278.                     </configuration>
  279.                 </plugin>
  280.             </plugins>
  281.         </pluginManagement>
  282.         <plugins>
  283.             <plugin>
  284.                 <groupId>com.google.appengine</groupId>
  285.                 <artifactId>appengine-maven-plugin</artifactId>
  286.             </plugin>
  287.             <plugin>
  288.                 <groupId>com.github.kongchen</groupId>
  289.                 <artifactId>swagger-maven-plugin</artifactId>
  290.             </plugin>
  291.         </plugins>
  292.     </build>
  293. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement