File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven: /bin/sh: 1: rpm: not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven: /bin/sh: 1: rpm: not found" Watch "Maven: /bin/sh: 1: rpm: not found" New topic
Author

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

setevoy dscdascdasc
Greenhorn

Joined: Aug 30, 2013
Posts: 5
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29261
    
140

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
setevoy dscdascdasc
Greenhorn

Joined: Aug 30, 2013
Posts: 5
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

Joined: Aug 30, 2013
Posts: 5
Here is some additional info. May it be usefull?



Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9329
    
110

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

[My Blog] [JavaRanch Journal]
setevoy dscdascdasc
Greenhorn

Joined: Aug 30, 2013
Posts: 5
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

Joined: May 14, 2008
Posts: 5779
    
    7

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.


JBoss In Action
setevoy dscdascdasc
Greenhorn

Joined: Aug 30, 2013
Posts: 5
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:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven: /bin/sh: 1: rpm: not found
 
Similar Threads
Maven RPM Plugin: Relocate/prefix does not work
Is there any way to roll back a release?
how to run mvn commands using ms bat file
Modifying JBOSS twiddle code
getting maven error