Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.59 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>test</groupId>
  8. <artifactId>test</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10. <dependencies>
  11.     <dependency>
  12.         <groupId>io.javalin</groupId>
  13.         <artifactId>javalin</artifactId>
  14.         <version>2.6.0</version>
  15.     </dependency>
  16.     <dependency>
  17.         <groupId>org.json</groupId>
  18.         <artifactId>json</artifactId>
  19.         <version>20180813</version>
  20.     </dependency>
  21.     <dependency>
  22.         <groupId>org.slf4j</groupId>
  23.         <artifactId>slf4j-simple</artifactId>
  24.         <version>1.7.25</version>
  25.     </dependency>
  26. </dependencies>
  27. <build>
  28.     <plugins>
  29.         <plugin>
  30.             <groupId>org.apache.maven.plugins</groupId>
  31.             <artifactId>maven-compiler-plugin</artifactId>
  32.             <version>2.3.2</version>
  33.             <configuration>
  34.                 <source>1.8</source>
  35.                 <target>1.8</target>
  36.             </configuration>
  37.         </plugin>
  38.         <plugin>
  39.             <artifactId>maven-assembly-plugin</artifactId>
  40.             <executions>
  41.                 <execution>
  42.                     <phase>package</phase>
  43.                     <goals>
  44.                         <goal>single</goal>
  45.                     </goals>
  46.                 </execution>
  47.             </executions>
  48.             <configuration>
  49.                 <descriptorRefs>
  50.                     <!-- This tells Maven to include all dependencies -->
  51.                     <descriptorRef>jar-with-dependencies</descriptorRef>
  52.                 </descriptorRefs>
  53.                 <archive>
  54.                     <manifest>
  55.                         <mainClass>Main</mainClass>
  56.                     </manifest>
  57.                 </archive>
  58.             </configuration>
  59.         </plugin>
  60.         <plugin>
  61.             <groupId>com.heroku.sdk</groupId>
  62.             <artifactId>heroku-maven-plugin</artifactId>
  63.             <version>1.1.3</version>
  64.             <configuration>
  65.                 <jdkVersion>1.8</jdkVersion>
  66.                 <appName>javalin-test23432</appName>
  67.                 <processTypes>
  68.                     <!-- Tell Heroku how to launch your application -->
  69.                     <web>java -jar ./target/test-1.0-SNAPSHOT-jar-with-dependencies.jar</web>
  70.                 </processTypes>
  71.             </configuration>
  72.         </plugin>
  73.     </plugins>
  74. </build>
  75.  
  76. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement