Permalink
Browse files

feat(assembly): Add new assembly without Ant

The dependencies are not merge as an uber jar
Add jtomtom.sh to run application
Exclude useless dependencies
  • Loading branch information...
1 parent 9440772 commit 0b3480b7170172ca86b66a27c970a77c7623e5e7 @Marthym committed Jun 12, 2015
View
@@ -0,0 +1,17 @@
+# CabLib, a library for extracting MS cabinets
+Copyright (C) 1999, 2002 David V. Himelright
+
+This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public
+License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
+This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+
+Library General Public License for more details. You should have received a copy of the GNU Library General Public <br/>
+License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,<br/>
+Boston, MA 02111-1307, USA.
+
+David Himelright can be reached at:<david@litfit.org>
+
+Library to read MS Cabinet files
+
+Some fix added to the original library
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>jtomtom-parent</artifactId>
+ <groupId>org.jtomtom</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>jtomtom-assembly</artifactId>
+ <packaging>pom</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>jtomtom</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>make-assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <finalName>jtomtom-${project.version}</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+ <descriptor>src/main/assembly/bundle.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+
+</project>
@@ -0,0 +1,37 @@
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+ <id>jtomtom-application</id>
+ <formats>
+ <format>tar.gz</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>lib</outputDirectory>
+ <useProjectArtifact>false</useProjectArtifact>
+ <unpack>false</unpack>
+ <scope>runtime</scope>
+ </dependencySet>
+ </dependencySets>
+
+ <fileSets>
+ <fileSet>
+ <fileMode>0755</fileMode>
+ <directory>src/main/resources/</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>*.sh</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>src/main/resources/template</directory>
+ <outputDirectory>/</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>src/main/resources/conf</directory>
+ <outputDirectory>/resources</outputDirectory>
+ </fileSet>
+ </fileSets>
+</assembly>
@@ -0,0 +1,3 @@
+#!/bin/sh
+RUN_DIR=$(dirname $(readlink -f "$0"))
+exec java -cp $RUN_DIR/.:$RUN_DIR/lib/* org.jtomtom.JTomtom
View
@@ -9,6 +9,7 @@
<modules>
<module>jcablib</module>
<module>jtomtom</module>
+ <module>jtomtom-assembly</module>
</modules>
<dependencyManagement>
@@ -36,6 +37,16 @@
<groupId>com.github.stephenc.java-iso-tools</groupId>
<artifactId>iso9660-writer</artifactId>
<version>2.0.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
</dependencies>

0 comments on commit 0b3480b

Please sign in to comment.