title: Maven - Unresolved references to [javax.activation, javax.annotation]
body: <p>I'm developing web application with OSGI. I have a maven configuration error which I cannot find. This is the complete source code:
  <a href="http://uploading.com/files/8e5c9888/SH_27_test.zip/" rel="nofollow">http://uploading.com/files/8e5c9888/SH_27_test.zip/</a></p>
  
  <p>This is the POM file:</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/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
          &lt;groupId&gt;org.DX_57.osgi.SH_27&lt;/groupId&gt;
          &lt;artifactId&gt;SH_27&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
          &lt;relativePath&gt;../pom.xml&lt;/relativePath&gt;
      &lt;/parent&gt;
      &lt;artifactId&gt;SH_27-impl&lt;/artifactId&gt;
      &lt;packaging&gt;bundle&lt;/packaging&gt;
      &lt;name&gt;SH_27-impl&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;3.8.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;org.osgi.core&lt;/artifactId&gt;
              &lt;version&gt;1.0.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;${pom.groupId}&lt;/groupId&gt;
              &lt;artifactId&gt;SH_27-api&lt;/artifactId&gt;
              &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;${project.groupId}&lt;/groupId&gt;
              &lt;artifactId&gt;SH_27-api&lt;/artifactId&gt;
              &lt;version&gt;${project.version}&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
                  &lt;configuration&gt;
                      &lt;instructions&gt;
                          &lt;Import-Package&gt;${pom.groupId}.api, org.osgi.framework&lt;/Import-Package&gt;
                          &lt;Bundle-SymbolicName&gt;${pom.artifactId}&lt;/Bundle-SymbolicName&gt;
                          &lt;Bundle-Activator&gt;${pom.groupId}.impl.SessionHandleApp&lt;/Bundle-Activator&gt;
                      &lt;/instructions&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&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.7&lt;/source&gt;
                      &lt;target&gt;1.7&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
      &lt;groupId&gt;org.DX_57.osgi.SH_27&lt;/groupId&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>When I try to compile it with Netbeans I get this error:
  <a href="http://pastebin.com/whxuSb7V" rel="nofollow">http://pastebin.com/whxuSb7V</a></p>
  
  <p>The problem occurs when I add @Datasource. It seems that I'm missing something in the POM file but I don't have idea what it is?</p>
  
  <p>Any help will be highly appreciated.</p>
  
  <p>Best Wishes 
  Peter</p>