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
11
votes
4 answers

Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.0.1:rpm (default-cli) on project inv-project

I am getting the error below while creating an RPM of my Maven Project. I am able to package the Jar successfully but RPM creation is failing. Note: I am trying on Windows 7 [WARNING] operable program or batch file. [INFO]…
user001
  • 991
  • 6
  • 16
  • 34
10
votes
3 answers

Example of a multi-module web application with the rpm-maven-plugin?

Does anyone know of any web applications that are built with Maven to an RPM? The RPM Maven Plugin provides the functionality to build to an RPM, but it's documentation is lacking. Specifically, I'm looking for an example that would include…
blong
  • 2,815
  • 8
  • 44
  • 110
10
votes
3 answers

RPM file not generated using maven rpm plugin

I am trying to create .rpm file of my maven project on my windows machine. I followed the steps given in the below link to achieve it. http://tim-perry.co.uk/blog/2012/11/22/building_rpms_on_windows_with_maven When I run the command mvn package…
user001
  • 991
  • 6
  • 16
  • 34
8
votes
2 answers

Optional mapping sections in Maven RPM plugin?

I have a Maven RPM plugin mapping thus: /etc/myconfig true ${project.build.directory}
Bittrance
  • 2,202
  • 2
  • 20
  • 29
5
votes
2 answers

Why is Maven not using the expected profile?

I am using Maven to build some projects and it's using the gMaven plugin to build an RPM that includes the main artifact. I only want Maven to attempt to build the RPM on systems that have rpmbuild, and not on systems that do not, so I built two…
J Ellis
  • 668
  • 3
  • 8
  • 20
5
votes
0 answers

rpm-maven-plugin and OS X

I'm trying to set up a maven project on OSX and use the rpm-maven-plugin to build it as an RPM package. However, even the simplest configuration of the plugin seems to fail. The error I get is Bad exit status from…
NilsH
  • 13,705
  • 4
  • 41
  • 59
5
votes
2 answers

RPM Build Spec file i want to check rpm is being install or update

i want to check the rpm i have created is install or update by user(client) like rpm -ivh abc.rpm or rpm -Uvh abc.rpm is their any %command in spec file to get info regarding this command. my requirement is if i have a rpm named abc-0.1-2.rpm…
meet patel
  • 181
  • 1
  • 2
  • 17
5
votes
1 answer

What's the difference between maven-rpm-plugin and rpm-maven-plugin

I see references to both on line but can't find out why. Is there a difference? If so, how?
4
votes
0 answers

Unable to query for default vendor from RPM: Error while executing process. while running streamsets

I just followed the following tutorials for latest streamset 2.6.6 with flume as datacollector, https://github.com/streamsets/datacollector/blob/master/BUILD.md At the time of making the build i have faced the following error: [ERROR] Failed to…
sathya
  • 1,982
  • 1
  • 20
  • 37
4
votes
2 answers

The parameters 'sourceEncoding' rpm-maven-plugin are missing or invalid

I am trying to use rpm maven plugin bu i get the following error: [ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.1.3:rpm (generate-rpm) on project TestRpmAndDocker: The parameters 'sourceEncoding' for goal…
MoShe
  • 6,197
  • 17
  • 51
  • 77
4
votes
1 answer

How can I run a script before RPM file creation?

I'm using rpm-maven-plugin to create an rpm of a tarball containing the WARs from my project. I can create an rpm if I already have a tar file. However, I would like to generate the tar file when I run the rpm goal. I have a script that creates…
Boundless
  • 2,444
  • 2
  • 25
  • 40
4
votes
2 answers

RPM package using maven

I am trying to build an RPM package using the maven plugin. If I add the plugin configuration the RPM package is not made, the manual on the RPM plugin site says the package tag should be RPM however this seems to cause the build to fail saying…
anton91
  • 993
  • 2
  • 10
  • 12
3
votes
0 answers

What are standards for rpm-maven-plugin configuration to generate a RPM containing WAR?

I am new to Maven and RPM production. I have been able successfully build a WAR, package it in a RPM and install it. To build the rpm I use the following command: mvn install rpm:rpm This builds the WAR file, installs it to my local repository…
KevinC
  • 115
  • 1
  • 1
  • 8
3
votes
1 answer

rpm-maven-plugin how to control the name under which rpm is stored in m2 repository?

Our organization has a convention for naming rpms. Typically, the rpm will have a shorter base name than the Maven project. There is also a convention around how releases are named. So we want a name…
Steve Cohen
  • 4,679
  • 9
  • 51
  • 89
3
votes
2 answers

Using maven-rpm-plugin how do I to replace text in files similar to the assembly plugin

I have a maven project where I create two packagings. One is a tar.gz file (for some targets) and an RPM for linux targets that can use RPM. I use the maven-assembly-plugin for the tar.gz file. I use maven-rpm-plugin for the RPM packaging. The…
jmsimpson68
  • 233
  • 3
  • 10
1
2 3 4 5 6