Advertisement
dbk

POM Update for Mkyong Spring3Example

dbk
Dec 29th, 2014
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.25 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/maven-v4_0_0.xsd">
  3.     <modelVersion>4.0.0</modelVersion>
  4.     <groupId>com.mkyong.core</groupId>
  5.     <artifactId>Spring3Example</artifactId>
  6.     <packaging>jar</packaging>
  7.     <version>1.0-SNAPSHOT</version>
  8.     <name>Spring3Example</name>
  9.     <url>http://maven.apache.org</url>
  10.  
  11.     <properties>
  12.         <spring.version>3.0.5.RELEASE</spring.version>
  13.     </properties>
  14.  
  15.     <dependencies>
  16.         <dependency>
  17.             <groupId>junit</groupId>
  18.             <artifactId>junit</artifactId>
  19.             <version>4.8.2</version>
  20.             <scope>test</scope>
  21.         </dependency>
  22.  
  23.         <!-- Spring 3 dependencies -->
  24.         <dependency>
  25.             <groupId>org.springframework</groupId>
  26.             <artifactId>spring-core</artifactId>
  27.             <version>${spring.version}</version>
  28.         </dependency>
  29.  
  30.         <dependency>
  31.             <groupId>org.springframework</groupId>
  32.             <artifactId>spring-context</artifactId>
  33.             <version>${spring.version}</version>
  34.         </dependency>
  35.  
  36.     </dependencies>
  37.  
  38.     <build>
  39.         <plugins>
  40.             <plugin>
  41.                 <groupId>org.apache.maven.plugins</groupId>
  42.                 <artifactId>maven-shade-plugin</artifactId>
  43.                 <version>2.1</version>
  44.                 <executions>
  45.                     <execution>
  46.                         <phase>package</phase>
  47.                         <goals>
  48.                             <goal>shade</goal>
  49.                         </goals>
  50.                         <configuration>
  51.                             <transformers>
  52.                                 <transformer
  53.                                    implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  54.                                     <mainClass>com.mkyong.core.App</mainClass>
  55.                                 </transformer>
  56.                             </transformers>
  57.                         </configuration>
  58.                     </execution>
  59.                 </executions>
  60.             </plugin>
  61.         </plugins>
  62.     </build>
  63.  
  64. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement