title: "API restriction error" when exporting Eclipse plugin with maven-tycho:
body: <p>I'm currently trying to build and export an Eclipe plugin with Maven (Tycho extension) but it throws a buch of API restriction errors</p>
  
  <pre><code>[INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 01:09 min
  [INFO] Finished at: 2015-03-02T13:57:35+03:00
  [INFO] Final Memory: 78M/187M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.22.0:compile (default-compile) on project GDBFifoBlocks: Compilation failure: Compilation failure:
  [ERROR] /home/siarshai/Programming/Workspaces/eclipse-rcp-workspace/GDBFifoBlocksBackbone/src/neuromatrixplugin/fifoblocks/backbone/viewmodel/fifo/FIFOBlockBitFieldVMNode.java:[240]
  [ERROR] update.setLabel(getMessageFormat().format(
  [ERROR] messageAttrs, new StringBuffer(), null).toString(), columnIndex);
  [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  [ERROR] Access restriction: The method 'MessageFormat.format(Object[], StringBuffer, FieldPosition)' is not API (restriction on classpath entry '/home/siarshai/.m2/repository/p2/osgi/bundle/com.ibm.icu/52.1.1.v201501240615/com.ibm.icu-52.1.1.v201501240615.jar')
  [ERROR] /home/siarshai/Programming/Workspaces/eclipse-rcp-workspace/GDBFifoBlocksBackbone/src/neuromatrixplugin/fifoblocks/backbone/viewmodel/fifo/FIFOBlockBitFieldVMNode.java:[345]
  [ERROR] update.setLabel(getMessageFormat().format(combinedAttrs, new StringBuffer(), null).toString(), columnIndex);
  [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  [ERROR] Access restriction: The method 'MessageFormat.format(Object[], StringBuffer, FieldPosition)' is not API (restriction on classpath entry '/home/siarshai/.m2/repository/p2/osgi/bundle/com.ibm.icu/52.1.1.v201501240615/com.ibm.icu-52.1.1.v201501240615.jar')
  [ERROR] /home/siarshai/Programming/Workspaces/eclipse-rcp-workspace/GDBFifoBlocksBackbone/src/neuromatrixplugin/fifoblocks/backbone/viewmodel/fifo/FIFOBlockBitFieldVMNode.java:[395]
  [ERROR] update.setLabel(getMessageFormat().format(combinedAttrs, new StringBuffer(), null).toString(), columnIndex);
  [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  [ERROR] Access restriction: The method 'MessageFormat.format(Object[], StringBuffer, FieldPosition)' is not API (restriction on classpath entry '/home/siarshai/.m2/repository/p2/osgi/bundle/com.ibm.icu/52.1.1.v201501240615/com.ibm.icu-52.1.1.v201501240615.jar')
  [ERROR] /home/siarshai/Programming/Workspaces/eclipse-rcp-workspace/GDBFifoBlocksBackbone/src/neuromatrixplugin/fifoblocks/backbone/viewmodel/fifo/FIFOBlockElementVMNode.java:[290]
  [ERROR] update.setLabel(getMessageFormat().format(messageAttrs, new StringBuffer(), null).toString(), columnIndex);
  [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  [ERROR] Access restriction: The method 'MessageFormat.format(Object[], StringBuffer, FieldPosition)' is not API (restriction on classpath entry '/home/siarshai/.m2/repository/p2/osgi/bundle/com.ibm.icu/52.1.1.v201501240615/com.ibm.icu-52.1.1.v201501240615.jar')
  [ERROR] /home/siarshai/Programming/Workspaces/eclipse-rcp-workspace/GDBFifoBlocksBackbone/src/neuromatrixplugin/fifoblocks/backbone/viewmodel/fifo/FIFOBlockElementVMNode.java:[366]
  [ERROR] update.setLabel(getMessageFormat().format(combinedAttrs, new StringBuffer(), null).toString(), columnIndex);
  [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  [ERROR] Access restriction: The method 'MessageFormat.format(Object[], StringBuffer, FieldPosition)' is not API (restriction on classpath entry '/home/siarshai/.m2/repository/p2/osgi/bundle/com.ibm.icu/52.1.1.v201501240615/com.ibm.icu-52.1.1.v201501240615.jar')
  </code></pre>
  
  <p>My pom.xml files: (see <a href="https://stackoverflow.com/questions/28739467/when-automating-eclipses-export-as-feature-maven-tycho-doesnt-see-my-plugin">this</a> question for more details)</p>
  
  <p>Parent project</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/xsd/maven-4.0.0.xsd"&gt;
  
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;NMGDBPluginFeature&lt;/groupId&gt;
    &lt;artifactId&gt;NMGDBPluginFeature.parent&lt;/artifactId&gt;
    &lt;version&gt;1.0.0.gdbfifoblocks&lt;/version&gt;
    &lt;packaging&gt;pom&lt;/packaging&gt;
  
     &lt;properties&gt;
        &lt;tycho-version&gt;0.22.0&lt;/tycho-version&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;eclipse-luna&lt;/id&gt;
              &lt;layout&gt;p2&lt;/layout&gt;
              &lt;url&gt;http://download.eclipse.org/releases/luna&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
     &lt;build&gt;
        &lt;plugins&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;org.eclipse.tycho&lt;/groupId&gt;
              &lt;artifactId&gt;tycho-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.22.0&lt;/version&gt;
              &lt;extensions&gt;true&lt;/extensions&gt;   
  
              &lt;configuration&gt;
                  &lt;compilerArgument&gt;-warn:none&lt;/compilerArgument&gt;     
                  &lt;compilerArgument&gt;-err:none&lt;/compilerArgument&gt;      
              &lt;/configuration&gt;
  
           &lt;/plugin&gt;
        &lt;/plugins&gt;
     &lt;/build&gt;
  
  
  
    &lt;modules&gt;
      &lt;module&gt;../GDBFifoBlocksBackbone&lt;/module&gt;
      &lt;module&gt;../NMGDBPluginFeature&lt;/module&gt;
    &lt;/modules&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Feature project:</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/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;parent&gt;
      &lt;groupId&gt;NMGDBPluginFeature&lt;/groupId&gt;
      &lt;artifactId&gt;NMGDBPluginFeature.parent&lt;/artifactId&gt;
      &lt;version&gt;1.0.0.gdbfifoblocks&lt;/version&gt;
      &lt;relativePath&gt;./../GeneralExportingProject&lt;/relativePath&gt;
    &lt;/parent&gt;
  
    &lt;artifactId&gt;NMGDBPluginFeature&lt;/artifactId&gt;
    &lt;packaging&gt;eclipse-feature&lt;/packaging&gt;
  
  
     &lt;build&gt;
        &lt;plugins&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;org.eclipse.tycho&lt;/groupId&gt;
              &lt;artifactId&gt;tycho-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.22.0&lt;/version&gt;
              &lt;extensions&gt;true&lt;/extensions&gt;   
  
              &lt;configuration&gt;
                  &lt;compilerArgument&gt;-warn:none&lt;/compilerArgument&gt;     
                  &lt;compilerArgument&gt;-err:none&lt;/compilerArgument&gt;      
              &lt;/configuration&gt;
  
           &lt;/plugin&gt;
        &lt;/plugins&gt;
     &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Plugin project:</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/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;parent&gt;
      &lt;groupId&gt;NMGDBPluginFeature&lt;/groupId&gt;
      &lt;artifactId&gt;NMGDBPluginFeature.parent&lt;/artifactId&gt;
      &lt;version&gt;1.0.0.gdbfifoblocks&lt;/version&gt;
      &lt;relativePath&gt;./../GeneralExportingProject&lt;/relativePath&gt;
    &lt;/parent&gt;
  
    &lt;artifactId&gt;GDBFifoBlocks&lt;/artifactId&gt;
    &lt;packaging&gt;eclipse-plugin&lt;/packaging&gt;
  
     &lt;build&gt;
        &lt;plugins&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;org.eclipse.tycho&lt;/groupId&gt;
              &lt;artifactId&gt;tycho-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.22.0&lt;/version&gt;
              &lt;extensions&gt;true&lt;/extensions&gt;
  
              &lt;configuration&gt;
                  &lt;compilerArgument&gt;-warn:none&lt;/compilerArgument&gt;     
                  &lt;compilerArgument&gt;-err:none&lt;/compilerArgument&gt;      
              &lt;/configuration&gt;
  
           &lt;/plugin&gt;
        &lt;/plugins&gt;
     &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>I'm sure that plugin and exporting feature configurations (i.e. MANIFEST and feature.xml) are written well. I've already tried:</p>
  
  <ol>
  <li>Set all API violations to "Ignore" in Eclipse > Window > Preferences > Java > Compiler > Error/Warning</li>
  <li>Deleted JRE from project's Build Path and added it again (as suggested in several bug topics)</li>
  <li>Added -warn:none to the pom.xml (can be seen in configurations presented above)</li>
  </ol>
  
  <p>I found no additional recommendations in Google. Should I report this as a bug or is it my mistake?</p>