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
0
votes
0 answers

Generating RPM from a spring boot project

I am making an application and want to generate RPM for it. There is a POM file attached in which i tried using some plugin to generate RPM. Unfortunately it is not working. The error i am getting with the plugin codehaus plugin is - Failed to…
akgnitd
  • 1
  • 3
0
votes
1 answer

rpm-maven-plugin: deploying jar and rpm into different repositories

I've got a pom building a jar and packaging it into a rpm using rpm-maven-plugin. The jar is used both as a standalone application and as a dependency of other applications, so I need to deploy both artifacts to our local Nexus. I would like to…
user3825850
  • 43
  • 1
  • 6
0
votes
1 answer

how to list permissions of an rpm which is already installed?

how do i list file permissions of rpm which is already installed? I know I can do it for rpm file which is not installed using -pqlv. But how do I do for rpm which is already installed when I do not have access to the rpm file?
Zack
  • 2,078
  • 10
  • 33
  • 58
0
votes
1 answer

How to get access to a file from one child module into another child module in maven?

This is my maven project Structure: Parent Module | |---Child Module A | |--target/xyz.jar (generated during mvn clean install) |---Child Module B | |--target/abc.jar (generated during mvn clean install) …
Blank
  • 81
  • 11
0
votes
0 answers

rpm-maven-plugin set file attributes

I am using rpm-maven-plugin to package a spring boot executable jar as an init.d service. While I am able to set file permissions via plugin configuration (as shown in the code below), I would also like to set a file attribute, namely chattr +i…
Andrew
  • 2,663
  • 6
  • 28
  • 50
0
votes
1 answer

Unable to sign RPM: RPM sign execution returned: '127'

I am trying to build rpm from maven plugin and below getting error: Unable to sign RPM: RPM sign execution returned: '127' POM file looks fine, as it is able to generate war file how can i sign rpm? attaching log for reference: [INFO] Building…
Saurabh Kumar
  • 19
  • 1
  • 5
0
votes
0 answers

Extract RPM into a single fat/uber JAR?

I created an RPM using the Maven RPM Plugin. When I try to extract the RPM USING rpm2cpio foo.rpm | cpio -idmv, I get multiple jars - one for the actual application and one jar for each dependency. Is there a way for me to extract the RPM into a…
Ben
  • 127
  • 1
  • 10
0
votes
1 answer

Can I use a variable in a Maven profile as a parameter for a postinstallScriptlet with the RPM plugin?

I am updating some RPMs that were originally done with spec files to use the Maven RPM plugin. The original setup is rather convoluted, but includes a "common" project which is used by four other projects. The spec files were in that common project,…
Terri Simon
  • 127
  • 1
  • 10
0
votes
1 answer

sed and ln commands not working in rpm post install script

I'm trying to build an RPM for our program and running into some issues. I'm trying to run the sed and ln commands as a script in the postinstall/preremove and they don't seem to be making any changes. We are using the maven rpm plugin to build…
0
votes
1 answer

Build rpm on windows with forward slash /

I'm building rpm with maven on cygwin64 but I have a problem, the rpm file's separator are backward slash (Windows Style) so I need to be forward slash(/) because I need to deploy on Linux. Any help?
Rafael Reyes
  • 2,615
  • 8
  • 34
  • 51
0
votes
0 answers

plugin execution exclusion by lifecycle mapping in Eclipse not working with rpm-maven-plugin

I am trying to use the rpm-maven-plugin to build an rpm. As is well known, this plugin works only on OSes that have the rpm command (RedHat, CentOS). It does not work under Windows (except perhaps with Cygwin, but that is not an option for me). …
Steve Cohen
  • 4,679
  • 9
  • 51
  • 89
0
votes
0 answers

Fail rpm install on missing environment variable

I am using maven rpm plugin. My rpm is just kind of zip which can be extracted to different environment variables for example dev , prod etc I want to fail rpm install if there is no environment variable called install-env Secondly how can I read…
user2230605
  • 2,390
  • 6
  • 27
  • 45
0
votes
0 answers

How do I conditionally map a directory with Maven RPM plugin?

I have written a master parent pom for use with multiple projects. In this pom we have setup the RPM plugin to package things. I am starting to create a new standard where we want a new top level folder to exist in every repo. The problem is I need…
CheesePls
  • 887
  • 1
  • 6
  • 17
0
votes
1 answer

does an external script in rpm-maven-plugin have access to maven properties

In an external postinstallScriptlet as follows, is there a way to access maven properties such as ${project.artifactId}? The pom.xml file has this snippet: scripts/postinstall.sh
toppur
  • 1,606
  • 13
  • 12
0
votes
1 answer

Maven rpm plugin secondary artefact not uploaded to repo

I have implemented the maven rpm plugin in the "RPM as Secondary Artifact" style configuration (http://mojo.codehaus.org/rpm-maven-plugin/usage.html) attach-rpm deploy
Jepper
  • 1,092
  • 3
  • 11
  • 24