Print

Print


Commit in lcsim on MAIN
pom.xml+491.32 -> 1.33
JM: generate runnable jar in lcsim build

lcsim
pom.xml 1.32 -> 1.33
diff -u -r1.32 -r1.33
--- pom.xml	4 Sep 2008 23:07:13 -0000	1.32
+++ pom.xml	5 Sep 2008 00:01:05 -0000	1.33
@@ -101,6 +101,7 @@
                     </excludes>
                 </configuration>
             </plugin>
+            <!-- Generate a run script for use on this system -->
             <plugin>
                 <groupId>org.lcsim</groupId>
                 <artifactId>run-script-maven-plugin</artifactId>
@@ -119,6 +120,54 @@
                     </execution>
                 </executions>
             </plugin>
+            <!-- Generates jar with classpath in manifest -->
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <manifest>
+                            <addClasspath>true</addClasspath>
+                            <mainClass>org.lcsim.Main</mainClass>
+                            <packageName>org.lcsim</packageName>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
+            <!-- Generates zip file with all deps -->
+            <plugin>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>install</phase>
+                        <configuration>
+                            <descriptors>
+                                <descriptor>${basedir}/src/assembly/deps.xml</descriptor>
+                            </descriptors>
+                        </configuration>
+                        <goals>
+                            <goal>assembly</goal>
+                        </goals>
+                    </execution> 
+                </executions>
+            </plugin>
+            <!-- Unzips all deps to lib -->
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <version>1.1</version>
+                <executions>
+                    <execution>
+                        <phase>install</phase>
+                        <configuration>
+                            <tasks>
+                                <delete dir="${project.basedir}/lib"/>
+                                <unzip src="${project.build.directory}/${project.build.finalName}-deps.zip"
+                                       dest="${project.basedir}"/>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
     <dependencies>
CVSspam 0.2.8