[vlma-devel] commit: Generate a jar including dependencies. (Adrien Grand )

git version control git at videolan.org
Wed Apr 9 23:36:40 CEST 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Wed Apr  9 23:32:43 2008 +0200| [b3b4490f310928ab456f3996ea268c53d20cba72]

Generate a jar including dependencies.

You can now run the VLMad by running
  java -jar vlmad-with-deps.jar

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=b3b4490f310928ab456f3996ea268c53d20cba72
---

 daemon/pom.xml |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/daemon/pom.xml b/daemon/pom.xml
index e95f4ee..46eb27e 100644
--- a/daemon/pom.xml
+++ b/daemon/pom.xml
@@ -17,20 +17,26 @@
     <build>
         <plugins>
             <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>dependency-maven-plugin</artifactId>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <configuration>
+                    <finalName>vlmad-with-deps</finalName>
+                    <appendAssemblyId>false</appendAssemblyId>
+                    <descriptorRefs>
+                        <descriptorRef>jar-with-dependencies</descriptorRef>
+                    </descriptorRefs>
+                    <archive>
+                        <manifest>
+                            <mainClass>org.videolan.vlma.daemon.VLMad</mainClass>
+                        </manifest>
+                    </archive>
+                </configuration>
                 <executions>
                     <execution>
-                        <id>copy-dependencies</id>
+                        <id>make-assembly</id>
                         <phase>package</phase>
                         <goals>
-                            <goal>copy-dependencies</goal>
+                            <goal>attached</goal>
                         </goals>
-                        <configuration>
-                            <outputDirectory>${project.build.directory}/lib</outputDirectory>
-                            <overWriteReleases>false</overWriteReleases>
-                            <overWriteSnapshots>true</overWriteSnapshots>
-                        </configuration>
                     </execution>
                 </executions>
             </plugin>
@@ -42,8 +48,6 @@
                     <archive>
                         <manifest>
                             <mainClass>org.videolan.vlma.daemon.VLMad</mainClass>
-                            <addClasspath>true</addClasspath>
-                            <classpathPrefix>lib</classpathPrefix>
                         </manifest>
                     </archive>
                 </configuration>



More information about the vlma-devel mailing list