Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8150115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:59:12+00:00 2026-06-06T14:59:12+00:00

For my web application I am using the Maven Standard Directory Layout. With the

  • 0

For my web application I am using the Maven Standard Directory Layout. With the exception of the place of my sites (I am talking about template files here, *.ftl, *.xslt, etc.).

Instead under src/main/webapp they are at site/ftl

The reason is I develop my application within Eclipse which has it’s root directory set to the project folder. Therefore all files I define will be accessed from the project root directory.

I thought it would be wrong to give a file path which points into a source folder to code which is not actually compiled.

What’s the standard approach here? I don’t use WAR deployment for Tomcat, but Jetty as integrated web server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:59:13+00:00Added an answer on June 6, 2026 at 2:59 pm

    As far as I know from java and scala maven projects, the standard place for template files is src/main/webapp/templates or somewhere inside src/main/resources.

    As mentioned in Introduction to the Standard Directory Layout, the src/main/webapp is for web application sources. And those sources are commonly should not be compiled, because they are already ready to be executed by the browser.

    Web application sources are different from java sources, for instance, as former are executed by the browser without compilation, and latter should be compiled before execution by java plugin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm about to start working on a web-application and I'll be using Maven. I
I am trying to deploy my web-application to tomcat using maven 3.x here is
I'm trying to create a web application using maven, tomcat and hibernate. Now I'm
I'm using maven for deploying a web application in my Weblogic 10.3 server remotely.
I have a large Java Web Application project using Maven and I need to
We're using Maven/Surefire and Spring/Hibernate transactional tests for a fairly large web application. There
I have a web-application on RAD 7.5. I am building the application using Maven
I'm using the maven-jetty-plugin to run a web application in development mode. Also, I
I develop a web application using eclipse, maven and tomcat container. My web app
I have a spring based web application MyWebapp built using maven and deployed on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.