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

How to get package filename? #181

Open
spinus opened this issue Aug 30, 2014 · 6 comments
Open

How to get package filename? #181

spinus opened this issue Aug 30, 2014 · 6 comments
Milestone

Comments

@spinus
Copy link

spinus commented Aug 30, 2014

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?

@tcurdt
Copy link
Owner

tcurdt commented Sep 19, 2014

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.

@spinus
Copy link
Author

spinus commented Sep 19, 2014

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.

@tcurdt
Copy link
Owner

tcurdt commented Sep 19, 2014

Alright - I am inclined to close this then.

@stevenbower
Copy link
Contributor

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.

@tcurdt
Copy link
Owner

tcurdt commented Oct 11, 2014

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

@stevenbower
Copy link
Contributor

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

@tcurdt tcurdt added this to the 1.4 milestone Dec 15, 2014
tcurdt added a commit that referenced this issue Feb 15, 2015
provide information about the build back to maven, fixes Issue #181
@tcurdt tcurdt modified the milestones: 2.0, 1.5 Jan 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants