[fedora-java] Turning a WAR file into a RPM ?
Matthias Wessendorf
matzew at redhat.com
Thu Jul 11 11:46:23 UTC 2013
Tom,
just found this:
https://github.com/ajmfulcher/fpm-maven-plugin
I will try that one later
-M
----- Original Message -----
> From: "Tom Hodder" <tom at limepepper.co.uk>
> To: "Matthias Wessendorf" <matzew at redhat.com>
> Cc: java-devel at lists.fedoraproject.org
> Sent: Thursday, July 11, 2013 1:36:07 PM
> Subject: Re: [fedora-java] Turning a WAR file into a RPM ?
>
> On 11 July 2013 12:22, Matthias Wessendorf <matzew at 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>
>
>
>
>
>
> >
> >
>
--
Matthias Wessendorf
matzew at redhat.com
JBoss, by Red Hat
More information about the java-devel
mailing list