• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using Makefile from pom.xml

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone,
i was looking for the way to create a RPM for a project in maven using command line or eclipse. how do i include / invoke the makefile from the pom.xml. i tried to use make-maven plugin but could not find more about it's usage online. any help??? what are the tags and attributes that are suppose to be added in pom file to make use of makefile???

thank you
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch, Nikunj!

I am confused about why you want to do this. When using Maven to build an RPM, the POM is the "makefile".

For a non-Maven RPM project, the makefile is in the RPM source directory that is created under your RPM SOURCES directory when the RPM build process unpacks the SRPM. But if Maven is doing the build, then Maven has to do what Maven does, and normally this doesn't involve a non-Java build step or even an SRPM unpack/build operation.
 
nikunj Shrestha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:Welcome to the Ranch, Nikunj!

I am confused about why you want to do this. When using Maven to build an RPM, the POM is the "makefile".

For a non-Maven RPM project, the makefile is in the RPM source directory that is created under your RPM SOURCES directory when the RPM build process unpacks the SRPM. But if Maven is doing the build, then Maven has to do what Maven does, and normally this doesn't involve a non-Java build step or even an SRPM unpack/build operation.



Thank you.
M confused too.
Let me ask one thing, ok i have some files in this project, that should be compiled through different compiler and all the compiled files should be deployed. that's what this makefile does : creates dir, and run the files through compiler. and i m trying to use RPM-maven plugin to create RPM out of those compiled files before deploying. Any suggestions on what can be done?
 
Tim Holloway
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are several different ways you could attempt this. Probably the best of them involve having separate projects for each of the various java and non-java components, then bringing them together in an RPM-building project that produces the actual RPM. That would normally involve a master POM and component POMs. Except that for the non-java stuff, you ultimately want to run that component's makefile.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic