laurentschoelens commented on PR #1445:
URL: https://github.com/apache/cxf/pull/1445#issuecomment-1729613480
> > Doing so you'll always get the failing "ClassNotFoundException" with no
more usage of SpringBusFactory on plugins.
>
> The are part of the codebase that works by introspection of classpath,
like in this concrete example, if Spring is available on the classpath, the
SpringBus would be picked.
Sorry to insists, just to be sure the changes made are OK
> > It'll only use SpringBusFactory class only by adding manually Spring as
dependency in the plugin...
>
> ... or application, which is exactly the goal
Does the plugin gets dependencies of the maven module ?
For app context, ok to have Spring but in more modular approch, I get java
code generated in special standalone project with minimal without spring
dependencies.
What does SpringBusFactory does in code generation ?
Moreover I've just tried in debug mode (with forcing 'fork' to false and
having spring-context in dependencies, and I always fail in the `catch` clause
below
```java
catch (NoClassDefFoundError | ClassNotFoundException var10) {
busFactoryClass = "org.apache.cxf.bus.CXFBusFactory";
}
```
The only way to get rid of this, is by adding spring as direct dep of the
plugin
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]