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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:38:50+00:00 2026-05-24T22:38:50+00:00

This is an incredibly silly question, I know… But I’m in the middle of

  • 0

This is an incredibly silly question, I know… But I’m in the middle of converting a Java Project once built with Ant to do so with Apache Maven, instead. One of the steps I’ve read to accomplish this was to place all of the JAR’s the project needed in the pom.xml file as a dependency. Now, since I’m not entirely too familiar with this project, was there any property setting I might be able to look at to view all of the JAR dependencies clearly? I know some are in the WEB-INF\lib directory, but looking at the original build.xml file for Ant, there seems to be more than those it was trying to add. Again, I’m very new at all of these concepts, but I was just hoping for an easy way to determine what dependencies a Java Project has so that I can add them — or their Maven-equivalent — to the pom.xml file. Any suggestions?

Edit: Here’s part of what’s confusing me. When I open the WAR file for the project that I’m trying to deploy with Apache Tomcat, these are the only JAR files I can find…

images
META-INF
util
WEB-INF
    > classes
    > lib
        > jtds-1.2.4.jar
        > jw-core-web-1.2.0.jar
    > web.xml
blah.jsp
blah.jsp
blah.jsp

I assume I need these two files, at least. But when I open the build.xml file, I find a section like this:

<!-- Jars listed here are added to the generated war file -->
<fileset id="bundle.jars" dir="WebRoot/WEB-INF/lib">
    <include name="base.jar"/>
    <include name="ldap.jar"/>
    <include name="junit.jar"/>
    <include name="titan.jar"/>
    <include name="activation.jar"/>
    <include name="javamail-1.2.jar"/>
    <include name="commons-httpclient.jar"/>
</fileset>

Granted, I didn’t see any of these jars in the WAR file briefly expanded above. In addition, the JRE System Library is listed under my Package Explorer along with a list of JAR files. Now, do I need to add these to my dependency list as well? Here’s what I’ve got:

JRE System Library
    > resources.jar
    > rt.jar
    > jsse.jar
    > jce.jar
    > charsets.jar
    > dnsns.jar
    > dns_sd.jar
    > localedata.jar
    > sunjce_provider.jar
  • 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-24T22:38:51+00:00Added an answer on May 24, 2026 at 10:38 pm

    If you have your project set up in Eclipse, then you should be able to view all the dependencies in the Project Explorer view. They must be on the build path in order for you compile things properly.

    On the Ant side, I would assume the necessary jars for the runtime will be copied somewhere with the rest of the build. This is especially true if your project is being built into a WAR.

    If nothing is being copied over, then your best bet is to hunt down all the compile-time and run-time jars by carefully scanning your build.xml. This is something you should probably be doing anyway if you’re converting it to Maven. I suppose the key parts to look for is the javac and java Ant tasks.

    As a side note, as you’re creating your pom.xml and adding dependencies, keep an eye on the dependency hierarchy by opening your pom.xml in Eclipse and clicking the Dependency hierarchy tab. This will hopefully keep you from adding redundant top-level dependencies.

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

Sidebar

Related Questions

Sorry in advance for this incredibly simple question, but what is the best way
Upon pre-submission review, I realize this question might be incredibly silly. if (this.gameOver(gpos) >
i know this is incredibly easy but I have been writing and rewriting this
I know I must be doing something incredibly silly, but I am struggling with
Preface: I am sure this is incredibly simple, but I have searched this site
Apologies if this is incredibly easy but I want to be able to do
Similar to this question , but I have one master report which contains many
I'm sure this is incredibly simple for somebody, but I am failing to grasp
This seems like the dumbest question ever, but I can't seem to figure it
This seems incredibly simple but I have no idea why I can't put a

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.