• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java classes not found in WEB-INF in maven build

 
Greenhorn
Posts: 6
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi am working on a project using flex and Java at the back end. Its a web-app project. The thing is when i compile it through Eclipse its well and good. But when i use maven to build the war, i don't get class files inside my WEB-INF\Classes folder. Had anyone come across with such a problem, i done get any errors, but still there is no class files.

I had attached my POM file here

I run "mvn install" plugin.Thanks in Advance!

 
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe the <sourceDirectory>src/clv_web_flex/Mxmls</sourceDirectory> option isn't processing as you expect it to. Try putting the source files under the standard src/main/java folder and see if those get included.
 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, first of all, don't expect things to go to WEB-INF\Classes, because this isn't a Windows filesystem, it's a WAR, and therefore the actual required destination is "WEB-INF/classes". Windows isn't case-sensitive in file naming, but Java most definitely is. And since a "true" WAR is a ZIP file, the Windows path syntax isn't technically correct.

Pedantry aside, people who attempt to force their own project structure on Maven tend to regret it. Frequently and with great feeling. The proper place to put class source code is under the project's src/main/java directory. The proper place to put fixed content is src/main/webapp. Maven's WAR plugin will then do the proper thing without any additional configuration or conflict with other Maven subsystems.
reply
    Bookmark Topic Watch Topic
  • New Topic