title: Maven Dependency Issues (MassiveCore.Factions Plugin)
body: <p>I recently downloaded the source for <code>MassiveCore.Factions</code> off <a href="https://github.com/MassiveCraft/Factions" rel="nofollow">GitHub </a>(Downloaded as <code>ZIP</code>) and I imported this Project as an "Existing <code>Maven</code> Project" in Eclipse. I edited what I needed from the project but I am not sure what is the best practice to add <code>dependencies</code> to this project. </p>
  
  <p>The goal is to have the <code>Jar</code> file which is compiled placed in the directory <code>server/plugins/</code> along with other <code>Jar</code> files (<strong>some which this project depends on</strong>). This is the <code>POM</code> that is included with the <a href="https://github.com/MassiveCraft/Factions" rel="nofollow">GitHub </a>download:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;name&gt;Factions&lt;/name&gt;
  &lt;url&gt;http://www.massivecraft.com/factions&lt;/url&gt;
  
  &lt;groupId&gt;com.massivecraft&lt;/groupId&gt;
  &lt;artifactId&gt;Factions&lt;/artifactId&gt;
  &lt;version&gt;2.7.5&lt;/version&gt;
  
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  &lt;/properties&gt;
  
  &lt;build&gt;
      &lt;defaultGoal&gt;install&lt;/defaultGoal&gt;
      &lt;finalName&gt;Factions&lt;/finalName&gt;
      &lt;sourceDirectory&gt;${basedir}/src/main/java/&lt;/sourceDirectory&gt;
      &lt;resources&gt;
          &lt;resource&gt;
              &lt;targetPath&gt;.&lt;/targetPath&gt;
              &lt;directory&gt;${basedir}/src/main/resources/&lt;/directory&gt;
              &lt;filtering&gt;true&lt;/filtering&gt;
              &lt;includes&gt;
                  &lt;include&gt;*.yml&lt;/include&gt;
                  &lt;include&gt;*.md&lt;/include&gt;
                  &lt;include&gt;*.txt&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.6&lt;/source&gt;
                  &lt;target&gt;1.6&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.massivecraft&lt;/groupId&gt;
          &lt;artifactId&gt;MassiveCore&lt;/artifactId&gt;
          &lt;version&gt;LATEST&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.dthielke&lt;/groupId&gt;
          &lt;artifactId&gt;HeroChat&lt;/artifactId&gt;
          &lt;version&gt;5.6.7&lt;/version&gt;
          &lt;scope&gt;system&lt;/scope&gt;
          &lt;systemPath&gt;${project.basedir}/lib/HeroChat-5.6.7.jar&lt;/systemPath&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.griefcraft&lt;/groupId&gt;
          &lt;artifactId&gt;LWC&lt;/artifactId&gt;
          &lt;version&gt;4.4.0&lt;/version&gt;
          &lt;scope&gt;system&lt;/scope&gt;
          &lt;systemPath&gt;${project.basedir}/lib/LWC-4.4.0.jar&lt;/systemPath&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p></p>
  
  <p>At first glance I have a few questions regarding this <code>POM</code> file and would like input:</p>
  
  <ol>
  <li><p>Some of the <code>dependencies</code> include a <code>System Path</code> that should be included in a <code>/lib</code> file for compile time, but for runtime, some of them are included in the same directory as the <code>Factions</code> plugin itself. Can I just assume that everything will work out in runtime if I leave the files as is according to the <code>POM</code> in compile time?</p></li>
  <li><p>I need to add an extra <code>dependency</code> named <code>bukkit</code>. There are a few <code>bukkit Jars</code> in the server files and will need to test which one it is. However, there is only one that resides in the <code>server/plugins/</code> directory. If it isn't in that directory, how would I go about trying to compile then if the <code>Jar</code> file will eventually be in a different directory.</p></li>
  <li><p>There is a dependency for <code>MassiveCraft.MassiveCore</code> in the <code>POM</code> file but doesn't include a <code>System Path</code> nor was it in the <a href="https://github.com/MassiveCraft/Factions" rel="nofollow">GitHub </a> download. I have the file but how would I handle this situation based on this dependency?</p></li>
  </ol>