• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maven: /bin/sh: 1: rpm: not found

 
setevoy dscdascdasc
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I'm trying compile one project and got some errors.
Here is end of build-log:



All this working under:



So - what does it mean: "Assembly file: /home/setevoy/svn/***-4.3.0.50 is not a regular file"?
And - /bin/sh: 1: rpm: not found

Thanks for any tips and sorry for any errors.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
378
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is "/home/setevoy/svn/***-4.3.0.50 " coming from? It doesn't look like the name of a directory. having asterisks in a directory name is suspect.
 
setevoy dscdascdasc
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Where is "/home/setevoy/svn/***-4.3.0.50 " coming from? It doesn't look like the name of a directory. having asterisks in a directory name is suspect.


No, asterisks here just to disguise name of product :-) In reality - this is real directory, not file:



I signed to much papers on my job and I don't want show out any not requied information :-| If you understand me...
 
setevoy dscdascdasc
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is some additional info. May it be usefull?



 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you are building that project on an operating system which supports the rpm command? A google search shows up this issue which reports the same problem against platforms which do not support that command http://code.google.com/p/rocksteady/issues/detail?id=6
 
setevoy dscdascdasc
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran Pai wrote:Are you sure you are building that project on an operating system which supports the rpm command? A google search shows up this issue which reports the same problem against platforms which do not support that command http://code.google.com/p/rocksteady/issues/detail?id=6


I'm absolutly sure that Debain doesn't have RPM wich is Red-Hat Package Manager... But I thougth that request "rpm" mean something about rpm-maven-plugin or something like this? No?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like the build is invoking the maven rpm plugin, and that plugin expects the rpm utility to be available. Looks like whoever wrote this pom.xml made it platform dependent, there should have been a profile defined in the POM that gets invoked only on linux systems that support rpm and that profile should include the rpm plugin as part of the build. Then the build would work properly on all systems.
 
setevoy dscdascdasc
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A lot of thanks to all, guys. Your tips was really helpful! :-)

So - I migrated project to CentOS (wich really use Red-Hat Package Manager aka RPM) instead of Debian - and now have:



By the way, also have another problem like:



Solution is install rpm-build package:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic