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

  • Home
  • SEARCH
  • 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 8674233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:39:33+00:00 2026-06-12T19:39:33+00:00

The maven plugin works very slow for me. In my project the webapp folder

  • 0

The maven plugin works very slow for me. In my project the webapp folder has nearly 15000 small files (images, jsp, css, etc). When I assemble it with the maven, it first copies all files to the target/myProject-1.0.0 directory, then builds myProject-1.0.0.war file from it. The copy process takes 10 minutes, building the .war takes 2 minutes.

As I see the build could be much faster if the .war file will be assembled straight from the webapp folder. Is it possible to do?

  • 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-12T19:39:34+00:00Added an answer on June 12, 2026 at 7:39 pm

    I suggest that you use the use the war:inplace goal of maven-war-plugin together with a custom maven-antrun-plugin task.

    The war:inplace will generate the webapp in the WAR source directory. It will create all necessary extra folders under webapp.

    The antrun:run can be customized to create the war according to your special requirements.

    This will potentially improve the performance since most of those resource files you have will still be in the webapp folder and not being copied.

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

Sidebar

Related Questions

I am currently developing a maven project in eclipse. The m2eclipse plugin works beautifully.
I have configured a Maven build for a very small GWT project I'm having.
I am using maven-buildnumber-plugin version 1.0-beta-4. This works fine on a project checked out
I have a really simple webapp project with maven and jetty that has been
For a project at work, we're considering using the Maven plugin for Eclipse to
I am using soapUI maven plugin to create a multi-module maven-soapUi project. I have
I'm trying to run exec-maven-plugin 's exec:java goal on a simple two-module project where
I use Maven to package as war a Java EE project. I use tomcat-maven-plugin,
I am using maven-antrun-plugin to generate classes using Apache Thrift. The plugin works when
I am using wagon-maven-plugin to scp my WAR file to the server. It works

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.