Advertisement
Guest User

Untitled

a guest
Mar 17th, 2017
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.18 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2.     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>InstagramBot</groupId>
  5.     <artifactId>InstagramBot</artifactId>
  6.     <version>2.0.0</version>
  7.     <packaging>jar</packaging>
  8.     <build>
  9.         <finalName>instagramBot</finalName>
  10.  
  11.         <sourceDirectory>src</sourceDirectory>
  12.         <plugins>
  13.             <plugin>
  14.                 <artifactId>maven-compiler-plugin</artifactId>
  15.                 <version>3.5.1</version>
  16.                 <configuration>
  17.                     <source>1.8</source>
  18.                     <target>1.8</target>
  19.                     <failOnError>false</failOnError>
  20.                 </configuration>
  21.             </plugin>
  22.  
  23.  
  24.             <plugin>
  25.                 <groupId>org.apache.maven.plugins</groupId>
  26.                 <artifactId>maven-jar-plugin</artifactId>
  27.                 <configuration>
  28.                     <archive>
  29.                         <manifest>
  30.                             <addClasspath>true</addClasspath>
  31.                             <mainClass>com.tomatechines.instagram.bot.InstagramStarter</mainClass>
  32.                             <classpathPrefix>dependency/</classpathPrefix>
  33.                         </manifest>
  34.                     </archive>
  35.                 </configuration>
  36.             </plugin>
  37.  
  38.             <!-- copy hibernate.cfg.xml and list files -->
  39.             <plugin>
  40.                 <artifactId>maven-resources-plugin</artifactId>
  41.                 <version>3.0.2</version>
  42.                 <executions>
  43.                     <execution>
  44.                         <id>copy-resources</id>
  45.                         <!-- here the phase you need -->
  46.                         <phase>validate</phase>
  47.                         <goals>
  48.                             <goal>copy-resources</goal>
  49.                         </goals>
  50.                         <configuration>
  51.                             <outputDirectory>${basedir}/target/</outputDirectory>
  52.                             <resources>
  53.                                 <includes>
  54.                                     <directory>${basedir}</directory>
  55.                                     <include>list</include>
  56.                                     <include>hibernate.cfg.xml</include>
  57.                                 </includes>
  58.                             </resources>
  59.  
  60.  
  61.                         </configuration>
  62.                     </execution>
  63.                 </executions>
  64.             </plugin>
  65.  
  66.             <!-- Copy project dependency -->
  67.             <plugin>
  68.                 <groupId>org.apache.maven.plugins</groupId>
  69.                 <artifactId>maven-dependency-plugin</artifactId>
  70.                 <version>3.0.0</version>
  71.                 <executions>
  72.                     <execution>
  73.                         <id>copy-dependencies</id>
  74.                         <phase>package</phase>
  75.                         <goals>
  76.                             <goal>copy-dependencies</goal>
  77.                         </goals>
  78.                         <configuration>
  79.                             <!-- exclude junit, we need runtime dependency only -->
  80.                             <includeScope>runtime</includeScope>
  81.                             <outputDirectory>${project.build.directory}/dependency/</outputDirectory>
  82.                         </configuration>
  83.                     </execution>
  84.                 </executions>
  85.             </plugin>
  86.  
  87.  
  88.  
  89.         </plugins>
  90.     </build>
  91.  
  92.     <properties>
  93.         <!-- Logging -->
  94.         <logback.version>1.0.13</logback.version>
  95.         <slf4j.version>1.7.5</slf4j.version>
  96.     </properties>
  97.  
  98.     <dependencies>
  99.  
  100.         <!-- My projects includes hibernate and logging -->
  101.         <dependency>
  102.             <groupId>com.tomatechines</groupId>
  103.             <artifactId>utils</artifactId>
  104.             <version>LATEST</version>
  105.         </dependency>
  106.  
  107.         <dependency>
  108.             <groupId>com.tomatechines</groupId>
  109.             <artifactId>selenium.utils</artifactId>
  110.             <version>LATEST</version>
  111.         </dependency>
  112.  
  113.         <dependency>
  114.             <groupId>com.tomatechines</groupId>
  115.             <artifactId>instagramapi</artifactId>
  116.             <version>LATEST</version>
  117.         </dependency>
  118.         <!-- -->
  119.  
  120.         <dependency>
  121.             <groupId>xml-apis</groupId>
  122.             <artifactId>xml-apis</artifactId>
  123.             <version>1.4.01</version>
  124.         </dependency>
  125.  
  126.  
  127.         <dependency>
  128.             <groupId>joda-time</groupId>
  129.             <artifactId>joda-time</artifactId>
  130.             <version>2.9.1</version>
  131.         </dependency>
  132.  
  133.         <dependency>
  134.             <groupId>org.apache.httpcomponents</groupId>
  135.             <artifactId>httpclient</artifactId>
  136.             <version>4.5.1</version>
  137.         </dependency>
  138.  
  139.  
  140.  
  141.  
  142.  
  143.         <dependency>
  144.             <groupId>mysql</groupId>
  145.             <artifactId>mysql-connector-java</artifactId>
  146.             <version>5.1.40</version>
  147.         </dependency>
  148.  
  149.         <dependency>
  150.             <groupId>org.seleniumhq.selenium</groupId>
  151.             <artifactId>selenium-java</artifactId>
  152.             <version>3.0.0-beta2</version>
  153.         </dependency>
  154.  
  155.         <dependency>
  156.             <groupId>org.seleniumhq.selenium</groupId>
  157.             <artifactId>htmlunit-driver</artifactId>
  158.             <version>2.21</version>
  159.         </dependency>
  160.  
  161.  
  162.         <dependency>
  163.             <groupId>com.detectlanguage</groupId>
  164.             <artifactId>detectlanguage</artifactId>
  165.             <version>1.0.5</version>
  166.         </dependency>
  167.     </dependencies>
  168. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement