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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:46:14+00:00 2026-06-04T03:46:14+00:00

I have this project structure where I have a parent pom which include let’s

  • 0

I have this project structure where I have a parent pom which include let’s say moduleA, moduleB and moduleTest.

moduleA and moduleB each produces a war, let’s say warA and warB.

I use the maven dependency plugin to copy warA and warB into moduleTest.
I then want to use the maven tomcat plugin to start the war.

Unfortunately, I have these 2 dilemma:
if I declare moduleTest with a package tag of war, then the tomcat plugin looks for a file named warTest to start tomcat, even if I explicitly point the path of the webapp to warA or warB. I end up getting a build failure saying cannot find war file

if I declare moduleTest with a package tag of jar, then the tomcat plugin still looks for warTest, but doesn’t see it, and endup logging, skipping non war project.

I have read that it is possible to trick maven war plugin to not produce a war for the module, hence this should force tomcat to pick up any war I tell it to pick up but I have not been able to make it work.

Has anyone had to do this before?


Answer:
I ended using the jetty maven plugin from morbay and I can now pick any war file.
But when I try to execute the run goal I get the following error:

INFO: FrameworkServlet 'spring': initialization completed in 4017 ms
2012-05-18 11:42:57.499:INFO::Started SelectChannelConnector@0.0.0.0:8180
2012-05-18 11:42:57.500:INFO::Started SelectChannelConnector@0.0.0.0:8380
[INFO] Started Jetty Server
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45.296s
[INFO] Finished at: Fri May 18 11:42:57 PDT 2012
[INFO] Final Memory: 32M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mortbay.jetty:jetty-maven-plugin:7.1.3.v20100526:run  
(start-    container) on project functional-test: Failure: Permission denied -> [Help 1]
[ERROR] 

Anyone has any idea it gets the permisson denied?
I use connector to set the port number for each war.

  • 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-04T03:46:15+00:00Added an answer on June 4, 2026 at 3:46 am

    You can use tomcat:deploy-only goal and specify paths to your war files in the warFile configuration parameter.

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

Sidebar

Related Questions

I have a parent POM in a Maven project, with this structure: parent |
I have a project structure that looks like this: Parent -- ChildProjects1 -- ChildProjects2
Currently, I have the following structure for my project Foo : foo-parent +- pom.xml
Okay so, I have this project structure: package A.B class SuperClass (this class is
I have a project with a structure like this: project code art config Art
I have a python project with this directory structure and these files: /home/project_root |---__init__.py
In an ASP.NET MVC3 project I have a structure like this: Core.csproj -> 3rdparty1.dll
So I have this project in PHP where I have some include files next
I have a directory structure & build.xml like this /path-to-project/src/prj1 /path-to-project/src/prj2 /path-to-project/tests /path-to-project/tests/build.xml I
I have some pom files in my project with the following structure <project xmlns=http://maven.apache.org/POM/4.0.0

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.