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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:37:38+00:00 2026-06-07T18:37:38+00:00

Is there a way to tell Tomcat to import a folder when starting so

  • 0

Is there a way to tell Tomcat to import a folder when starting so i can use it’s content via tomcat . in my case the folder is the src/test/java that contain test classes .

i need to run the test classes using command line

Thank you in advance

  • 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-07T18:37:41+00:00Added an answer on June 7, 2026 at 6:37 pm

    The basic thing is to use maven-failsafe-plugin to run the integration tests. In you case this means you need to have a separate maven-module (call it: mod-it) which contains the configuration for the integration tests. The best recommendation i can give is to use the cargo2-maven-plugin to start/deploy etc. Tomcat and deploy the war application within tomcat. Furthermore you should have a layout like this:

    project
    |-- mod-it
    |   `-- pom.xml
    |-- mod-war
    |   |-- pom.xml
    |   `-- src
    |       |-- main
    |       |   |-- java
    |       |   |   `-- com
    |       |   |       `-- soebes
    |       |   |           `-- wicket
    |       |   |               |-- HomePage.java
    |       |   |               `-- WicketApplication.java
    |       |   |-- resources
    |       |   |   |-- com
    |       |   |   |   `-- soebes
    |       |   |   |       `-- wicket
    |       |   |   |           `-- HomePage.html
    |       |   |   `-- log4j.properties
    |       |   `-- webapp
    |       |       `-- WEB-INF
    |       |           `-- web.xml
    ..
    `-- pom.xml
    

    The integration tests should be named like *IT.java to get them run by the maven-failsafe-plugin

    The best thing is to read this example which contains a complete example with Tomcat and cargo plugin. You can download the full example source incl. pom’s etc. here.

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

Sidebar

Related Questions

Is there way to tell IntelliJ IDEA which output folder to use for GWT
is there some way to tell sql server to use the (nolock) hint or
Is there a way to tell scons to use a particular file to setup
Is there a way to tell preg_match_all to use the third match it finds
Is there a way to tell Tomcat 7 the path to the JVM that
Is there any way to tell Tomcat not to automatically start application which I
Is there a simple way (just configuration) to tell Tomcat 5.5 to redirect all
Is there any Tomcat API or configuration available which can tell an application (probably
Is there any way to tell GCC to not initialize a particular global array
Is there any way to tell db4o to call class default constructor while activating

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.