forked from mjuhasz/BDSup2Sub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
171 lines (165 loc) · 7.1 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>bdsup2sub</groupId>
<artifactId>bdsup2sub</artifactId>
<packaging>jar</packaging>
<name>BDSup2Sub</name>
<version>5.2-SNAPSHOT</version>
<url>https://github.com/mjuhasz/BDSup2Sub</url>
<properties>
<main.class>bdsup2sub.BDSup2Sub</main.class>
<maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
<timestamp>${maven.build.timestamp}</timestamp>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>
<repository>
<id>macify</id>
<url>http://simplericity.org/repository/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.mortennobel</groupId>
<artifactId>java-image-scaling</artifactId>
<version>0.8.5</version>
<exclusions>
<exclusion>
<groupId>com.jhlabs</groupId>
<artifactId>filters</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.simplericity.macify</groupId>
<artifactId>macify</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>${project.name}-${project.version}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>${main.class}</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>0.11</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jdeb</goal>
</goals>
<configuration>
<deb>${project.build.directory}/bdsup2sub-${project.version}.deb</deb>
<dataSet>
<data>
<src>${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar</src>
<dst>bdsup2sub.jar</dst>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/lib/bdsup2sub</prefix>
</mapper>
</data>
<data>
<src>${project.basedir}/src/deb/bdsup2sub</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/bin</prefix>
<filemode>755</filemode>
</mapper>
</data>
<data>
<src>${project.basedir}/src/deb/copyright</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/share/doc/bdsup2sub</prefix>
</mapper>
</data>
<data>
<src>${project.basedir}/src/deb/bdsup2sub.desktop</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/share/applications</prefix>
</mapper>
</data>
<data>
<src>${project.basedir}/src/main/resources/icons/bdsup2sub_128.png</src>
<dst>bdsup2sub.png</dst>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/share/pixmaps</prefix>
</mapper>
</data>
</dataSet>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>osxappbundle-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>bundle</goal>
</goals>
<configuration>
<mainClass>bdsup2sub.BDSup2Sub</mainClass>
<jvmVersion>1.6+</jvmVersion>
<javaApplicationStub>${basedir}/src/main/resources/JavaApplicationStub</javaApplicationStub>
<iconFile>${project.basedir}/src/main/resources/icons/bdsup2sub.icns</iconFile>
<bundleName>BDSup2Sub</bundleName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>