[ 
http://jira.codehaus.org/browse/MOJO-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=181492#action_181492
 ] 

Andreas Ermrich commented on MOJO-1059:
---------------------------------------

Hi folks,

I have the same problem too and I'm very happy that I'm not the only one whit 
it.

I also use Windows and cygwin.

To enable the "rpmbuild" command for the cmd. exe which is called by maven 
during the build process I did nearly the same dirty tricks like Jan. I copied 
the rpmb.exe and renamed the copy to rpmbuild.exe but left it all in the 
lib\rpm-Folder under the cygwin-download directory. Then I added this folder to 
the Windows PATH-Variable. This worked in that way that maven does not tell me 
anything about the unknown command rpmbuild anymore. That's nice but it does 
not work at all.

No I get the following error-message and I really have no idea what goes wrong 
here.

[INFO] RPM build execution returned: '-1073741515' executing 'cmd.exe /X /C 
"rpmbuild -bb --buildroot 
d:\Projekte\Maven_Demand\RPM\rpmParent\testProject\targetRpm\buildroot --define 
"_topdir d:\Projekte\Maven_Demand\RPM\rpmParent\testProject\targetRpm" --target 
noarch testProject.spec"'

When this message rises the plugin already did some work. There is a 
folder-structure created with some files in it. One of the files is the 
target-artefact (a simple jar-file) of the project. Others are the class-Files 
of my java-sources and a spec-file which contains describing information from 
the plugins configuration, like NAME, VERSION, LICENSE, GROUP, PACKAGER etc.

Maybe you guys have an idea that brings up the light in this tricky issue...

Andreas



> rpm-maven-plugin should work under windows / cygwin
> ---------------------------------------------------
>
>                 Key: MOJO-1059
>                 URL: http://jira.codehaus.org/browse/MOJO-1059
>             Project: Mojo
>          Issue Type: Bug
>          Components: rpm
>         Environment: windows xp / cygwin
>            Reporter: Jan Rudert
>
> Hi there,
> I encountered the following problem while trying to build an rpm under cygwin 
> environment using the 2.0-beta-1 rpm-maven-plugin.
> [WARNING] Der Befehl "rpmbuild" ist entweder falsch geschrieben oder
> [WARNING] konnte nicht gefunden werden.
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] RPM build execution returned: '1'.
> [INFO] 
> ------------------------------------------------------------------------
> This means that the rpmbuild executable was not found. I installed the cygwin 
> rpm packages. Directly calling "rpmbuild" from cygwin commandline works, but 
> the rpm plugin seems to use the windows command shells, which unfortunately 
> does not manage to resolve the file link:
> lrwxrwxrwx   1 rudi   Benutzer      15 Feb 25 17:48 rpmbuild -> 
> ../lib/rpm/rpmb
> So i took the rpmb, put it to the cygwin/bin directory and renamed it to 
> rpmbuild, which is dirty. But then the plugin goes on.
> But then the plugin does not resolve the directories within the mappings 
> correctly:
> [INFO] Building target platforms: noarch
> [INFO] Building for target noarch
> [INFO] Processing files: $rpm-name
> [WARNING] error: File not found: 
> /C:\tmp\place-deploy\deploy\rpm\buildroot/websoft_firstlife/etc
> [WARNING] error: File not found: 
> /C:\tmp\place-deploy\deploy\rpm\buildroot/websoft_firstlife/contrib
> [WARNING] [INFO]
> [INFO]
> [INFO] RPM build errors:
> error: File not found: 
> /C:\tmp\place-deploy\deploy\rpm\buildroot/websoft_firstlife/sbin
> [WARNING] error: File not found: 
> /C:\tmp\place-deploy\deploy\rpm\buildroot/websoft/htdocs
> [WARNING] error: File not found: 
> /C:\tmp\place-deploy\deploy\rpm\buildroot/websoft/htdocs.apache
> [WARNING]     File not found: 
> /C:\tmp\place-deploy\deploy\rpm\buildroot/websoft/etc
> [WARNING]     File not found: 
> /C:\tmp\place-deploy\deploy\rpm\buildroot/websoft/contrib
> [WARNING]     File not found: 
> /C:\tmp\place-deploy\deploy\rpm\buildroot/websoft/sbin
> [WARNING]     File not found: 
> /C:\tmp\place-deploy\deploy\rpm\buildroot/websoft/htdocs
> [WARNING]     File not found: 
> /C:\tmp\place-deploy\deploy\rpm\buildroot/websoft/htdocs.apache
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] RPM build execution returned: '1'.
> one of the mappings looks like this:
>                 <mapping> 
>                   <directory>websoft/contrib</directory>  
>                   <filemode>764</filemode>  
>                   <username>${user}</username>  
>                   <groupname>${group}</groupname>  
>                   <configuration>true</configuration>  
>                   <sources> 
>                     <source> 
>                       <location>work/contrib</location> 
>                     </source> 
>                   </sources> 
>                 </mapping>  
> So we have two issues which block me building rpm's on windows/cygwin. Plz 
> help.
> Thank you
> Jan Rudert

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to