Skip to content

[BUG] Classes declared in spring xml configuration are not kept as dependencies #78

@afillatre

Description

@afillatre

Describe the bug
Classes configured in spring's bean.xml files are not kept as mandatory dependencies.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Spring project with XML configuration
  2. Add rightful maven dependencies
  3. 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]

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions