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

How can I create a rpm that includes rpm modules with maven?

I am trying to generate a "rpm container" with rpm-maven-plugin. This container should include three rpm I have generated before and shared in a yum repository. So the idea is to have an empty project with a pom file that generates a rpm file, which…
1
vote
1 answer

How do I include files with spaces in their names when using rpm-maven-plugin?

I am trying to package my own project that includes parts of other projects. Here is a snippet from my pom.xml: org.codehaus.mojo rpm-maven-plugin ... ...
MikeD
  • 3,348
  • 1
  • 23
  • 36
0
votes
1 answer

Maven Scriptlets

when I am builting my project in NetBeans using Maven I get this warning message: [WARNING] DEPRECATED [postinstallScript]: Use postinstallScriplet [WARNING] DEPRECATED [preinstallScript]: Use preinstallScriplet [WARNING] DEPRECATED…
lamostreta
  • 2,359
  • 7
  • 44
  • 61
0
votes
1 answer

BuildRpm task with kotlin dsl

I am migrating my groovy syntac to kotlin dsl and struggling while building the buildRpm() task provided by nebula plugin. Currntly I have in my builod.gradle.kts plugins { id("nebula.ospackage") version "8.3.0" } apply(plugin = "nebula.rpm") I…
JPV
  • 1,079
  • 1
  • 18
  • 44
0
votes
0 answers

Bytecompilation is done with /usr/bin/python and not /usr/bin/python3

I have a python project and I use maven to create an rpm file, using rpm-maven-plugin v2.1.3. My project is written using python3. When I create the rpm file, as part of a larger process of ms creation (with mvn install) I get syntax error on…
0
votes
0 answers

Spring Boot service RPM returns code=exited status=203/EXEC when installing on CentOS

I prepared an RPM package to be installed on CentOS. It seems to install successfully. However I cannot launch it - it throws that 203 error. Process: 4574 ExecStart=/opt/vcs/cegp/dtm/my_service/my_service.jar (code=exited, status=203/EXEC) The…
Zmur
  • 322
  • 6
  • 24
0
votes
1 answer

How can I reduce this child pom further before generating 800 similar poms or is it impossible?

I will have like 800 of these child pom files/modules, so I want to get this one right and reduced as much as humanly possible before I start the other 799 child poms. Things I would specifically like to address, things that will not change across…
gunslingor
  • 1,358
  • 12
  • 34
0
votes
0 answers

RPM query for default vendor returned: '3' executing '/bin/sh -c rpm -E '%{_host_vendor}''

I am using Ubuntu 18. When I try building my maven project with the command: mvn clean install, I am facing the following error. [ERROR] Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.0:attached-rpm (attach-rpm) on project :…
Autumn
  • 339
  • 5
  • 19
0
votes
2 answers

rpm package installation issue with nodeps flag

I am trying to install an rpm package using the command as under: rpm -Uvh --root=/mnt/bank_a rpm/app_name.rpm --nodeps It is an application package which is part of root filesystem installation for a mounted device under linux hence the root flag…
0
votes
1 answer

What is bast practice for pom.xml for fix rpm-maven-plugin file /usr/lib/systemd/system conflicts?

I try pack jar and systemd unit to RPM. My source code https://github.com/patsevanton/consul-demo https://github.com/patsevanton/consul-demo/blob/master/backend/pom.xml#L120 /usr/lib/systemd/system
Anton Patsev
  • 605
  • 2
  • 13
  • 27
0
votes
1 answer

How to use run-time environment variables with rpm-maven-plugin

I am generating an RPM using rpm-maven-plugin. I would like to specify the destination directory using the relevant run-time env variable. The problem is that the plugin evaluates the variable during compile time. For example the…
Arik
  • 1,257
  • 9
  • 13
0
votes
1 answer

Remove the dependency on Python while building RPM using rpm-maven-plugin

I'm using rpm-maven-plugin to build an rpm as a part of my mvn build which later will be installed in a docker image that doesn't have Python. Python is not being used in the project as well. But for some reason, the generated spec file has the line…
Sachin Murali G
  • 575
  • 6
  • 25
0
votes
1 answer

rpm-maven-plugin automatically install required packged

I'm using rpm-maven-plugin to create an installation/upgrade RPM for my application which will be installed on CentOS 7. For a new installation, some packages are required, however rpm-maven-plugin ignores the settings in rpm.spec file (so…
burgi
  • 275
  • 3
  • 14
0
votes
1 answer

JFROG RPM issues

We have set up a jfrog repository for RPM files. We are building RPM using 'rpm-maven-plugin' and were trying to upload the rpm file into jfrog repository. We have tried using CMD- jfrog rt u "(*.rpm)" service/ --recursive=false…
Ritesh
  • 1
  • 3
0
votes
1 answer

Maven rpm plugin does not overwrite files

I have below configuration in pom.xml file for rpm. I want to copy a jar at specific folder when rpm runs. The code is as below in pom.xml: /var/lib/abc 777 aaa
Atul
  • 3,043
  • 27
  • 39