jdeb
jdeb copied to clipboard
How to get package filename?
I have no idea how to get package filename in pom. I need to use that file in next maven phases but I have no idea how to get it. I could set the name to what I want (for example to hardcoded name, or dynamically generated) but I know that jdeb does some "debianization" of version and package name so I cannot "build" filename in my pom. There is any way to get this?
Hm - if we enforce the filename (to comply to the standards) I am not sure how we could pass it on. I guess that's a maven question I cannot answer without some digging. If anyone knows please speak up.
I found that I can override the name of the package so I do it now like:
<deb>${project.artifactId}-${project.version}_amd64.deb</deb>
And in that way I can use that name in other places.
Alright - I am inclined to close this then.
I definitely have need for this (see attached pull request).. In our workflow we are using Wagon to push deb files onto an apt server and the injecting them into an apt repository using Aptly. In order to utilize the SNAPSHOT/Timestamp versioning stuff I need to know the name/path of the deb file so it can be copied out with Wagon.
@stevenbower but couldn't you just pass in the target name you want?
@tcurdt if we pass in the name we want we don't get the SNAPSHOT version translation that JDEB does and we'd need to rig up some other plugins to do generate this...