Guest User

Untitled

a guest
Jul 7th, 2019
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.25 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5.  
  6. <groupId>schednie</groupId>
  7. <artifactId>app8</artifactId>
  8. <version>42</version>
  9. <packaging>jar</packaging>
  10.  
  11. <properties>
  12. <maven.compiler.target>1.8</maven.compiler.target>
  13. <maven.compiler.source>1.8</maven.compiler.source>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  16.  
  17. <maven-jar-plugin.version>3.1.2</maven-jar-plugin.version>
  18. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  19.  
  20. <jupiter.version>5.5.0</jupiter.version>
  21. <mockito.version>2.28.2</mockito.version>
  22. <slf4j.version>1.7.25</slf4j.version>
  23. <logback.version>1.2.3</logback.version>
  24. </properties>
  25.  
  26. <build>
  27. <finalName>${project.artifactId}</finalName>
  28. <plugins>
  29. <plugin>
  30. <groupId>org.apache.maven.plugins</groupId>
  31. <artifactId>maven-jar-plugin</artifactId>
  32. <version>${maven-jar-plugin.version}</version>
  33. <configuration>
  34. <archive>
  35. <manifest>
  36. <addClasspath>true</addClasspath>
  37. <mainClass>schednie.Main</mainClass>
  38. <classpathPrefix>dependency-jars/</classpathPrefix>
  39. </manifest>
  40. </archive>
  41. </configuration>
  42. </plugin>
  43. <!-- Copy project dependency -->
  44. <plugin>
  45. <groupId>org.apache.maven.plugins</groupId>
  46. <artifactId>maven-dependency-plugin</artifactId>
  47. <executions>
  48. <execution>
  49. <id>copy-dependencies</id>
  50. <phase>package</phase>
  51. <goals>
  52. <goal>copy-dependencies</goal>
  53. </goals>
  54. <configuration>
  55. <!-- exclude junit, we need runtime dependency only -->
  56. <includeScope>runtime</includeScope>
  57. <outputDirectory>${project.build.directory}/dependency-jars/</outputDirectory>
  58. </configuration>
  59. </execution>
  60. </executions>
  61. </plugin>
  62. <plugin>
  63. <groupId>org.apache.maven.plugins</groupId>
  64. <artifactId>maven-compiler-plugin</artifactId>
  65. <version>${maven-compiler-plugin.version}</version>
  66. <configuration>
  67. <source>${maven.compiler.source}</source>
  68. <target>${maven.compiler.target}</target>
  69. </configuration>
  70. </plugin>
  71. </plugins>
  72. </build>
  73.  
  74. <dependencies>
  75. <dependency>
  76. <groupId>org.mockito</groupId>
  77. <artifactId>mockito-core</artifactId>
  78. <version>${mockito.version}</version>
  79. <scope>test</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.junit.jupiter</groupId>
  83. <artifactId>junit-jupiter-params</artifactId>
  84. <version>${jupiter.version}</version>
  85. <scope>test</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.junit.jupiter</groupId>
  89. <artifactId>junit-jupiter</artifactId>
  90. <version>${jupiter.version}</version>
  91. <scope>test</scope>
  92. </dependency>
  93.  
  94. <!--LOGBACK-->
  95. <dependency>
  96. <groupId>ch.qos.logback</groupId>
  97. <artifactId>logback-classic</artifactId>
  98. <version>${logback.version}</version>
  99. </dependency>
  100.  
  101. <!--SLF4J-->
  102. <dependency>
  103. <groupId>org.slf4j</groupId>
  104. <artifactId>slf4j-api</artifactId>
  105. <version>${slf4j.version}</version>
  106. </dependency>
  107. </dependencies>
  108.  
  109.  
  110. </project>
Advertisement
Add Comment
Please, Sign In to add comment