-
Notifications
You must be signed in to change notification settings - Fork 316
Pass variables from jdeb plugin to postinst script #816
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 sen 8000 d you account related emails.
Already on GitHub? Sign in to your account
Comments
We are passing the variable resolver into the control builder
The
The tokens are define here https://github.com/tcurdt/jdeb/blob/master/src/main/java/org/vafer/jdeb/utils/FilteredFile.java#L29 Does that 8000 help? |
Thank you for your response! I will have a look. |
@tcurdt That is very implementation of the plugin. I'm wondering how to define environmental variables so that I would use them in the pre/post instal scripts? In rpm maven plugin there is something like < defineStatements > within the configuration where one could define the variables. |
You don't really need to. All the Maven properties are by default reusable in generated files. See for example https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-distribution/xwiki-platform-distribution-debian/xwiki-platform-distribution-debian-solr/xwiki-platform-distribution-debian-solr-cores/xwiki-platform-distribution-debian-solr-core-events/src/deb/control/postinst which is simply printing the content of the Maven property defined in a parent pom at https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-distribution/xwiki-platform-distribution-debian/xwiki-platform-distribution-debian-solr/xwiki-platform-distribution-debian-solr-cores/pom.xml#L59. |
Alright, this looks more concrete. Thanks! |
@swc-kdzekov can this be closed? or is it still a problem? |
Uh oh!
There was an error while loading. Please reload this page.
Hello all,
I'm working on migrating .rpm packaging to .deb for a spring boot service. For that reason I use org.vafer:jdeb:1.5.
Most of the feature that were used by the rpm maven plugin were nicely replaced by 'jdeb'. However, I haven't found how to set environmental variables carrying information from the plugin configuration to 'postinst' script. For example: installation path, application name, application version etc. I would like to keep that information in the pom file (where org.vafer:deb is configured), and then use it in postinst script.
Could somebody help here on how if that is possible ?
Here is a piece of the maven pom configuration:
`
Best Regards,
Konstantin
The text was updated successfully, but these errors were encountered: