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 >br.org.soujava.rio</groupId >
5+ <artifactId >SparkJava-Sample</artifactId >
6+ <version >0.0.1-SNAPSHOT</version >
7+ <name >SparkJava-Sample</name >
8+ <description >Hello World com SparkJava</description >
9+
10+ <organization >
11+ <name >SouJava { Rio }</name >
12+ <url >http://soujava-rio.github.io</url >
13+ </organization >
14+
15+ <properties >
16+ <maven .compiler.source>1.8</maven .compiler.source>
17+ <maven .compiler.target>1.8</maven .compiler.target>
18+ </properties >
19+
20+ <developers >
21+ <developer >
22+ <name >Daniel Dias</name >
23+ <email >daniel.dias@soujava.org.br</email >
24+ <organization >SouJava { Rio }</organization >
25+ </developer >
26+ </developers >
27+
28+ <dependencies >
29+ <dependency >
30+ <groupId >org.projectlombok</groupId >
31+ <artifactId >lombok</artifactId >
32+ <version >1.16.14</version >
33+ <scope >provided</scope >
34+ </dependency >
35+ <dependency >
36+ <groupId >com.sparkjava</groupId >
37+ <artifactId >spark-core</artifactId >
38+ <version >2.7.1</version >
39+ </dependency >
40+ </dependencies >
41+
42+ <build >
43+ <finalName >SparkJava-sample</finalName >
44+ <plugins >
45+
46+ <plugin >
47+ <groupId >org.apache.maven.plugins</groupId >
48+ <artifactId >maven-jar-plugin</artifactId >
49+ <configuration >
50+ <archive >
51+ <manifest >
52+ <addClasspath >true</addClasspath >
53+ <mainClass >br.org.soujava.rio.app.Main</mainClass >
54+ <classpathPrefix >dependency-jars/</classpathPrefix >
55+ </manifest >
56+ </archive >
57+ </configuration >
58+ </plugin >
59+
60+ <!-- Copy project dependency -->
61+ <plugin >
62+ <groupId >org.apache.maven.plugins</groupId >
63+ <artifactId >maven-dependency-plugin</artifactId >
64+ <version >2.5.1</version >
65+ <executions >
66+ <execution >
67+ <id >copy-dependencies</id >
68+ <phase >package</phase >
69+ <goals >
70+ <goal >copy-dependencies</goal >
71+ </goals >
72+ <configuration >
73+ <!-- exclude junit, we need runtime dependency only -->
74+ <includeScope >runtime</includeScope >
75+ <outputDirectory >${project.build.directory} /dependency-jars/</outputDirectory >
76+ </configuration >
77+ </execution >
78+ </executions >
79+ </plugin >
80+ </plugins >
81+ </build >
82+ </project >
0 commit comments