|
4 | 4 | <groupId>ru.kindteam</groupId>
|
5 | 5 | <artifactId>yatour-folderer</artifactId>
|
6 | 6 | <packaging>jar</packaging>
|
7 |
| - <version>0.1</version> |
| 7 | + <version>0.2</version> |
8 | 8 | <name>yatour-folderer</name>
|
9 | 9 | <url>http://maven.apache.org</url>
|
10 | 10 |
|
|
24 | 24 | <artifactId>commons-io</artifactId>
|
25 | 25 | <version>1.3.2</version>
|
26 | 26 | </dependency>
|
27 |
| - |
| 27 | + |
28 | 28 | <dependency>
|
29 | 29 | <groupId>commons-cli</groupId>
|
30 | 30 | <artifactId>commons-cli</artifactId>
|
31 | 31 | <version>1.2</version>
|
32 | 32 | </dependency>
|
33 |
| - |
34 |
| - |
35 | 33 | </dependencies>
|
36 | 34 | <build>
|
37 | 35 | <plugins>
|
|
46 | 44 | <goal>copy-dependencies</goal>
|
47 | 45 | </goals>
|
48 | 46 | <configuration>
|
49 |
| - <outputDirectory>${project.build.directory}/classes/lib</outputDirectory> |
| 47 | + <outputDirectory>${project.build.directory}/jar/lib</outputDirectory> |
50 | 48 | <overWriteReleases>false</overWriteReleases>
|
51 | 49 | <overWriteSnapshots>false</overWriteSnapshots>
|
52 | 50 | <overWriteIfNewer>true</overWriteIfNewer>
|
|
65 | 63 | <encoding>UTF-8</encoding>
|
66 | 64 | </configuration>
|
67 | 65 | </plugin>
|
| 66 | + |
| 67 | + <plugin> |
| 68 | + <artifactId>maven-assembly-plugin</artifactId> |
| 69 | + <executions> |
| 70 | + <execution> |
| 71 | + <phase>package</phase> |
| 72 | + <goals> |
| 73 | + <goal>single</goal> |
| 74 | + </goals> |
| 75 | + </execution> |
| 76 | + </executions> |
| 77 | + <configuration> |
| 78 | + <descriptorRefs> |
| 79 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 80 | + </descriptorRefs> |
| 81 | + <source>1.7</source> |
| 82 | + <target>1.7</target> |
| 83 | + <archive> |
| 84 | + <manifest> |
| 85 | + <addClasspath>true</addClasspath> |
| 86 | + <mainClass>ru.kindteam.YatourFolderer</mainClass> |
| 87 | + </manifest> |
| 88 | + </archive> |
| 89 | + <outputDirectory>${project.build.directory}/single-jar</outputDirectory> |
| 90 | + </configuration> |
| 91 | + </plugin> |
68 | 92 | <plugin>
|
69 | 93 | <!-- Build an executable JAR -->
|
70 | 94 | <groupId>org.apache.maven.plugins</groupId>
|
|
76 | 100 | <archive>
|
77 | 101 | <manifest>
|
78 | 102 | <addClasspath>true</addClasspath>
|
79 |
| - <classpathPrefix>classes/lib/</classpathPrefix> |
| 103 | + <classpathPrefix>lib/</classpathPrefix> |
80 | 104 | <mainClass>ru.kindteam.YatourFolderer</mainClass>
|
81 | 105 | </manifest>
|
82 | 106 | </archive>
|
|
0 commit comments