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 7898249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:22:56+00:00 2026-06-03T08:22:56+00:00

I use Maven to package as war a Java EE project. I use tomcat-maven-plugin,

  • 0

I use Maven to package as war a Java EE project.

I use tomcat-maven-plugin, I do simply “mvn clean tomcat deploy” .

Everything works fine, except a folder which is not packaged into the War file.

This folder is a source folder under src/main/java with only *.vm files (not .java files) which are my Velocity templates.

Is there a way to tell maven to package this folder ! ( I suspect only package with .java files are considered)

In console I get :

[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ accueil_individu ---
[INFO] Packaging webapp
[INFO] Assembling webapp [accueil_individu] in             [D:\DevSpring\workspace\accueil_individu\target\accueil_individu]
[INFO] Processing war project
[INFO] Copying webapp resources        [D:\DevSpring\workspace\accueil_individu\src\main\webapp]
[INFO] Processing overlay [ id org.springframework.security:spring-security-samples-cas-client]
[INFO] Webapp assembled in [1699 msecs]
[INFO] Building war:   D:\DevSpring\workspace\accueil_individu\target\accueil_individu.war
[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored 
(webxml attribute is missing from war task, or ignoreWebxml attribute is specified as    'true')
[INFO] 
[INFO] <<< tomcat-maven-plugin:1.1:deploy (default-cli) @ accueil_individu <<<
[INFO] 
[INFO] --- tomcat-maven-plugin:1.1:deploy (default-cli) @ accueil_individu ---
[INFO] Deploying war to http://pcwebapps02.ifma.fr:8080/accueil_individu  
[INFO] OK - Application déployée pour le chemin de contexte /accueil_individu
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
  • 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-03T08:22:57+00:00Added an answer on June 3, 2026 at 8:22 am

    Resource files like the velocity template files that should end up in the classpath of the runtime should be in src/main/resources and not in /src/main/java

    Read more about the Maven standard directory layout here http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

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

Sidebar

Related Questions

I'm using maven war plugin to build war package. Before package is build test
I use Maven and the maven-war-plugin to to build my WAR. All JSPs are
I use Maven and the maven-war-plugin to to build my WAR. All JSPs are
I have a war packaging Maven project, in which I have a Java properties
Is it possible to create a maven plugin, which would package my project using
I want to run maven-replacer-plugin just before packaging war. I have find prepare-package phase
I'm using gwt-maven-plugin to manage a GWT project. I use the gwt:run goal all
I'm trying to use the <packagingExcludes> of the Maven war-plugin. This is my configuration:
I use the maven-properties-plugin during the initialization phase to read in a bunch of
We use the maven versions plugin to keep our versions up to date by

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.