Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
184 lines (177 sloc) 7.52 KB
<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.0-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>
<dependency>
<groupId>org.easytesting</groupId>
<artifactId>fest-swing</artifactId>
<version>1.2.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easytesting</groupId>
<artifactId>fest-swing-junit-4.5</artifactId>
<version>1.2.1</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>