github.com/SupersunnySea/draft@v0.16.0/examples/example-java/pom.xml (about) 1 <?xml version="1.0" encoding="UTF-8"?> 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 6 <groupId>helloworld</groupId> 7 <artifactId>helloworld</artifactId> 8 <version>1.0</version> 9 10 <dependencies> 11 <dependency> 12 <groupId>com.sparkjava</groupId> 13 <artifactId>spark-core</artifactId> 14 <version>2.0.0</version> 15 </dependency> 16 </dependencies> 17 18 <build> 19 <plugins> 20 <plugin> 21 <groupId>org.apache.maven.plugins</groupId> 22 <artifactId>maven-jar-plugin</artifactId> 23 <version>2.4</version> 24 <configuration> 25 <finalName>helloworld</finalName> 26 <archive> 27 <manifest> 28 <addClasspath>true</addClasspath> 29 <mainClass>helloworld.Hello</mainClass> 30 <classpathPrefix>dependency-jars/</classpathPrefix> 31 </manifest> 32 </archive> 33 </configuration> 34 </plugin> 35 <plugin> 36 <groupId>org.apache.maven.plugins</groupId> 37 <artifactId>maven-compiler-plugin</artifactId> 38 <version>3.1</version> 39 <configuration> 40 <source>1.8</source> 41 <target>1.8</target> 42 </configuration> 43 </plugin> 44 <plugin> 45 <groupId>org.apache.maven.plugins</groupId> 46 <artifactId>maven-assembly-plugin</artifactId> 47 <executions> 48 <execution> 49 <goals> 50 <goal>attached</goal> 51 </goals> 52 <phase>package</phase> 53 <configuration> 54 <finalName>helloworld</finalName> 55 <descriptorRefs> 56 <descriptorRef>jar-with-dependencies</descriptorRef> 57 </descriptorRefs> 58 <archive> 59 <manifest> 60 <mainClass>helloworld.Hello</mainClass> 61 </manifest> 62 </archive> 63 </configuration> 64 </execution> 65 </executions> 66 </plugin> 67 </plugins> 68 </build> 69 </project>