Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rpm: publish #1143

Closed
tolikr opened this issue Aug 1, 2018 · 3 comments
Closed

Rpm: publish #1143

tolikr opened this issue Aug 1, 2018 · 3 comments

Comments

@tolikr
Copy link
Contributor

tolikr commented Aug 1, 2018

I build rpm package with rpm:packageBin. It produces nice formatted file: "app-2.8.18-1.noarch.rpm".
But when i publish it with rpm:publish:

  1. Name changed to "app-2.8.18-SNAPSHOT.rpm"
  2. packet placed in strange location "com/my/package/app/2.8.18-SNAPSHOT/app-2.8.18-SNAPSHOT.rpm"

Is there option to change this behaviour or i should write my own custom publish plugin?

Information

  • What sbt-native-packager are you using 1.3.6
  • What sbt version 1.1.6
  • What is your build system (e.g. Ubuntu, MacOS, Windows, Debian ) Ubuntu
  • What package are you building (e.g. docker, rpm, ...) rpm
  • What version has your build tool (find out with e.g. rpm --version) RPM version 4.14.1
  • What is your target system (e.g. Ubuntu 16.04, CentOS 7) CentOS 7
@muuki88
Copy link
Contributor

muuki88 commented Aug 1, 2018

Thanks for your detailed report.
Native-packager offers an RpmDeployment plugin, but it's not well supported as the scope is building packages.

If the RpmDeployment plugin doesn't help, the best idea as you mentioned, is to write your own publishing plugin.

@muuki88 muuki88 closed this as completed Aug 1, 2018
@dwickern
Copy link
Collaborator

dwickern commented Aug 1, 2018

rpm:publish would publish the artifact to a maven repository. The filename and path you see are maven conventions.

@tolikr
Copy link
Contributor Author

tolikr commented Aug 2, 2018

In resolvers i found basePatterns implicit parameter. I override field artifactPattern and it works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants