You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Classes configured in spring's bean.xml files are not kept as mandatory dependencies.
To Reproduce
Steps to reproduce the behavior:
Create a Spring project with XML configuration
Add rightful maven dependencies
Run depclean
Expected behavior
All spring beans declared in the XML configuration count as rightful dependencies
Additional context
It may be the same with Java Config textual declaration inside annotations (but I don't have a use case in mind ATM)
It fails too for XML namespace imports:
[ERROR] myTest Time elapsed: 0 s <<< ERROR!
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/data/jpa]
Offending resource: class path resource [my-beans.xml]
The text was updated successfully, but these errors were encountered:
Hi @afillatre,
The only solution that comes to my mind for this issue is writing an XML parser in DepClean that inspect the XML files in src/main/resources to search for dependencies injected via XML annotations from the code.
WDYT?
Describe the bug
Classes configured in spring's
bean.xml
files are not kept as mandatory dependencies.To Reproduce
Steps to reproduce the behavior:
Expected behavior
All spring beans declared in the XML configuration count as rightful dependencies
Additional context
It may be the same with Java Config textual declaration inside annotations (but I don't have a use case in mind ATM)
It fails too for XML namespace imports:
The text was updated successfully, but these errors were encountered: