jdeb icon indicating copy to clipboard operation
jdeb copied to clipboard

How to get package filename?

Open spinus opened this issue 11 years ago • 6 comments

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?

spinus avatar Aug 30 '14 21:08 spinus

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.

tcurdt avatar Sep 19 '14 11:09 tcurdt

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.

spinus avatar Sep 19 '14 11:09 spinus

Alright - I am inclined to close this then.

tcurdt avatar Sep 19 '14 12:09 tcurdt

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 avatar Sep 30 '14 20:09 stevenbower

@stevenbower but couldn't you just pass in the target name you want?

tcurdt avatar Oct 11 '14 21:10 tcurdt

@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...

stevenbower avatar Oct 27 '14 15:10 stevenbower