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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:20:46+00:00 2026-05-11T04:20:46+00:00

I have a simple application using netbeans for developing and maven for building et

  • 0

I have a simple application using netbeans for developing and maven for building et all. My application uses camel , spring XML configured. I wanted to build an executable jar with dependencies so i am using the maven-assembly plugin with ‘jar-with-deps’ descriptor. The jar is built ok but I think that since all the dependencies get unwrapped and some of these have the same resources in the same paths as others, then they overwrite each other. I verified this by browsing the jar with winrar and i found multiple occurences of the same file in many places. I am thinking this is unsolvable by some simple maven configuration because i cannot stop a dependency wanting a resource in a specific path, used also by another dependency. BTW the app runs ok inside netbeans. Also I saw multiple occurences of my application classes. That is more strange, but i cant figure out why.

All in all, I want to know if:

  1. Is there any simple solution that finds such conflicts and at least reports them if not corrects them? (and how)

  2. Can i tell the archiver (in maven) not to unwrap the deps but just include the jars in a parent jar and then just include the jars in the manifest classpath and how? Will this solve the problem or it has the same result?

  3. Why are there also multiple occurrences of my application classes in the same path?

To give you a picture of the problem , the current resulting jar, when viewd with WinRAR, has 3 instances of ‘log4j.properties’ in root path and 7 instances of file ‘spring.schemas’ in meta-inf/ path, to name a few.

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T04:20:47+00:00Added an answer on May 11, 2026 at 4:20 am

    I don’t think that is possbile to .zip all .jars into a single .jar. Many of these .jars have resources in their .jar file (log4j.properties, spring XML files) that are located in the same folder, so there will be clash.

    Its better to provide start scripts that can start your application by setting the classpath. And I remember in either JDK1.5 or is it 1.6 you can set a folder as the classpath and it will include all jars from this folder.

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

Sidebar

Ask A Question

Stats

  • Questions 103k
  • Answers 103k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Any table that stores real data in your app should… May 11, 2026 at 8:20 pm
  • Editorial Team
    Editorial Team added an answer have you tried saving your PNG's as PNG8 instead? this… May 11, 2026 at 8:20 pm
  • Editorial Team
    Editorial Team added an answer I'm not sure if I got your problem right, why… May 11, 2026 at 8:20 pm

Related Questions

Leading on from my previous questions I am going to try and clarify one
I'm working on a java SE 1.5+ swing application, in conjunction with others. I'm
I am new to Swing. Are there any specific issues related to customizing the
I'm relatively new to java (specifically swing) and have recently been making some fairly

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.