Skip to content

Commit b74bac4

Browse files
committed
Generate scripts, distribution zip
1 parent 852187b commit b74bac4

File tree

3 files changed

+108
-0
lines changed

3 files changed

+108
-0
lines changed

Diff for: LICENSE

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Copyright Marimuthu Madasamy (c) 2016
2+
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
* Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
11+
* Redistributions in binary form must reproduce the above
12+
copyright notice, this list of conditions and the following
13+
disclaimer in the documentation and/or other materials provided
14+
with the distribution.
15+
16+
* Neither the name of Marimuthu Madasamy nor the names of other
17+
contributors may be used to endorse or promote products derived
18+
from this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Diff for: jvm-assembler-server/pom.xml

+58
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,64 @@
1010
<modelVersion>4.0.0</modelVersion>
1111

1212
<artifactId>jvm-assembler-server</artifactId>
13+
<packaging>jar</packaging>
14+
15+
<build>
16+
<plugins>
17+
<plugin>
18+
<artifactId>maven-compiler-plugin</artifactId>
19+
<version>3.5.1</version>
20+
<configuration>
21+
<source>1.8</source>
22+
<target>1.8</target>
23+
</configuration>
24+
</plugin>
25+
<plugin>
26+
<groupId>org.codehaus.mojo</groupId>
27+
<artifactId>appassembler-maven-plugin</artifactId>
28+
<version>1.10</version>
29+
<configuration>
30+
<programs>
31+
<program>
32+
<mainClass>com.mmhelloworld.jvmassembler.server.AssemblerServer</mainClass>
33+
<id>idrisjasm</id>
34+
<jvmSettings>
35+
<maxMemorySize>750m</maxMemorySize>
36+
</jvmSettings>
37+
</program>
38+
</programs>
39+
<licenseHeaderFile>${basedir}/../LICENSE</licenseHeaderFile>
40+
<repositoryName>lib</repositoryName>
41+
</configuration>
42+
<executions>
43+
<execution>
44+
<phase>package</phase>
45+
<goals>
46+
<goal>assemble</goal>
47+
</goals>
48+
</execution>
49+
</executions>
50+
</plugin>
51+
<plugin>
52+
<artifactId>maven-assembly-plugin</artifactId>
53+
<version>2.6</version>
54+
<configuration>
55+
<appendAssemblyId>false</appendAssemblyId>
56+
<descriptors>
57+
<descriptor>src/assembly/distribution.xml</descriptor>
58+
</descriptors>
59+
</configuration>
60+
<executions>
61+
<execution>
62+
<phase>package</phase>
63+
<goals>
64+
<goal>assembly</goal>
65+
</goals>
66+
</execution>
67+
</executions>
68+
</plugin>
69+
</plugins>
70+
</build>
1371

1472
<dependencies>
1573

Diff for: jvm-assembler-server/src/assembly/distribution.xml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
4+
<id>distribution</id>
5+
<formats>
6+
<format>zip</format>
7+
</formats>
8+
<fileSets>
9+
<fileSet>
10+
<directory>${basedir}/..</directory>
11+
<includes>
12+
<include>LICENSE</include>
13+
</includes>
14+
</fileSet>
15+
<fileSet>
16+
<directory>${project.build.directory}/appassembler</directory>
17+
<outputDirectory>/</outputDirectory>
18+
</fileSet>
19+
</fileSets>
20+
</assembly>

0 commit comments

Comments
 (0)