Ravi Srinivasan
2018-09-06 1b26cc8d09cd5da97f80100ca2435ce296838685
commit | author | age
1b26cc 1
RS 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 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         <groupId>com.redhat.training</groupId>
6         <artifactId>todojse</artifactId>
7         <version>1.0</version>
8         <packaging>jar</packaging>
9         <properties>
10         <!-- Explicitly declaring the source encoding eliminates the following
11             message: -->
12         <!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
13             resources, i.e. build is platform dependent! -->
14         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15         <!-- maven-compiler-plugin -->
16         <maven.compiler.target>1.8</maven.compiler.target>
17         <maven.compiler.source>1.8</maven.compiler.source>
18     </properties>
19     <build>
20         <plugins>
21             <plugin>
22                 <groupId>org.codehaus.mojo</groupId>
23                 <artifactId>exec-maven-plugin</artifactId>
24                 <version>1.5.0</version>
25                 <executions>
26                     <execution>
27                         <goals>
28                             <goal>java</goal>
29                         </goals>
30                     </execution>
31                 </executions>
32                 <configuration>
33                     <mainClass>com.redhat.training.TestTodoMap</mainClass>
34                 </configuration>
35             </plugin>
36             <plugin>
37                 <groupId>org.apache.maven.plugins</groupId>
38                 <artifactId>maven-assembly-plugin</artifactId>
39                 <version>2.6</version>
40                 <executions>
41                     <execution>
42                         <id>package-jar-with-dependencies</id>
43                         <phase>package</phase>
44                         <goals>
45                             <goal>single</goal>
46                         </goals>
47                         <configuration>
48                             <appendAssemblyId>false</appendAssemblyId>
49                             <descriptorRefs>
50                                 <descriptorRef>jar-with-dependencies</descriptorRef>
51                             </descriptorRefs>
52                             <archive>
53                                 <manifest>
54                                     <mainClass>com.redhat.training.TestTodoMap</mainClass>
55                                 </manifest>
56                             </archive>
57                         </configuration>
58                     </execution>
59                 </executions>
60             </plugin>
61         </plugins>
62     </build>
63 </project>