Questions tagged [rpm-maven-plugin]

The RPM Maven Plugin allows artifacts from one or more projects to be packaged in an RPM for distribution.

The RPM Maven Plugin allows artifacts from one or more projects to be packaged in an RPM for distribution. In addition to project artifacts, the RPM can contain other resources to be installed with the artifacts and scripts to be run while the package is being installed and removed. This plugin does not support the full range of features available to RPMs. In particular, source RPMs can not be generated and the spec files which are used do not do any build process (the plugin collects the files and "installs" them for packaging).

Source: http://mojo.codehaus.org/rpm-maven-plugin/index.html

82 questions
3
votes
2 answers

maven-rpm-plugin set folders permission differently from files when mapping

How can I set permissions for the folders (i.e. 775) while files need to be set to 664? If folders are set to 664 then users other than the rpm installer (root) will see '?' in place of files' owner/permission and I prefer not to set all files'…
Kiarash Zamanifar
  • 647
  • 1
  • 9
  • 19
3
votes
2 answers

rpm-maven-plugin truncates rpm version

I am building three packages with rpm-maven-plugin. One parent, and two plugins that require the parent in the same version. Everything works fine, until I build it with XY-SNAPSHOT version. Then my rpm version gets truncated to XY part, but value…
Adam Pierzchała
  • 2,244
  • 4
  • 30
  • 32
2
votes
1 answer

Maven RPM Plugin does not generate the scriptlets specified

I am trying to create an rpm package with the help of the rpm-maven-plugin. All goes well until I try to have it generate the %pre scriptlet (or any scriptlet for that matter) The pom.xml excerpt is:
Yaneeve
  • 4,751
  • 10
  • 49
  • 87
2
votes
0 answers

How can I run my application on linux with rpm-maven-plugin?

I would like to use rpm-maven-plugin to package my maven project to rpm file. After maven install (mvn clean install) the rpm is created in target/rpm/rpm-build/RPMS/noarch/. How can I start the application? If I try to install rpm with yum…
cSteusloff
  • 2,487
  • 7
  • 30
  • 51
2
votes
2 answers

rpmlib(FileDigests) dependency error on RPM built with rpm-maven-plugin

Just like with this question, I try to an install an RPM and get the following errors: # rpm -iv myapp-0.0.14-SNAPSHOT.rpm error: Failed dependencies: rpmlib(FileDigests) <= 4.6.0-1 is needed by myapp-0.0.14-SNAPSHOT20151117233758.noarch …
Steve Cohen
  • 4,679
  • 9
  • 51
  • 89
2
votes
1 answer

Maven rpm plugin tries to run installation script on build

I am trying to create an RPM package to install a piece of software however whenever I try to build it using the rpm plugin it will run the install script while building which will fail since my machine is not the intended target (nor should it…
Alexandre Thenorio
  • 2,288
  • 3
  • 31
  • 50
2
votes
3 answers

How to maven deploy rpm with architecture information

I use the rpm-maven-plugin from mojo.codehaus.org to generate my RPM called MyRPM-3.0.0-1.x86_64.rpm. However when I deploy the rpm to artifactory, I get MyRPM-3.0.0.rpm. How can I include the build number (the -1 part) and architecture (the…
Chris F
  • 14,337
  • 30
  • 94
  • 192
2
votes
1 answer

Why is the RPM postinstallScriptlet in pom file not executed

Maven RPM Plugin does not generate the scriptlets specified I'm using maven 3.0.5. I thought the above post answered my question but I am using the rpm-maven-plugin version described in the post. I have in my pom file a scriptlet that supposed to…
Chris F
  • 14,337
  • 30
  • 94
  • 192
2
votes
1 answer

maven rpm package fails with "ERROR!!!!SGSBASE value is not set.Hence exitting"

I am tring to generate a simple rpm, but rpm goal fails with the following error [INFO] --- rpm-maven-plugin:2.1x:rpm (default) @ private --- [INFO] Creating spec file…
MIS
  • 21
  • 1
2
votes
0 answers

What is significance of RPM Warning: File listed twice

Currently I am using the RPM Maven plugin to generate RPMs as needed. My situation requires that I apply different directory permissions to the files contained within that directory. Unfortunately I cannot use the default directory permissions as…
user983022
  • 979
  • 1
  • 18
  • 30
1
vote
1 answer

log file name getting picked up from dependency's log4j2.xml

I have a maven project with several sub modules, e.g ServiceModule, module2, module3, UIModule. I am packaging this into two rpms, for services and ui, say services.rpm and ui.rpm In my services submodules, I am packaging module2 and module3 too…
user2101
  • 145
  • 1
  • 11
1
vote
0 answers

maven post-remove tries to remove mapped files

I'm using maven to create an rpm that I can use to install my app. In my of my mappings I specify a directory that contains files that are needed for the post-install step:
JeyJ
  • 3,582
  • 4
  • 35
  • 83
1
vote
0 answers

How to configure %ghost files with rpm-maven-plugin

When creating a rpm package using a SPEC file it is possible to configure files in the %files section which will not be included in the rpm itself but owned by it. Typical use-case are log-files which do not exist when the rpm is created but will be…
Michael P.
  • 33
  • 6
1
vote
1 answer

What prerequisites does the rpm-maven-plugin require?

What does the rpm-maven-plugin plugin require to build an rpm? What command line utilities and/or other programs need to be installed?
PaulJ
  • 13
  • 3
1
vote
3 answers

rpm-maven-plugin v2.1.5 automatically gzipping my file

I have a man file that I want installed to /usr/share/man/man8 during the rpm install. This is my mapping. /usr/share/man/man8 true