leonelhl

Falabella-Config-Maven-All-Dependencys

Oct 16th, 2019
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.24 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>cl.falabella</groupId>
  5.     <artifactId>examplelog4</artifactId>
  6.     <version>0.0.1-SNAPSHOT</version>
  7.     <properties>
  8.         <java.version>1.8</java.version>
  9.     </properties>
  10.     <dependencies>
  11.         <dependency>
  12.             <groupId>log4j</groupId>
  13.             <artifactId>log4j</artifactId>
  14.             <version>1.2.17</version>
  15.         </dependency>
  16.     </dependencies>
  17.     <build>
  18.         <plugins>
  19.             <plugin>
  20.                 <artifactId>maven-assembly-plugin</artifactId>
  21.                 <configuration>
  22.                     <archive>
  23.                         <manifest>
  24.                             <mainClass>examplelog4.LogginTest</mainClass>
  25.                         </manifest>
  26.                     </archive>
  27.                     <descriptorRefs>
  28.                         <descriptorRef>jar-with-dependencies</descriptorRef>
  29.                     </descriptorRefs>
  30.                 </configuration>
  31.                 <executions>
  32.                     <execution>
  33.                         <id>make-assembly</id> <!-- this is used for inheritance merges -->
  34.                         <phase>package</phase> <!-- bind to the packaging phase -->
  35.                         <goals>
  36.                             <goal>single</goal>
  37.                         </goals>
  38.                     </execution>
  39.                 </executions>
  40.             </plugin>
  41.         </plugins>
  42.     </build>
  43. </project>
Advertisement
Add Comment
Please, Sign In to add comment