-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
jar task is easily confused after uber generated multiple pom.properties files #112
Comments
Perhaps the |
I'd rather vote for making it explicit. Or, is there a way to associate metadata to individual entries in the fileset? If not, probably there should be a way to do that. |
There definitely is! You can use the |
@micha thanks for the pointer. I think the :exclude pattern for the META_INF directory does not work on windows, since it uses a slash character instead of a backslash. Will open an issue for that one. Why does it exclude that directory by default? |
@schmir It excludes that directory because the stuff in it is only pertinent to the packaging of the jar, not to the code contained within (it's meta information about the jar itself), so when you make an uberjar the meta information about a constituent dependency jar is not relevant to the jar you're building (the uberjar). |
I'm reading that pom files from dependencies at runtime in order to print the version of packaged dependencies. |
I noticed this happen when It appears this is because setting your own |
the jar task searches for pom.properties files in the fileset and chooses the first one in order to build the jar's name from it. The first one is pretty much random on my windows system, so I end up with a jar file name of one of my dependencies. As a workaround I can specify the filename via the file argument.
The text was updated successfully, but these errors were encountered: