This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

maven2 building a spring web application  RSS feed

Ricardo Estafan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have a web application in spring which initially was built using ant.
I now changed it to be built using maven.

However the problem is I extracted all the classes to be a separate module to be built as a jar file. Originally these class- and configuration files could be found under WEB-INF/classes. These classes are preliminary Spring classes and the application context file is also in there. When I build the webapp which has this jar file as a dependency, the application context file is not to be found under the WEB-INF folder anymore but is part of the jar file.

How can I reference the application context file if it resides in a jar file within the WEB-INF/lib folder? Or do you guys advise not to extract all logic as a separate jar? (NOTE: I do intend to use the same logic in more than 1 application)

Thanks for the help!!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!