Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.29 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
  4.          http://maven.apache.org/maven-v4_0_0.xsd">
  5.     <modelVersion>4.0.0</modelVersion>
  6.     <groupId>com.mkyong.hashing</groupId>
  7.     <artifactId>java-project</artifactId>
  8.     <packaging>jar</packaging>
  9.     <version>1.0-SNAPSHOT</version>
  10.     <name>java-project</name>
  11.     <url>http://maven.apache.org</url>
  12.  
  13.     <properties>
  14.         <!-- https://maven.apache.org/general.html#encoding-warning -->
  15.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16.         <maven.compiler.source>1.8</maven.compiler.source>
  17.         <maven.compiler.target>1.8</maven.compiler.target>
  18.     </properties>
  19.  
  20.     <dependencies>
  21.         <dependency>
  22.             <groupId>junit</groupId>
  23.             <artifactId>junit</artifactId>
  24.             <version>4.12</version>
  25.             <scope>test</scope>
  26.         </dependency>
  27.         <dependency>
  28.             <groupId>commons-codec</groupId>
  29.             <artifactId>commons-codec</artifactId>
  30.             <version>1.11</version>
  31.         </dependency>
  32.     </dependencies>
  33.     <build>
  34.         <plugins>
  35.             <plugin>
  36.                 <groupId>org.apache.maven.plugins</groupId>
  37.                 <artifactId>maven-shade-plugin</artifactId>
  38.                 <version>3.2.0</version>
  39.                 <executions>
  40.                     <!-- Attach the shade into the package phase -->
  41.                     <execution>
  42.                         <phase>package</phase>
  43.                         <goals>
  44.                             <goal>shade</goal>
  45.                         </goals>
  46.                         <configuration>
  47.                             <transformers>
  48.                                 <transformer
  49.                                        implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  50.                                     <mainClass>com.mkyong.hashing.App</mainClass>
  51.                                 </transformer>
  52.                             </transformers>
  53.                         </configuration>
  54.                     </execution>
  55.                 </executions>
  56.             </plugin>
  57.            
  58.         </plugins>
  59.     </build>
  60. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement