build separate artifact for jar with dependencies
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 25 Dec 2013 00:43:50 +0000 (02:43 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 25 Dec 2013 00:43:50 +0000 (02:43 +0200)
install
meviz
pom.xml

diff --git a/install b/install
index d7e9a04..74b5f4d 100755 (executable)
--- a/install
+++ b/install
@@ -14,7 +14,8 @@ mvn clean
 mvn package
 
 sudo mkdir /opt/meviz
-sudo cp target/meviz-1.0-SNAPSHOT.jar /opt/meviz/
+sudo rm /opt/meviz/meviz.jar
+sudo cp target/meviz-1.0-SNAPSHOT-jar-with-dependencies.jar /opt/meviz/meviz.jar
 sudo cp meviz /opt/meviz/
 sudo ln -s /opt/meviz/meviz /usr/bin/
  
diff --git a/meviz b/meviz
index c356555..9586cdf 100755 (executable)
--- a/meviz
+++ b/meviz
@@ -2,5 +2,5 @@
 
 set -f
 
-java -Xmx1500m -jar /opt/meviz/meviz-1.0-SNAPSHOT.jar $@
+java -Xmx1500m -jar /opt/meviz/meviz.jar $@
 
diff --git a/pom.xml b/pom.xml
index 0a0bd40..3e78e15 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -52,7 +52,6 @@
                                                        <goal>single</goal>
                                                </goals>
                                                <configuration>
-                                                       <appendAssemblyId>false</appendAssemblyId>
                                                        <descriptorRefs>
                                                                <descriptorRef>jar-with-dependencies</descriptorRef>
                                                        </descriptorRefs>
@@ -74,6 +73,7 @@
                                <configuration>
                                        <source>1.6</source>
                                        <target>1.6</target>
+                                       <encoding>UTF-8</encoding>
                                </configuration>
                        </plugin>
 
                <repository>
                        <id>svjatoslav.eu</id>
                        <name>svjatoslav.eu</name>
-                       <url>scp://svjatoslav.eu/var/www/svjatoslav.eu/maven</url>              
+                       <url>scp://svjatoslav.eu/var/www/svjatoslav.eu/maven</url>
                </repository>
        </distributionManagement>