title: Infinite Maven 'target/classes' folders
body: <p>I'm using Eclipse (Kepler) and the m2e Maven plugin for Eclipse.
  I have a Maven project, but when I export the jar in Eclipse (as in right click project, export, jar, etc..), it creates a weird infinite or nearly infinite folder loop. </p>
  
  <p>This is the Eclipse folder for that project (there's nothing wrong with it):
  <em>PIC 1</em> (Pics link is at the end of the page, could not upload pics)</p>
  
  <p>Now, when I go inside the target folder it's still all good: <em>PIC 2</em></p>
  
  <p>All is well as you can see.</p>
  
  <p>However, when I navigate into the classes folder there is another 'target' folder that has another folder 'classes', which has 'target', and so on..</p>
  
  <p>This is the view when you go into the classes folder from the last picture.
  <em>PIC 3</em></p>
  
  <p>As you can see, it keeps on going. It's removable, but I used 'robocopy' with cmdprompt. It keeps on going back though.
  <em>PIC 4</em></p>
  
  <p><strong>Pics:</strong> <a href="http://pastebin.com/p1QiAVnE" rel="noreferrer">http://pastebin.com/p1QiAVnE</a></p>
  
  <p>What can I do to stop Eclipse from doing this?</p>
  
  <p><strong>EDIT:</strong> I should of course share my pom.xml:</p>
  
  <pre><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/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;Autorank&lt;/groupId&gt;
  &lt;artifactId&gt;Autorank&lt;/artifactId&gt;
  &lt;version&gt;3.4-Dev-${BUILD_NUMBER}&lt;/version&gt;
  &lt;name&gt;Autorank&lt;/name&gt;
  &lt;description&gt;Maven project for Bukkit plugin Autorank&lt;/description&gt;
  &lt;url&gt;http://dev.bukkit.org/server-mods/autorank/&lt;/url&gt;
  &lt;build&gt;
  
      &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
  
      &lt;resources&gt;
  
          &lt;resource&gt;
              &lt;filtering&gt;true&lt;/filtering&gt;
              &lt;directory&gt;${basedir}&lt;/directory&gt;
              &lt;includes&gt;
                  &lt;include&gt;**/*.yml&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;excludes&gt;
                      &lt;exclude&gt;${basedir}/Javadocs&lt;/exclude&gt;
                      &lt;exclude&gt;${basedir}/lib&lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;!-- Stop Maven from including the dependencies (.jars) in the artifact 
              (created by Jenkins) --&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;excludes&gt;
                      &lt;exclude&gt;*.jar&lt;/exclude&gt;
                  &lt;/excludes&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
      &lt;/plugins&gt;
  
  &lt;/build&gt;
  
  &lt;properties&gt; &lt;!-- Fix encoding warnings --&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
  &lt;/properties&gt;
  
  &lt;repositories&gt;
  
      &lt;repository&gt;
          &lt;id&gt;bukkit-repo&lt;/id&gt;
          &lt;url&gt;http://repo.bukkit.org/content/groups/public/&lt;/url&gt;
      &lt;/repository&gt;
  
      &lt;repository&gt;
          &lt;id&gt;Plugin Metrics&lt;/id&gt;
          &lt;url&gt;http://repo.mcstats.org/content/repositories/public/&lt;/url&gt;
      &lt;/repository&gt;
  
      &lt;repository&gt;
          &lt;id&gt;stats-repo&lt;/id&gt;
          &lt;url&gt;http://centrility.nl:8081/nexus/content/repositories/releases/
          &lt;/url&gt;
      &lt;/repository&gt;
  
      &lt;repository&gt;
          &lt;id&gt;sk89q-repo&lt;/id&gt;
          &lt;url&gt;http://maven.sk89q.com/artifactory/repo/&lt;/url&gt;
      &lt;/repository&gt;
  
      &lt;repository&gt;
          &lt;id&gt;Spigot-repo&lt;/id&gt;
          &lt;url&gt;https://hub.spigotmc.org/nexus/&lt;/url&gt;
      &lt;/repository&gt;
  
      &lt;repository&gt;
          &lt;id&gt;staartvin-repo&lt;/id&gt;
          &lt;url&gt;http://62.131.38.74:8081/artifactory/ext-release-local/&lt;/url&gt;
      &lt;/repository&gt;
  
  &lt;/repositories&gt;
  
  &lt;dependencies&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;net.ess&lt;/groupId&gt;
          &lt;artifactId&gt;Essentials&lt;/artifactId&gt;
          &lt;version&gt;2.13.1&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;EssentialsGroupManager&lt;/groupId&gt;
          &lt;artifactId&gt;EssentialsGroupManager&lt;/artifactId&gt;
          &lt;version&gt;2.1.11&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&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;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.massivecraft&lt;/groupId&gt;
          &lt;artifactId&gt;MassiveCore&lt;/artifactId&gt;
          &lt;version&gt;2.7.5&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.platymuus&lt;/groupId&gt;
          &lt;artifactId&gt;bukkit-permissions&lt;/artifactId&gt;
          &lt;version&gt;2.4&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;nl.lolmewn.stats&lt;/groupId&gt;
          &lt;artifactId&gt;Stats&lt;/artifactId&gt;
          &lt;version&gt;2.0.1&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;net.milkbowl.vault&lt;/groupId&gt;
          &lt;artifactId&gt;Vault&lt;/artifactId&gt;
          &lt;version&gt;1.5.0&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sk89q&lt;/groupId&gt;
          &lt;artifactId&gt;worldedit&lt;/artifactId&gt;
          &lt;version&gt;6.0.0-SNAPSHOT&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.mcstats.bukkit&lt;/groupId&gt;
          &lt;artifactId&gt;metrics&lt;/artifactId&gt;
          &lt;version&gt;R7&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.sk89q&lt;/groupId&gt;
          &lt;artifactId&gt;worldguard&lt;/artifactId&gt;
          &lt;version&gt;6.0.0-beta-01&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;com.gmail.nossr50.mcMMO&lt;/groupId&gt;
          &lt;artifactId&gt;mcMMO&lt;/artifactId&gt;
          &lt;version&gt;1.5.02&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;RoyalCommands&lt;/groupId&gt;
          &lt;artifactId&gt;RoyalCommands&lt;/artifactId&gt;
          &lt;version&gt;4.0.0&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;OnTime&lt;/groupId&gt;
          &lt;artifactId&gt;OnTime&lt;/artifactId&gt;
          &lt;version&gt;3.13.4&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;UltimateCore&lt;/groupId&gt;
          &lt;artifactId&gt;UltimateCore&lt;/artifactId&gt;
          &lt;version&gt;1.1.8&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;Statistics&lt;/groupId&gt;
          &lt;artifactId&gt;Statistics&lt;/artifactId&gt;
          &lt;version&gt;1.2.3&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.spigotmc&lt;/groupId&gt;
          &lt;artifactId&gt;spigot-api&lt;/artifactId&gt;
          &lt;version&gt;1.8-R0.1-SNAPSHOT&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.bukkit&lt;/groupId&gt;
          &lt;artifactId&gt;bukkit&lt;/artifactId&gt;
          &lt;version&gt;1.7.9-R0.2&lt;/version&gt;
          &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  </code></pre>
  
  <p></p>