title: Maven compile: package does not exist
body: <p>I have a (seemingly) simple maven problem I can not solve. In my POM I have specified a dependency to openrdf-sesame like this:</p>
  
  <pre><code>&lt;dependency&gt;
       &lt;groupId&gt;org.openrdf.sesame&lt;/groupId&gt;
       &lt;artifactId&gt;sesame-runtime&lt;/artifactId&gt;
       &lt;version&gt;2.7.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Running the project from eclipse works well, I can even export a runnable jar file.
  Unfortunately, I cant get it to work properly via cmd-line maven.
  To build a jar, I have added the following to my pom:</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3.2&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;plugin&gt;
              &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
              &lt;configuration&gt;
                  &lt;descriptorRefs&gt;
                      &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
                  &lt;/descriptorRefs&gt;
                  &lt;archive&gt;
                      &lt;manifest&gt;
                          &lt;mainClass&gt;foo.bar.Cli&lt;/mainClass&gt;
                      &lt;/manifest&gt;
                  &lt;/archive&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>The compilation fails with the following errors:</p>
  
  <pre><code>.../PLDReducer.java:[25,29] package org.openrdf.rio.rdfxml does not exist
  .../PLDReducer.java:[27,33] package org.openrdf.sail.nativerdf does not exist
  .../LowPLDReducer.java:[25,29] package org.openrdf.rio.rdfxml does not exist
  .../Cli.java:[23,33] package org.openrdf.sail.nativerdf does not exist
  .../SchemaBuilder.java:[30,33] package org.openrdf.sail.nativerdf does not exist
  .../RepoQuerier.java:[23,33] package org.openrdf.sail.nativerdf does not exist
  .../PLDReducer.java:[78,44] cannot find symbol
  </code></pre>
  
  <p>Strangely, as soon as I add the compile plugin to the pom and update project settings, eclipse cant seem to compile anymore as well. I have checked my repository, and all sesame files are in there.</p>
  
  <p>mvn --version gives this output:</p>
  
  <pre><code>Apache Maven 2.2.1 (rdebian-8)
  Java version: 1.6.0_27
  Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
  Default locale: en_US, platform encoding: UTF-8
  OS name: "linux" version: "3.8.0-25-generic" arch: "amd64" Family: "unix"
  </code></pre>
  
  <p>I see that it seems to point to a jre, but my googling indicated that I would see another error if the compiler itself was not found.
  I have <a href="http://pastebin.com/NxZVQFCe">pasted the complete POM here</a>, if it is of any help.</p>
  
  <p>Is there anything I am missing? I can't find any errors in my POM. </p>