• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

maven2 building a spring web application

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic