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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:59:38+00:00 2026-06-15T06:59:38+00:00

How to run Maven tomcat7 as exploded? I ‘m trying to run web application

  • 0

How to run Maven tomcat7 as exploded? I ‘m trying to run web application which read dynamic files form same context folder.

I have tried to use this :

mvn tomcat7:run

And put in some local file (after tomcat start) into same contex e.g : C:\Project1\target\web\yada_yada.jpg but when access to url http://localhost:8080/Project1/yada_yada.jpg seems the added file not found.

  • 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-15T06:59:39+00:00Added an answer on June 15, 2026 at 6:59 am

    Managed to get hints from this post
    mvn tomcat7:run – How does it work?.
    For mvn tomcat7:run the warSourceDirectory points to src by default (not target). Now overwrite warSourceDirectory will give an exploded version alike.

    <plugin>
        <groupId>org.apache.tomcat.maven</groupId>
        <artifactId>tomcat7-maven-plugin</artifactId>
        <version>2.0-beta-1</version>
        <configuration>
            <warSourceDirectory>${basedir}/target/web</warSourceDirectory>
        </configuration>
    </plugin>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using tomcat7-maven-plugin. I want to run my webapp which connects to the
I have a web application built using maven. It is built in the form
If I run a Maven build in NetBeans which starts a long-running Java process
I'm trying to run exec-maven-plugin 's exec:java goal on a simple two-module project where
I am writing a web application with Maven in the Eclipse IDE, and use
When I run my web app inside eclipse using tomcat 7 maven plugin, I
is it possible to run spring mvc application on tomcat(with this plugin http://mojo.codehaus.org/tomcat-maven-plugin/ )
I have created a web application using Jersey and Dynamic Web Project of Eclipse.
I have a REST web service which I created previously and deployed in Tomcat7.
I want to be able to run the following command using maven mvn tomcat7:deploy

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.