I created a Jar using Spring and
maven. I had dependencies injected and auto-wiring happening when I tested it using a main method in the same jar.
But I wanted to cross check if this jar can be used in a non-spring environment later. When I am using this jar's classes without any spring configuration. I tend to get null pointer exceptions for the places where dependencies/auto-wiring is expected to happen but it is not..... this is because though the jar is bundled it is not initialized in a spring-way.
Is it the case that jars created via spring are bound to be used in a
spring-based environment later so that spring XML and auto-wiring/injection happen right for the created jar? ??