Note that there are some explanatory texts on larger screens.

plurals
  1. PODetermining Java Project Dependencies in Eclipse
    primarykey
    data
    text
    <p>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?</p> <p><strong>Edit</strong>: 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...</p> <pre><code>images META-INF util WEB-INF &gt; classes &gt; lib &gt; jtds-1.2.4.jar &gt; jw-core-web-1.2.0.jar &gt; web.xml blah.jsp blah.jsp blah.jsp </code></pre> <p>I assume I need these two files, at least. But when I open the build.xml file, I find a section like this:</p> <pre><code>&lt;!-- Jars listed here are added to the generated war file --&gt; &lt;fileset id="bundle.jars" dir="WebRoot/WEB-INF/lib"&gt; &lt;include name="base.jar"/&gt; &lt;include name="ldap.jar"/&gt; &lt;include name="junit.jar"/&gt; &lt;include name="titan.jar"/&gt; &lt;include name="activation.jar"/&gt; &lt;include name="javamail-1.2.jar"/&gt; &lt;include name="commons-httpclient.jar"/&gt; &lt;/fileset&gt; </code></pre> <p>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:</p> <pre><code>JRE System Library &gt; resources.jar &gt; rt.jar &gt; jsse.jar &gt; jce.jar &gt; charsets.jar &gt; dnsns.jar &gt; dns_sd.jar &gt; localedata.jar &gt; sunjce_provider.jar </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload