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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:33:54+00:00 2026-05-26T03:33:54+00:00

I understand that users using Maven should not care about dependencies as Maven will

  • 0

I understand that users using Maven should not care about dependencies as Maven will download them as specified in the pom. However I want to distribute another jar to non-maven users. So I still want to generate the raw jar for Maven, no problem there. But I would also want to have the ability to generate another jar with some dependencies included within. By some dependencies I mean that I will choose some of the dependencies as defined in the pom.xml, and include them in this other jar I will distribute myself.

So let’s say I have 10 dependencies in my pom.xml. dep1.jar, dep2.jar, … , dep10.jar.

The main jar generated for distribution with MAVEN will not have any of these dependencies, of course. But I would like the ability to generate another jar somehow with dep3.jar and dep4.jar included.

Any help will be highly appreciated!

EDIT: Directing me to a maven plugin does not help. But giving me a pom.xml example does. 🙂

  • 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-05-26T03:33:55+00:00Added an answer on May 26, 2026 at 3:33 am

    Take a look at the maven-assembly-plugin. You can configure it to create a JAR containing all of the dependencies of your project, along with the project’s source code. You can then bind an execution of the plugin to the package phase so this mega-jar is built as a part of the regular lifecycle.

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

Sidebar

Related Questions

I understand that I could show online users using ajax. For example, I could
I understand that server-side validation is an absolute must to prevent malicious users (or
I want to authenticate users against our AD so I understand that I need
I understand that you can now create MVC-specific user controls, but will my existing
I understand that it is not possible to tell what the user is doing
We're using Maven for a large project that is broken up into eight or
I understand that speeding up the PHP side of things is not really possible.
I understand that Microsoft uses this template when versioning their products: Major.Minor.Build.Revision. Major is
really can't understand, how to build correctly project that uses boost.python. I've included boost_(python/thread/system)-mt.
I understand that some countries have laws regarding website accessibility. In general, what are

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.