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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:33:58+00:00 2026-05-16T22:33:58+00:00

I have a (custom) embedded jetty launcher which I had been using to develop/test

  • 0

I have a (custom) embedded jetty launcher which I had been using to develop/test my web application (before moving to maven).

I am able to trick m2eclipse into putting the maven managed dependencies to libraries for the war file onto the launcher classpath (when run from eclipse). I did this by creating two dependencies for the same artifact: one of the type “war” and one the type “jar” (“jar” dependence tricks m2eclipse into doing what I want).

However the maven-assembly-plugin for the launcher fails when it cannot find the jar for the war project.

Q: Can I tell maven to ignore the jar dependency when running the package goal?

more detailed background:
I have a webapp.war project and a jetty-launcher project, before moving to maven; I had an eclipse project dependency so that the launcher had all the war dependencies at runtime. Everything ran right out of the ide (with no re-build of the warfile) needed to test changes.

After moving to maven, this approach was outsmarted since m2eclipse knows not to include the libraries that the jar depends on (since they are war scoped).

  • 1 1 Answer
  • 4 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-05-16T22:33:58+00:00Added an answer on May 16, 2026 at 10:33 pm

    I got around this by using a seperate .m2/settings-eclipse.xml (for eclipse) where I over-ride the default type of dependency. so in my launcher POM, I have:

    <dependency>
      <groupId>com.myco</groupId>
      <artifactId>my-server</artifactId>
      <version>${project.version}</version>
    
      <!-- here we want eclipse to see "jar" but command line to see "war" -->
      <type>${jetty.launcher.workaround}</type>
    </dependency>
    

    I still would like to know if there is a direct way to approach the original problem.

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

Sidebar

Related Questions

currently I have a custom VirtualPathProvider in a Asp.net MVC web application. This VirtualPathProvider
I have custom-made wizard system which so far has been quite suitable. For most
I have been tasked to write a device driver for an embedded device which
We have custom headers in the Silverlight DataGrid using the ContentTemplate. We've got a
Im trying to create a custom formatter in Symfony 1.4. I have embedded form
I have an embedded board with a 32 Micro-controller, and an custom built OS,
I have a project which contains all custom controls and images; we'll call it
I have a mongoose setup which involves an embedded-schema, lets say: A Blogpost with
im using a joomla 1.6.4 install and have a custom css/javascript drop-down menu in
I have a custom input device on and embedded system, and have to translate

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.