-
Notifications
You must be signed in to change notification settings - Fork 92
Add support for dependency-filtering #100
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
Comments
Sorry, I think this might be a duplicate of #15 Alternatively, might there be an alternative solution for system scope dependencies? Currently I get this error message during launch:
|
Might be a duplicate. I'm not sure I understand your use case: "dependency-filtering" is a bit vague, and "inclusions and exclusions" are already supported, so you must mean something else. |
I apologize for being so vague and for opening what seems to be a duplicate. Let me be a bit more verbose: I have the issue that I have a couple of system scoped dependencies in my application. These are of course not available where I deploy my application. Same is with dependencies to other parts of my application. How can I exclude these dependencies from the "dynamic" dependency loading process? Instead I would like to include them into the application-jar file? Would I specify the exclusions in the configuration of spring-boot-maven-plugin and instead pack them using maven-dependency-plugin->copy-dependencies? |
My recommendation would be to not use |
I don't have a own maven repo that I can deploy to and some dependencies are not publically available. So I include them as system-scoped dependency. Then there is that second case where I have dependencies that are part of my application, that also are not available in public repos. Bonus complication: These could be snapshots :-) |
If you can always locate a jar file (for the system scoped dependency), you can put it in the local Maven cache (and use regular compile scope). That's a workaround at least. I'm not sure I understand the difference between that and the "second case". |
Would it be possible to add inclusions/exclusions?
I would like to have some dependencies built into my jar, which is something I need for "system" scoped dependencies. Also there are some dependencies that require "requiresUnpack".
The text was updated successfully, but these errors were encountered: