directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <>
Subject Re: RPM Factory Uploaded to Sandbox
Date Sat, 17 Mar 2007 16:27:19 GMT
Hehe - Yes - That's the next thing.  It depends on these projects in my 
sandbox at the same level as the rpm.factory.parent


I am going to clean that up a little since some of them are no longer 
needed by the
RPMFactoryMojo, then I"ll write a little users guide
on installing everything and running.

But if you really want it right now, just grab and install those as well 
(utils first), and it should build fine.

Then run

mvn archetype:create -DarchetypeVersion=1.0-SNAPSHOT 
-DarchetypeArtifactId=rpm.factory.archetype -DgroupId=factory.test 

to create a archetype project.

This project will contain all the rpms, and corresponding spec files.

If you look in src/main/resources/README.txt

you will see this:

Put a directory in here and call it


It corresponds to this configuration element in the pom


Then copy some artifacts from a maven repository and put them in here.

They must be copied directly from the repository root directory,
so that the maven repository layout stays intact.

After doing that run

mvn org.apache.maven:rpm.factory.mojo:1.0-SNAPSHOT:generate

Now all the non-snapshot jar artifacts that have a license in the pom 
will be RPMed

- Ole

Alex Karasulu wrote:
> This is awesome Ole but I ran into some problems ...
> I tried building the project at the SVN URL but I could not get it to 
> build.
> Looks like several required dependency poms could not be found.  Perhaps
> there is an issue wrt the repository it is using?
> Alex
> On 3/16/07, *Ole Ersoy* < 
> <>> wrote:
>     Hey Guys,
>     I uploaded the RPM factory and supporting projects to my sandbox.
>     <>
>     I have run it on a pretty sizable portion of a locally mirrored maven
>     repository,
>     and it's pretty solid.  Once in a while there is a hick up if a
>     pom has
>     invalid elements...
>     If anyone is itching to use it I can walk you through the install.
>     From 50K feet, you just need to:
>     -  locally mirror the maven repository
>     - Take a chunk of it that you want to RPM and put it in a directory
>     - Run the RPM factory archetype to create a sample project
>     - Point the RPM Factory Archetype project repository base parameter to
>     the directory containing the portion of the maven respository that you
>     want to RPM
>     - Run this: mvn
>     org.apache.maven:rpm.factory.mojo:1.0-SNAPSHOT:generate
>     And it a short while you will have a bunch of RPMs in the Archetype
>     Project's src/main/resources/build/rpm/RPMS directory.
>     The factory filters SNAPSHOTS and pom's without licenses, so RPMs for
>     these won't show up.
>     Hope to have the Daemon and Classloader configuration understood and
>     redone soon, so that we can setup a Yum repository for the
>     RPM installer.
>     Have a terrific weekend everybody,
>     - Ole

View raw message