You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Danny Schimke <sc...@googlemail.com> on 2009/06/22 15:12:04 UTC

Creating RPM package under Windows XP

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

RE: Creating RPM package under Windows XP

Posted by Todd Thiessen <th...@nortel.com>.
I searched for this myself and was unabled to find one. I don't believe
there is as building an RPM is a Linux/Unix thing. Rewriting the
rpmbuild in java and having it availalbe on Windows would likely be a
fairly significant undertaking.

What we have done is simply execute our formal builds on a Linux box on
which the rpmbuild command is availabe. We still develop on Windows
however.

You can set this up nicely with profiles such that a mvn install on
Windows does not build the rpm but will on Linux.

---
Todd Thiessen
 

> -----Original Message-----
> From: Danny Schimke [mailto:schimki86@googlemail.com] 
> Sent: Monday, June 22, 2009 9:12 AM
> To: users@maven.apache.org
> Subject: Creating RPM package under Windows XP
> 
> 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
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Creating RPM package under Windows XP

Posted by Todd Thiessen <th...@nortel.com>.
Is this a plugin written by sonatype? Is there any plugin site
documentation for it regarding how to use it? I found this:

http://maven-plugins.sourceforge.net/maven-rpm-plugin/index.htm

Which seems to have the correct artifact name. It may be the predecessor
of the Sonatype version.

---
Todd Thiessen
 

> -----Original Message-----
> From: Thiessen, Todd (BVW:9T16) 
> Sent: Monday, June 22, 2009 10:50 AM
> To: Maven Users List
> Subject: RE: Creating RPM package under Windows XP
> 
> 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:mgainty@hotmail.com]
> > Sent: Monday, June 22, 2009 10:46 AM
> > To: users@maven.apache.org
> > 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 mgainty@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>
> > 
> > mgainty@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
> > ______________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Creating RPM package under Windows XP

Posted by Danny Schimke <sc...@googlemail.com>.
Hi Stevo!

Thank you very much for answering my questions, that was very herlpful!! Our
administrator found out, which packages must
be installed. I will force him to tell me, which packages must be installed
to get it to work. I'll post it here... there is no blog yet.

-Danny Schimke

2009/7/3 Stevo Slavić <ss...@gmail.com>

> Here <http://linux.about.com/cs/linux101/g/noarch.htm> is the noarch
> explanation and
> here<http://mojo.codehaus.org/rpm-maven-plugin/rpm-mojo.html#distribution
> >are
> the docs for the distribution.
>
> Its good to know that it is feasible to build a rpm on windows. Did you
> document whole cygwin and packages setup? Any chance of blogging about it
> or
> posting more details on the process here?
>
> Regards,
> Stevo.
>
> On Fri, Jul 3, 2009 at 11:55 AM, Danny Schimke <schimki86@googlemail.com
> >wrote:
>
> > I added the copyright- and distribution- tags to the configuration of the
> > plugin and it worked. The missing copyright- tag was the reason for the
> > error. The plugin created the RPM file under
> > "RpmProject/target/rpm/RPMS/noarch" and named it
> > "myrpmexampleRPM-1.0-SNAPSHOT20090703094450.noarch.rpm".
> >
> > Now I have questions:
> > - What means the "noarch" in the filename?
> > - What for is the distribution- tag used for?
> >
> > Thanks!
> > -Danny Schimke
> >
> >
> > 2009/7/3 Danny Schimke <sc...@googlemail.com>
> >
> > > Hello!
> > >
> > > We tried using cygwin, but this was a pain. We had to install many
> other
> > > packages beside the rpmpackage, which are not delivered with cygwin by
> > > default, to get it to work. The aim is, to make it possible for a
> > developer
> > > to create a RPM package without these difficult steps. We have agreed
> to
> > > build the RPM package on a unix system and using profiles do differ the
> > > operating system for building the package only under unix.
> > >
> > > I tried to build the RPM using the following POM:
> > >
> > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > > http://www.w3.org/2001/XMLSchema-instance"
> > >   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > http://maven.apache.org/maven-v4_0_0.xsd">
> > >   <modelVersion>4.0.0</modelVersion>
> > >   <groupId>com.incowia.rpmexample</groupId>
> > >   <artifactId>RpmProject</artifactId>
> > >   <packaging>jar</packaging>
> > >   <version>1.0-SNAPSHOT</version>
> > >   <name>RpmProject</name>
> > >   <url>http://maven.apache.org</url>
> > >   <dependencies>
> > >     <dependency>
> > >       <groupId>junit</groupId>
> > >       <artifactId>junit</artifactId>
> > >       <version>3.8.1</version>
> > >       <scope>test</scope>
> > >     </dependency>
> > >   </dependencies>
> > >   <profiles>
> > >     <profile>
> > >       <id>linux</id>
> > >       <activation>
> > >         <os>
> > >           <family>unix</family>
> > >         </os>
> > >       </activation>
> > >       <build>
> > >         <plugins>
> > >           <plugin>
> > >             <groupId>org.codehaus.mojo</groupId>
> > >             <artifactId>rpm-maven-plugin</artifactId>
> > >             <version>2.0-beta-2</version>
> > >             <executions>
> > >               <execution>
> > >                 <goals>
> > >                   <goal>attached-rpm</goal>
> > >                 </goals>
> > >               </execution>
> > >             </executions>
> > >             <configuration>
> > >               <group>com.incowia.rpmexample</group>
> > >               <mappings>
> > >                 <mapping>
> > >                   <directory>/temp</directory>
> > >                 </mapping>
> > >               </mappings>
> > >               <name>myrpmexampleRPM</name>
> > >             </configuration>
> > >           </plugin>
> > >         </plugins>
> > >       </build>
> > >     </profile>
> > >   </profiles>
> > > </project>
> > >
> > > [INFO] [jar:jar]
> > > [INFO] [rpm:attached-rpm {execution: default}]
> > > [WARNING] Version string truncated to 1.0
> > > [INFO] Creating spec file
> > > /home/incowia/projects/RpmProject/target/rpm/SPECS/myrpmexampleRPM.spec
> > > [WARNING] error: License field must be present in package: (main
> package)
> > > [INFO] Building target platforms: noarch
> > > [INFO] Building for target noarch
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] *RPM build execution returned: '1' executing '/bin/sh -c cd
> > > /home/incowia/projects/RpmProject/target/rpm/SPECS && rpmbuild -bb
> > > --buildroot /home/incowia/projects/RpmProject/target/rpm/buildroot
> > --define
> > > '_topdir /home/incowia/projects/RpmProject/target/rpm' --target noarch
> > > myrpmexampleRPM.spec'*
> > >
> > >
> > > The following Filesstructure is created under "RpmProject/target/rpm":
> > >
> > > BUILD (empty)
> > > + buildroot
> > >     temp (empty)
> > > RPMS (empty)
> > > SOURCES (empty)
> > > + SPECS
> > >    *myrpmexampleRPM.spec*
> > > SRPMS (empty)
> > >
> > >
> > > The *myrpmexampleRPM.spec *file contains the following:
> > >
> > > Name: myrpmexampleRPM
> > > Version: 1.0
> > > Release: SNAPSHOT20090703092244
> > > Summary: RpmProject
> > > Group: com.incowia.rpmexample
> > > BuildRoot: /home/incowia/projects/RpmProject/target/rpm/buildroot
> > > %description
> > > %files
> > > %dir  /temp
> > >
> > > Maybe I forgot a important POM- configuration or anything else!?
> > >
> > > Thank you very much!
> > >
> > > -Danny Schimke
> > >
> > >
> > > 2009/6/22 Todd Thiessen <th...@nortel.com>
> > >
> > >> Thanks. This seems to be exactly what the rpm-maven-plugin does. I was
> > >>
> > >> just a little confused that there seems to be 2 plugins. I suspect
> that
> > >> the maven-rpm-plugin is the core mavenization of the rpm-maven-plugin,
> > >> although the move to the core plugins seems to have been left in a
> > >> somewhat unfinished state as I don't see any site documentation for
> the
> > >> maven-rpm-plugin. Because of this lack of documentation, we went with
> > >> the codehaus version.
> > >>
> > >> If you could provide any other clarity as to any differences betweenn
> > >> the two plugins, other than the one I stated above, that would be very
> > >> much appreciated.
> > >>
> > >> And I'll pass on the invite to build rpmbuild from source ;-). Cygwin
> > >> definately has it available.
> > >>
> > >> Thanks.
> > >>
> > >> ---
> > >> Todd Thiessen
> > >>
> > >> > //rpm:rpm calls the rpmbuild to package the rpm here is an example
> > >> >
> > >> > $ mvn -e rpm:rpm
> > >> > [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
> > >> >
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > >> For additional commands, e-mail: users-help@maven.apache.org
> > >>
> > >>
> > >
> > >
> > > --
> > > Danny Schimke
> > > IT- Consultant
> > >
> > > incowia GmbH
> > >
> > > Albert-Einstein-Straße 3
> > > D-98693 Ilmenau
> > > www.incowia.com
> > >
> >
> >
> >
> > --
> > Danny Schimke
> > IT- Consultant
> >
> > incowia GmbH
> >
> > Albert-Einstein-Straße 3
> > D-98693 Ilmenau
> > www.incowia.com
> >
>



-- 
Danny Schimke
IT- Consultant

incowia GmbH

Albert-Einstein-Straße 3
D-98693 Ilmenau
www.incowia.com

Re: Creating RPM package under Windows XP

Posted by Stevo Slavić <ss...@gmail.com>.
Here <http://linux.about.com/cs/linux101/g/noarch.htm> is the noarch
explanation and
here<http://mojo.codehaus.org/rpm-maven-plugin/rpm-mojo.html#distribution>are
the docs for the distribution.

Its good to know that it is feasible to build a rpm on windows. Did you
document whole cygwin and packages setup? Any chance of blogging about it or
posting more details on the process here?

Regards,
Stevo.

On Fri, Jul 3, 2009 at 11:55 AM, Danny Schimke <sc...@googlemail.com>wrote:

> I added the copyright- and distribution- tags to the configuration of the
> plugin and it worked. The missing copyright- tag was the reason for the
> error. The plugin created the RPM file under
> "RpmProject/target/rpm/RPMS/noarch" and named it
> "myrpmexampleRPM-1.0-SNAPSHOT20090703094450.noarch.rpm".
>
> Now I have questions:
> - What means the "noarch" in the filename?
> - What for is the distribution- tag used for?
>
> Thanks!
> -Danny Schimke
>
>
> 2009/7/3 Danny Schimke <sc...@googlemail.com>
>
> > Hello!
> >
> > We tried using cygwin, but this was a pain. We had to install many other
> > packages beside the rpmpackage, which are not delivered with cygwin by
> > default, to get it to work. The aim is, to make it possible for a
> developer
> > to create a RPM package without these difficult steps. We have agreed to
> > build the RPM package on a unix system and using profiles do differ the
> > operating system for building the package only under unix.
> >
> > I tried to build the RPM using the following POM:
> >
> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance"
> >   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> >   <modelVersion>4.0.0</modelVersion>
> >   <groupId>com.incowia.rpmexample</groupId>
> >   <artifactId>RpmProject</artifactId>
> >   <packaging>jar</packaging>
> >   <version>1.0-SNAPSHOT</version>
> >   <name>RpmProject</name>
> >   <url>http://maven.apache.org</url>
> >   <dependencies>
> >     <dependency>
> >       <groupId>junit</groupId>
> >       <artifactId>junit</artifactId>
> >       <version>3.8.1</version>
> >       <scope>test</scope>
> >     </dependency>
> >   </dependencies>
> >   <profiles>
> >     <profile>
> >       <id>linux</id>
> >       <activation>
> >         <os>
> >           <family>unix</family>
> >         </os>
> >       </activation>
> >       <build>
> >         <plugins>
> >           <plugin>
> >             <groupId>org.codehaus.mojo</groupId>
> >             <artifactId>rpm-maven-plugin</artifactId>
> >             <version>2.0-beta-2</version>
> >             <executions>
> >               <execution>
> >                 <goals>
> >                   <goal>attached-rpm</goal>
> >                 </goals>
> >               </execution>
> >             </executions>
> >             <configuration>
> >               <group>com.incowia.rpmexample</group>
> >               <mappings>
> >                 <mapping>
> >                   <directory>/temp</directory>
> >                 </mapping>
> >               </mappings>
> >               <name>myrpmexampleRPM</name>
> >             </configuration>
> >           </plugin>
> >         </plugins>
> >       </build>
> >     </profile>
> >   </profiles>
> > </project>
> >
> > [INFO] [jar:jar]
> > [INFO] [rpm:attached-rpm {execution: default}]
> > [WARNING] Version string truncated to 1.0
> > [INFO] Creating spec file
> > /home/incowia/projects/RpmProject/target/rpm/SPECS/myrpmexampleRPM.spec
> > [WARNING] error: License field must be present in package: (main package)
> > [INFO] Building target platforms: noarch
> > [INFO] Building for target noarch
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] *RPM build execution returned: '1' executing '/bin/sh -c cd
> > /home/incowia/projects/RpmProject/target/rpm/SPECS && rpmbuild -bb
> > --buildroot /home/incowia/projects/RpmProject/target/rpm/buildroot
> --define
> > '_topdir /home/incowia/projects/RpmProject/target/rpm' --target noarch
> > myrpmexampleRPM.spec'*
> >
> >
> > The following Filesstructure is created under "RpmProject/target/rpm":
> >
> > BUILD (empty)
> > + buildroot
> >     temp (empty)
> > RPMS (empty)
> > SOURCES (empty)
> > + SPECS
> >    *myrpmexampleRPM.spec*
> > SRPMS (empty)
> >
> >
> > The *myrpmexampleRPM.spec *file contains the following:
> >
> > Name: myrpmexampleRPM
> > Version: 1.0
> > Release: SNAPSHOT20090703092244
> > Summary: RpmProject
> > Group: com.incowia.rpmexample
> > BuildRoot: /home/incowia/projects/RpmProject/target/rpm/buildroot
> > %description
> > %files
> > %dir  /temp
> >
> > Maybe I forgot a important POM- configuration or anything else!?
> >
> > Thank you very much!
> >
> > -Danny Schimke
> >
> >
> > 2009/6/22 Todd Thiessen <th...@nortel.com>
> >
> >> Thanks. This seems to be exactly what the rpm-maven-plugin does. I was
> >>
> >> just a little confused that there seems to be 2 plugins. I suspect that
> >> the maven-rpm-plugin is the core mavenization of the rpm-maven-plugin,
> >> although the move to the core plugins seems to have been left in a
> >> somewhat unfinished state as I don't see any site documentation for the
> >> maven-rpm-plugin. Because of this lack of documentation, we went with
> >> the codehaus version.
> >>
> >> If you could provide any other clarity as to any differences betweenn
> >> the two plugins, other than the one I stated above, that would be very
> >> much appreciated.
> >>
> >> And I'll pass on the invite to build rpmbuild from source ;-). Cygwin
> >> definately has it available.
> >>
> >> Thanks.
> >>
> >> ---
> >> Todd Thiessen
> >>
> >> > //rpm:rpm calls the rpmbuild to package the rpm here is an example
> >> >
> >> > $ mvn -e rpm:rpm
> >> > [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
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> > --
> > Danny Schimke
> > IT- Consultant
> >
> > incowia GmbH
> >
> > Albert-Einstein-Straße 3
> > D-98693 Ilmenau
> > www.incowia.com
> >
>
>
>
> --
> Danny Schimke
> IT- Consultant
>
> incowia GmbH
>
> Albert-Einstein-Straße 3
> D-98693 Ilmenau
> www.incowia.com
>

Re: Creating RPM package under Windows XP

Posted by Danny Schimke <sc...@googlemail.com>.
I added the copyright- and distribution- tags to the configuration of the
plugin and it worked. The missing copyright- tag was the reason for the
error. The plugin created the RPM file under
"RpmProject/target/rpm/RPMS/noarch" and named it
"myrpmexampleRPM-1.0-SNAPSHOT20090703094450.noarch.rpm".

Now I have questions:
- What means the "noarch" in the filename?
- What for is the distribution- tag used for?

Thanks!
-Danny Schimke


2009/7/3 Danny Schimke <sc...@googlemail.com>

> Hello!
>
> We tried using cygwin, but this was a pain. We had to install many other
> packages beside the rpmpackage, which are not delivered with cygwin by
> default, to get it to work. The aim is, to make it possible for a developer
> to create a RPM package without these difficult steps. We have agreed to
> build the RPM package on a unix system and using profiles do differ the
> operating system for building the package only under unix.
>
> I tried to build the RPM using the following POM:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>com.incowia.rpmexample</groupId>
>   <artifactId>RpmProject</artifactId>
>   <packaging>jar</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>RpmProject</name>
>   <url>http://maven.apache.org</url>
>   <dependencies>
>     <dependency>
>       <groupId>junit</groupId>
>       <artifactId>junit</artifactId>
>       <version>3.8.1</version>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
>   <profiles>
>     <profile>
>       <id>linux</id>
>       <activation>
>         <os>
>           <family>unix</family>
>         </os>
>       </activation>
>       <build>
>         <plugins>
>           <plugin>
>             <groupId>org.codehaus.mojo</groupId>
>             <artifactId>rpm-maven-plugin</artifactId>
>             <version>2.0-beta-2</version>
>             <executions>
>               <execution>
>                 <goals>
>                   <goal>attached-rpm</goal>
>                 </goals>
>               </execution>
>             </executions>
>             <configuration>
>               <group>com.incowia.rpmexample</group>
>               <mappings>
>                 <mapping>
>                   <directory>/temp</directory>
>                 </mapping>
>               </mappings>
>               <name>myrpmexampleRPM</name>
>             </configuration>
>           </plugin>
>         </plugins>
>       </build>
>     </profile>
>   </profiles>
> </project>
>
> [INFO] [jar:jar]
> [INFO] [rpm:attached-rpm {execution: default}]
> [WARNING] Version string truncated to 1.0
> [INFO] Creating spec file
> /home/incowia/projects/RpmProject/target/rpm/SPECS/myrpmexampleRPM.spec
> [WARNING] error: License field must be present in package: (main package)
> [INFO] Building target platforms: noarch
> [INFO] Building for target noarch
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] *RPM build execution returned: '1' executing '/bin/sh -c cd
> /home/incowia/projects/RpmProject/target/rpm/SPECS && rpmbuild -bb
> --buildroot /home/incowia/projects/RpmProject/target/rpm/buildroot --define
> '_topdir /home/incowia/projects/RpmProject/target/rpm' --target noarch
> myrpmexampleRPM.spec'*
>
>
> The following Filesstructure is created under "RpmProject/target/rpm":
>
> BUILD (empty)
> + buildroot
>     temp (empty)
> RPMS (empty)
> SOURCES (empty)
> + SPECS
>    *myrpmexampleRPM.spec*
> SRPMS (empty)
>
>
> The *myrpmexampleRPM.spec *file contains the following:
>
> Name: myrpmexampleRPM
> Version: 1.0
> Release: SNAPSHOT20090703092244
> Summary: RpmProject
> Group: com.incowia.rpmexample
> BuildRoot: /home/incowia/projects/RpmProject/target/rpm/buildroot
> %description
> %files
> %dir  /temp
>
> Maybe I forgot a important POM- configuration or anything else!?
>
> Thank you very much!
>
> -Danny Schimke
>
>
> 2009/6/22 Todd Thiessen <th...@nortel.com>
>
>> Thanks. This seems to be exactly what the rpm-maven-plugin does. I was
>>
>> just a little confused that there seems to be 2 plugins. I suspect that
>> the maven-rpm-plugin is the core mavenization of the rpm-maven-plugin,
>> although the move to the core plugins seems to have been left in a
>> somewhat unfinished state as I don't see any site documentation for the
>> maven-rpm-plugin. Because of this lack of documentation, we went with
>> the codehaus version.
>>
>> If you could provide any other clarity as to any differences betweenn
>> the two plugins, other than the one I stated above, that would be very
>> much appreciated.
>>
>> And I'll pass on the invite to build rpmbuild from source ;-). Cygwin
>> definately has it available.
>>
>> Thanks.
>>
>> ---
>> Todd Thiessen
>>
>> > //rpm:rpm calls the rpmbuild to package the rpm here is an example
>> >
>> > $ mvn -e rpm:rpm
>> > [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
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
> --
> Danny Schimke
> IT- Consultant
>
> incowia GmbH
>
> Albert-Einstein-Straße 3
> D-98693 Ilmenau
> www.incowia.com
>



-- 
Danny Schimke
IT- Consultant

incowia GmbH

Albert-Einstein-Straße 3
D-98693 Ilmenau
www.incowia.com

Re: Creating RPM package under Windows XP

Posted by Danny Schimke <sc...@googlemail.com>.
Hello!

We tried using cygwin, but this was a pain. We had to install many other
packages beside the rpmpackage, which are not delivered with cygwin by
default, to get it to work. The aim is, to make it possible for a developer
to create a RPM package without these difficult steps. We have agreed to
build the RPM package on a unix system and using profiles do differ the
operating system for building the package only under unix.

I tried to build the RPM using the following POM:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.incowia.rpmexample</groupId>
  <artifactId>RpmProject</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>RpmProject</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <profiles>
    <profile>
      <id>linux</id>
      <activation>
        <os>
          <family>unix</family>
        </os>
      </activation>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>rpm-maven-plugin</artifactId>
            <version>2.0-beta-2</version>
            <executions>
              <execution>
                <goals>
                  <goal>attached-rpm</goal>
                </goals>
              </execution>
            </executions>
            <configuration>
              <group>com.incowia.rpmexample</group>
              <mappings>
                <mapping>
                  <directory>/temp</directory>
                </mapping>
              </mappings>
              <name>myrpmexampleRPM</name>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>

[INFO] [jar:jar]
[INFO] [rpm:attached-rpm {execution: default}]
[WARNING] Version string truncated to 1.0
[INFO] Creating spec file
/home/incowia/projects/RpmProject/target/rpm/SPECS/myrpmexampleRPM.spec
[WARNING] error: License field must be present in package: (main package)
[INFO] Building target platforms: noarch
[INFO] Building for target noarch
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] *RPM build execution returned: '1' executing '/bin/sh -c cd
/home/incowia/projects/RpmProject/target/rpm/SPECS && rpmbuild -bb
--buildroot /home/incowia/projects/RpmProject/target/rpm/buildroot --define
'_topdir /home/incowia/projects/RpmProject/target/rpm' --target noarch
myrpmexampleRPM.spec'*


The following Filesstructure is created under "RpmProject/target/rpm":

BUILD (empty)
+ buildroot
    temp (empty)
RPMS (empty)
SOURCES (empty)
+ SPECS
   *myrpmexampleRPM.spec*
SRPMS (empty)


The *myrpmexampleRPM.spec *file contains the following:

Name: myrpmexampleRPM
Version: 1.0
Release: SNAPSHOT20090703092244
Summary: RpmProject
Group: com.incowia.rpmexample
BuildRoot: /home/incowia/projects/RpmProject/target/rpm/buildroot
%description
%files
%dir  /temp

Maybe I forgot a important POM- configuration or anything else!?

Thank you very much!

-Danny Schimke


2009/6/22 Todd Thiessen <th...@nortel.com>

> Thanks. This seems to be exactly what the rpm-maven-plugin does. I was
> just a little confused that there seems to be 2 plugins. I suspect that
> the maven-rpm-plugin is the core mavenization of the rpm-maven-plugin,
> although the move to the core plugins seems to have been left in a
> somewhat unfinished state as I don't see any site documentation for the
> maven-rpm-plugin. Because of this lack of documentation, we went with
> the codehaus version.
>
> If you could provide any other clarity as to any differences betweenn
> the two plugins, other than the one I stated above, that would be very
> much appreciated.
>
> And I'll pass on the invite to build rpmbuild from source ;-). Cygwin
> definately has it available.
>
> Thanks.
>
> ---
> Todd Thiessen
>
> > //rpm:rpm calls the rpmbuild to package the rpm here is an example
> >
> > $ mvn -e rpm:rpm
> > [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
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Danny Schimke
IT- Consultant

incowia GmbH

Albert-Einstein-Straße 3
D-98693 Ilmenau
www.incowia.com

RE: Creating RPM package under Windows XP

Posted by Todd Thiessen <th...@nortel.com>.
Thanks. This seems to be exactly what the rpm-maven-plugin does. I was
just a little confused that there seems to be 2 plugins. I suspect that
the maven-rpm-plugin is the core mavenization of the rpm-maven-plugin,
although the move to the core plugins seems to have been left in a
somewhat unfinished state as I don't see any site documentation for the
maven-rpm-plugin. Because of this lack of documentation, we went with
the codehaus version.

If you could provide any other clarity as to any differences betweenn
the two plugins, other than the one I stated above, that would be very
much appreciated.

And I'll pass on the invite to build rpmbuild from source ;-). Cygwin
definately has it available.

Thanks.

---
Todd Thiessen
 
> //rpm:rpm calls the rpmbuild to package the rpm here is an example
> 
> $ mvn -e rpm:rpm
> [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
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Creating RPM package under Windows XP

Posted by Martin Gainty <mg...@hotmail.com>.
//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: thiessen@nortel.com
> To: users@maven.apache.org
> 
> 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:mgainty@hotmail.com] 
> > Sent: Monday, June 22, 2009 10:46 AM
> > To: users@maven.apache.org
> > 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 mgainty@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>
> > 
> > mgainty@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: wesw@wantii.com
> > > To: users@maven.apache.org
> > > 
> > > 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 
> > <sc...@googlemail.com>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 <th...@nortel.com>
> > > >
> > > > > 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:wesw@wantii.com]
> > > > > > 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
> > > > > > <sc...@googlemail.com>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: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > > 
> > > 
> > > 
> > > --
> > > 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

_________________________________________________________________
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009

RE: Creating RPM package under Windows XP

Posted by Todd Thiessen <th...@nortel.com>.
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:mgainty@hotmail.com] 
> Sent: Monday, June 22, 2009 10:46 AM
> To: users@maven.apache.org
> 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 mgainty@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>
> 
> mgainty@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: wesw@wantii.com
> > To: users@maven.apache.org
> > 
> > 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 
> <sc...@googlemail.com>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 <th...@nortel.com>
> > >
> > > > 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:wesw@wantii.com]
> > > > > 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
> > > > > <sc...@googlemail.com>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: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > 
> > 
> > 
> > --
> > 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Creating RPM package under Windows XP

Posted by Martin Gainty <mg...@hotmail.com>.
//acquire rpm plugin.xml pom.xml from here
http://repository.sonatype.org/service/local/repositories/central-proxy/content/maven-plugins/maven-rpm-plugin/1.0/maven-rpm-plugin-1.0.pom

//then install the plugin
cwd mgainty@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>

mgainty@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: wesw@wantii.com
> To: users@maven.apache.org
> 
> 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 <sc...@googlemail.com>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 <th...@nortel.com>
> >
> > > 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:wesw@wantii.com]
> > > > 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
> > > > <sc...@googlemail.com>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: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> 
> 
> 
> -- 
> 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™ now
http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try bing_1x1

Re: Creating RPM package under Windows XP

Posted by Wes Wannemacher <we...@wantii.com>.
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 <sc...@googlemail.com>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 <th...@nortel.com>
>
> > 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:wesw@wantii.com]
> > > 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
> > > <sc...@googlemail.com>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: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

Re: Creating RPM package under Windows XP

Posted by Danny Schimke <sc...@googlemail.com>.
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 <th...@nortel.com>

> 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:wesw@wantii.com]
> > 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
> > <sc...@googlemail.com>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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: Creating RPM package under Windows XP

Posted by Todd Thiessen <th...@nortel.com>.
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:wesw@wantii.com] 
> 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 
> <sc...@googlemail.com>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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Creating RPM package under Windows XP

Posted by Wes Wannemacher <we...@wantii.com>.
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 <sc...@googlemail.com>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