Advertisement
Guest User

Untitled

a guest
Apr 9th, 2019
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.67 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <project xmlns="http://maven.apache.org/POM/4.0.0" 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>org.app</groupId>
  8.   <artifactId>app</artifactId>
  9.   <version>0.1.0</version>
  10.  
  11.   <name>app</name>
  12.   <!-- FIXME change it to the project's website -->
  13.   <url>http://www.example.com</url>
  14.  
  15.   <properties>
  16.     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17.     <maven.compiler.source>1.8</maven.compiler.source>
  18.     <maven.compiler.target>1.8</maven.compiler.target>
  19.   </properties>
  20.  
  21.   <dependencies>
  22.     <dependency>
  23.       <groupId>junit</groupId>
  24.       <artifactId>junit</artifactId>
  25.       <version>4.11</version>
  26.       <scope>test</scope>
  27.     </dependency>
  28.     <dependency>
  29.       <groupId>com.googlecode.lanterna</groupId>
  30.       <artifactId>lanterna</artifactId>
  31.       <version>3.0.1</version>
  32.     </dependency>
  33.   </dependencies>
  34.  
  35.   <build>
  36.     <plugins>
  37.       <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
  38.       <plugin>
  39.         <artifactId>maven-clean-plugin</artifactId>
  40.         <version>3.1.0</version>
  41.       </plugin>
  42.       <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
  43.       <plugin>
  44.         <artifactId>maven-resources-plugin</artifactId>
  45.         <version>3.0.2</version>
  46.       </plugin>
  47.       <plugin>
  48.         <artifactId>maven-compiler-plugin</artifactId>
  49.         <version>3.8.0</version>
  50.       </plugin>
  51.       <plugin>
  52.         <artifactId>maven-surefire-plugin</artifactId>
  53.         <version>2.22.1</version>
  54.       </plugin>
  55.       <plugin>
  56.         <groupId>org.apache.maven.plugins</groupId>
  57.         <artifactId>maven-jar-plugin</artifactId>
  58.         <version>3.1.1</version>
  59.         <configuration>
  60.           <archive>
  61.             <manifest>
  62.               <mainClass>org.appl.App</mainClass>
  63.               <addClasspath>true</addClasspath>
  64.               <classpathPrefix>lib/</classpathPrefix>
  65.             </manifest>
  66.           </archive>
  67.         </configuration>
  68.       </plugin>
  69.       <plugin>
  70.         <artifactId>maven-install-plugin</artifactId>
  71.         <version>2.5.2</version>
  72.       </plugin>
  73.       <plugin>
  74.         <artifactId>maven-deploy-plugin</artifactId>
  75.         <version>2.8.2</version>
  76.       </plugin>
  77.       <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
  78.       <plugin>
  79.         <artifactId>maven-site-plugin</artifactId>
  80.         <version>3.7.1</version>
  81.       </plugin>
  82.       <plugin>
  83.         <artifactId>maven-project-info-reports-plugin</artifactId>
  84.         <version>3.0.0</version>
  85.       </plugin>
  86.       <!-- Additional plugins -->
  87.       <plugin>
  88.         <groupId>org.apache.maven.plugins</groupId>
  89.         <artifactId>maven-dependency-plugin</artifactId>
  90.         <executions>
  91.           <execution>
  92.             <id>copy-dependencies</id>
  93.             <phase>prepare-package</phase>
  94.             <goals>
  95.               <goal>copy-dependencies</goal>
  96.             </goals>
  97.             <configuration>
  98.               <outputdirectory>${project.build.directory}/lib</outputdirectory>
  99.               <overwritereleases>false</overwritereleases>
  100.               <overwritesnapshots>true</overwritesnapshots>
  101.               <overwriteifnewer>true</overwriteifnewer>
  102.             </configuration>
  103.           </execution>
  104.         </executions>
  105.       </plugin>
  106.     </plugins>
  107.   </build>
  108. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement