Skip to content

Commit c73666b

Browse files
committed
Release 0.2
2 parents bd39c5d + b224d8c commit c73666b

File tree

7 files changed

+31
-7
lines changed

7 files changed

+31
-7
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/.settings
22
.project
33
.classpath
4-
!target/
54
target/*
65
!target/jar/
6+
!target/single-jar/

pom.xml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>ru.kindteam</groupId>
55
<artifactId>yatour-folderer</artifactId>
66
<packaging>jar</packaging>
7-
<version>0.1</version>
7+
<version>0.2</version>
88
<name>yatour-folderer</name>
99
<url>http://maven.apache.org</url>
1010

@@ -24,14 +24,12 @@
2424
<artifactId>commons-io</artifactId>
2525
<version>1.3.2</version>
2626
</dependency>
27-
27+
2828
<dependency>
2929
<groupId>commons-cli</groupId>
3030
<artifactId>commons-cli</artifactId>
3131
<version>1.2</version>
3232
</dependency>
33-
34-
3533
</dependencies>
3634
<build>
3735
<plugins>
@@ -46,7 +44,7 @@
4644
<goal>copy-dependencies</goal>
4745
</goals>
4846
<configuration>
49-
<outputDirectory>${project.build.directory}/classes/lib</outputDirectory>
47+
<outputDirectory>${project.build.directory}/jar/lib</outputDirectory>
5048
<overWriteReleases>false</overWriteReleases>
5149
<overWriteSnapshots>false</overWriteSnapshots>
5250
<overWriteIfNewer>true</overWriteIfNewer>
@@ -65,6 +63,32 @@
6563
<encoding>UTF-8</encoding>
6664
</configuration>
6765
</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>
6892
<plugin>
6993
<!-- Build an executable JAR -->
7094
<groupId>org.apache.maven.plugins</groupId>
@@ -76,7 +100,7 @@
76100
<archive>
77101
<manifest>
78102
<addClasspath>true</addClasspath>
79-
<classpathPrefix>classes/lib/</classpathPrefix>
103+
<classpathPrefix>lib/</classpathPrefix>
80104
<mainClass>ru.kindteam.YatourFolderer</mainClass>
81105
</manifest>
82106
</archive>

target/jar/lib/commons-cli-1.2.jar

40.2 KB
Binary file not shown.

target/jar/lib/commons-io-1.3.2.jar

85.7 KB
Binary file not shown.

target/jar/lib/junit-3.8.1.jar

118 KB
Binary file not shown.

target/jar/yatour-folderer-0.2.jar

8.59 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)