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
1
vote
1 answer

How to prevent maven assembly plugin from renaming artifacts

In my maven project I have to a (fairly large amount) of RPMs. For convenience during deployment I want to assemble all the RPMs into a single archive (.tar.gz). The assembly runs in a separate module which depends on all the RPM modules. For this…
Thirler
  • 20,239
  • 14
  • 63
  • 92
1
vote
1 answer

How can an RPM dependancy cover different versions of Tomcat?

I'm creating an RPM using the rpm-maven-plugin. I want to have a dependancy on Tomcat version 6 or above, so:- tomcat >= 6.0 So I create a Vagrant initialized VM and try to install…
Ross Drew
  • 8,163
  • 2
  • 41
  • 53
1
vote
0 answers

How does rpm-maven-plugin name the generated rpm archive?

I've been all over the official documentation without finding an answer. There don't seem to be any parameters for affecting the name of the generated rpm. I'm doing the rpm:rpm goal on this:
Steve Cohen
  • 4,679
  • 9
  • 51
  • 89
1
vote
1 answer

Dynamically create the version number within the Ambari's metainfo.xml file using maven build processes

I don’t want to hardcode my service version into metainfo.xml, Can I do it? DUMMY_APP My Dummy APP This is a distributed app. 0.1
user1393608
  • 1,299
  • 3
  • 16
  • 29
1
vote
1 answer

Maven RPM plugin: Different content for CentOS 6.5 and 5.6

I have been using rpm-maven-plugin to generate RPMs to install on CentOS 6.5. Now I need to extend it to package an RPM with binaries compiled on CentOS 5.6. My development machine is OSX and I would like to be able to test RPM generation for CentOS…
alecswan
  • 3,670
  • 5
  • 25
  • 35
1
vote
0 answers

Use mvn to create rpm that lists dependencies rather than including them

I'm looking to package my Java application as an RPM that lists transitive dependencies (as RPM dependencies) rather than packaging them into the RPM itself. I understand how to use the mvn-rpm plugin to build an rpm that collects all dependencies…
pedorro
  • 3,079
  • 1
  • 24
  • 24
1
vote
2 answers

How to download folder from ftp with maven

I want pack 5 GB resources from ftp to rpm's with rpm-maven-plugin. Is it possible to download ftp directory using maven? If so, is it possible to use for authentication username and password from the settings.xml?
burtsevyg
  • 3,851
  • 2
  • 29
  • 44
1
vote
1 answer

Use custom git command with buildnumber-maven-plugin

I'm currently working on automating the build process (more or less) using maven. I need to create an rpm but in order to do so, I need to retrieve the latest version. As part of the convention, we're using GIT's tags to store the version of the…
Royi Freifeld
  • 629
  • 2
  • 11
  • 31
1
vote
1 answer

rpm-maven-plugin exclude directories in final rpm

Is there a way to avoid the full directory path being created in the final rpm package by executing the rpm-maven-plugin? org.codehaus.mojo rpm-maven-plugin
Jonathan
  • 297
  • 1
  • 3
  • 17
1
vote
1 answer

creating rpm of java project with apache-maven

I am new to maven and using apache-maven-3.0.5. I have a git repository named Project1, and there are many other sub-projects inside Project1. I want to change the location of the version file (which is created after installing rpm of Project1) in…
user523956
  • 501
  • 2
  • 9
  • 23
1
vote
2 answers

Maven RPM plugin not generating correct %files section

I'm building a package using the Maven RPM plugin, and it's generating the %files section in the .spec file in a way that causes conflicts during installation. I want to install a file into /usr/bin, but the .spec file contains the following…
Anthony Giorgio
  • 1,844
  • 1
  • 15
  • 17
1
vote
2 answers

how to disable rpm-maven-plugin on sub modules

I have a maven project that has submodules: /pom.xml /child1/pom.xml /child2.pom.xml When I do a "maven package", it creates a /target/foo.jar. Good. When I do a "maven rpm:rpm", my build fails because when it goes to build one of the childs, it…
grayaii
  • 2,241
  • 7
  • 31
  • 47
1
vote
0 answers

maven rpm plugin with multiple mappings

I am building an rpm package that includes a 3PP software plus other configuration files. When I don't include the configuration files, the rpm builds properly but when I include the configuration files, the rpm build but installation of the 3PP…
user2824999
  • 13
  • 1
  • 6
1
vote
1 answer

How to make directory to be created with defined usergroup if we do mapping on same directory twice

In my pom.xml rpm-maven-plugin 2.0.1 rpm ... /etc/conf ME ME
Bhuvan
  • 4,028
  • 6
  • 42
  • 84
1
vote
1 answer

maven build multiple rpms basing on multimodule project

I'm trying to set up maven to build my project in the specific way. I have the following structure: pom.xml module1 pom.xml module2 pom.xml module2.1 pom.xml module2.2 pom.xml module2.3 pom.xml I actually want to build separate rpms…
mr.nothing
  • 5,141
  • 10
  • 53
  • 77