On 11 July 2013 12:22, Matthias Wessendorf <matzew@redhat.com> wrote:
Hi,

imagine there is a maven build, that produces a WAR file.

Would it be possible to "stick" the WAR into an RPM ?

Someone might since have maven-ized fpm;

https://github.com/jordansissel/fpm
http://www.semicomplete.com/blog/tags/deb

but if that is not the case then wrapping "fpm" in antrun has been my tactic;

+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>izpack</id>
+             <phase>package</phase>
+            <configuration>
+              <tasks>
+               <echo message="Starting Ant izPack build ..." />
+               <property name="plugin_classpath" refid="maven.plugin.classpath"/>
nux/gtk/x86_64/ -a amd64 -n chefclipse --prefix /usr/lib/chefclipse -p target/chefclipse_1.0_amd64.deb ." />
+                </exec>
+                <exec executable="fpm">
+                       <arg line="-s dir -t deb -C target/products/org.limepepper.chefclipse.product/linux/gtk/x86/ -a i386 -n chefclipse --prefix /usr/lib/chefclipse -p target/chefclipse_1.0_i386.deb ." />
+                </exec>
+                <exec executable="fpm">
+                       <arg line="-s dir -t rpm -C target/products/org.limepepper.chefclipse.product/linux/gtk/x86_64/ -a x86_64 -n chefclipse --prefix /usr/lib/chefclipse -p target/chefclipse_1.0_amd64.rpm ." />
+                </exec>
+                <exec executable="fpm">
+                       <arg line="-s dir -t rpm -C target/products/org.limepepper.chefclipse.product/linux/gtk/x86/ -a i686 -n chefclipse --prefix /usr/lib/chefclipse -p target/chefclipse_1.0_i686.rpm ." />
+                </exec>
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>