//rpm:rpm calls the rpmbuild to package the rpm here is an example $ mvn -e rpm:rpm + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Land-Based Trash Repository [INFO] task-segment: [rpm:rpm] [INFO] ------------------------------------------------------------------------ [INFO] [rpm:rpm] [WARNING] Version string truncated to 1.0 [INFO] Copying 1 files to $MAVEN_PLUGIN\maven-plugins\sample\target\rpm\SOURCE S [INFO] Copying 1 files to $MAVEN_PLUGIN\maven-plugins\sample\target\rpm\buildr oot\usr\local\bin\landfill [INFO] Mapping empty with destination: landfill [INFO] Copying 1 files to $MAVEN_PLUGIN\maven-plugins\sample\target\rpm\buildr oot\usr\local\doc\landfill [INFO] Mapping empty with destination: landfill [INFO] Copying 1 files to $MAVEN_PLUGIN\maven-plugins\sample\target\rpm\buildr oot\usr\local\lib [INFO] Copying 1 files to $MAVEN_PLUGIN\maven-plugins\sample\target\rpm\buildr oot\usr\local\bin [INFO] Mapping empty with destination: bin [INFO] Copying 1 files to $MAVEN_PLUGIN\maven-plugins\sample\target\rpm\buildr oot\usr\local\conf\landfill [INFO] Mapping empty with destination: landfill [INFO] Creating empty directory $MAVEN_PLUGIN\maven-plugins\sample\target\rpm\ buildroot\usr\local\log\landfill [INFO] Creating spec file $MAVEN_PLUGIN\maven-plugins\sample\target\rpm\SPECS\ landfill.spec [WARNING] 'rpmbuild' is not recognized as an internal or external command, [WARNING] operable program or batch file. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] RPM build execution returned: '1' executing 'cmd.exe /X /C "rpmbuild -bb --buildroot $MAVEN_BUILD\maven-plugins\sample\target\rpm\buildroot --define " _topdir f:\maven-plugin\maven-plugins\sample\target\rpm" --target noarch landfil l.spec"'
if you feel brave enough to tackle building rpmbuild for your rpmbuild there are some sources avail here http://www.mhonarc.org/release/MHonArc/snapshot/ dev.mk is the makefile you want to start with i have'nt seen any cygwin specific rpmbuild implementations but you can ping the folks at cygwin http://cygwin.com Let us know, Martin ______________________________________________ Note de déni et de confidentialité Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: RE: Creating RPM package under Windows XP > Date: Mon, 22 Jun 2009 10:49:43 -0400 > From: [email protected] > To: [email protected] > > Are you saying this is a plugin which performs the equivalent of the rpmbuild > command but is in Java? > > --- > Todd Thiessen > > > > -----Original Message----- > > From: Martin Gainty [mailto:[email protected]] > > Sent: Monday, June 22, 2009 10:46 AM > > To: [email protected] > > Subject: RE: Creating RPM package under Windows XP > > > > > > //acquire rpm plugin.xml pom.xml from here > > http://repository.sonatype.org/service/local/repositories/cent > > ral-proxy/content/maven-plugins/maven-rpm-plugin/1.0/maven-rpm > > -plugin-1.0.pom > > > > //then install the plugin > > cwd mgai...@localhost /cygdrive/f/maven-plugin/rpm $ mvn -e > > install:install-file -DgroupId=maven-plugins > > -DartifactId=maven-rpm-pl ugin -Dversion=1.0 -Dpackaging=type > > -Dfile=pom.xml > > + Error stacktraces are turned on. > > [INFO] Scanning for projects... > > [INFO] Searching repository for plugin with prefix: 'install'. > > [INFO] > > -------------------------------------------------------------- > > ---------- > > [INFO] Building Unnamed - maven-plugins:maven-rpm-plugin:jar:1.0 > > [INFO] task-segment: [install:install-file] (aggregator-style) > > [INFO] > > -------------------------------------------------------------- > > ---------- > > [INFO] [install:install-file] > > [INFO] Installing $MAVEN_PLUGIN\rpm\pom.xml to > > $MAVEN_PLUGIN\maven-plugins\m > > aven-rpm-plugin\1.0\maven-rpm-plugin-1.0.type > > [INFO] > > -------------------------------------------------------------- > > ---------- > > [INFO] BUILD SUCCESSFUL > > [INFO] > > -------------------------------------------------------------- > > ---------- > > [INFO] Total time: 8 seconds > > [INFO] Finished at: Mon Jun 22 10:26:32 EDT 2009 [INFO] Final > > Memory: 3M/6M [INFO] > > -------------------------------------------------------------- > > ---------- > > > > let us know if this installs the plugin to your > > localRepository defined in localRepository > > $MAVEN_HOME/settings.xml <settings> > > <localRepository>$Drive:/$Folder</localRepository> > > > > mgai...@localhost /cygdrive/$Drive/maven-plugin/maven-plugins > > $ ls -al > > total 40 > > drwxrwxrwx+ 3 BigCheese 0 Jun 22 10:26 . > > drwxrwxrwx+ 148 BigCheese 0 Jun 22 10:23 .. > > -rwxrwxrwx+ 1 BigCheese 1450 Jan 29 2000 maven-plugins-10-site > > .xml > > -rwxrwxrwx+ 1 BigCheese 1435 Jan 29 2000 maven-plugins-7-site. > > xml > > -rwxrwxrwx+ 1 BigCheese 13316 Jan 29 2000 maven-plugins-7.pom > > -rwxrwxrwx+ 1 BigCheese 12847 Jan 3 18:43 pom.xml > > > > BTW: BigCheese is the 'god group' > > HTH, > > Martin > > ______________________________________________ > > Verzicht und Vertraulichkeitanmerkung/Note de déni et de > > confidentialité > > > > Diese Nachricht ist vertraulich. Sollten Sie nicht der > > vorgesehene Empfaenger sein, so bitten wir hoeflich um eine > > Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer > > Kopie ist unzulaessig. Diese Nachricht dient lediglich dem > > Austausch von Informationen und entfaltet keine rechtliche > > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > Ce message est confidentiel et peut être privilégié. Si vous > > n'êtes pas le destinataire prévu, nous te demandons avec > > bonté que pour satisfaire informez l'expéditeur. N'importe > > quelle diffusion non autorisée ou la copie de ceci est > > interdite. Ce message sert à l'information seulement et > > n'aura pas n'importe quel effet légalement obligatoire. Étant > > donné que les email peuvent facilement être sujets à la > > manipulation, nous ne pouvons accepter aucune responsabilité > > pour le contenu fourni. > > > > > > > > > > > Date: Mon, 22 Jun 2009 09:42:22 -0400 > > > Subject: Re: Creating RPM package under Windows XP > > > From: [email protected] > > > To: [email protected] > > > > > > Cygwin is a bit of a PITA, IMO. AFAIK, you have to download the > > > setup.exe and run it. It should list what you can install. > > You'll have > > > to look thoroughly through the packages and find rpm-build. I think > > > Cygwin itself is just a DLL that implements the necessary > > system calls > > > to make the ports work. So, I don't think you have to worry as much > > > about the Cygwin version as you have to worry about the > > packages that are installed in it. > > > > > > -Wes > > > > > > On Mon, Jun 22, 2009 at 9:38 AM, Danny Schimke > > <[email protected]>wrote: > > > > > > > I have installed Cygwin, but I don't know which version. > > How can I > > > > check this? My cygwin installation has no rpm tools at > > least I have not seen.... > > > > Are they part of the latest version of Cygwin and have I to > > > > reinstall or can I add packages to my current cygwin installation? > > > > > > > > Thank you very much for helping me so quickly. > > > > > > > > -Danny > > > > > > > > 2009/6/22 Todd Thiessen <[email protected]> > > > > > > > > > Yes that would work too. We have a team here that has > > done exactly > > > > > that to get the rpmbuild command available on Windows. > > > > > > > > > > --- > > > > > Todd Thiessen > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Wes Wannemacher [mailto:[email protected]] > > > > > > Sent: Monday, June 22, 2009 9:23 AM > > > > > > To: Maven Users List > > > > > > Subject: Re: Creating RPM package under Windows XP > > > > > > > > > > > > Did you try installing cygwin ? > > > > > > > > > > > > http://www.cygwin.com/packages/ > > > > > > > > > > > > It looks like they have rpm tools (including > > rpm-build package, > > > > > > which may yield the rpmbuild script). > > > > > > > > > > > > -Wes > > > > > > > > > > > > On Mon, Jun 22, 2009 at 9:12 AM, Danny Schimke > > > > > > <[email protected]>wrote: > > > > > > > > > > > > > Hi! > > > > > > > > > > > > > > I have to create a RPM package within the package- phase. > > > > > > There is a > > > > > > > plugin from codehaus, the "rpm-maven-plugin". I > > tried it and > > > > > > > had to find out, that this is not working under Windows, > > > > > > > because > > > > > > "rpmbuild" > > > > > > > was not found. Is there a way to create a RPM- Package > > > > > > under Windows? > > > > > > > Are there other Plugins, which allow this, instead using > > > > > > this one from > > > > > > > Codehaus? > > > > > > > > > > > > > > Thank you very much! > > > > > > > -Danny Schimke > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Wes Wannemacher > > > > > > Author - Struts 2 In Practice > > > > > > Includes coverage of Struts 2.1, Spring, JPA, JQuery, > > Sitemesh > > > > > > and more http://www.manning.com/wannemacher > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------ > > > > > --- To unsubscribe, e-mail: [email protected] > > > > > For additional commands, e-mail: [email protected] > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Wes Wannemacher > > > Author - Struts 2 In Practice > > > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and > > > more http://www.manning.com/wannemacher > > > > _________________________________________________________________ > > Microsoft brings you a new way to search the web. Try Bing(tm) > > now > > http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_ > > Core_tagline_try bing_1x1 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > _________________________________________________________________ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009
