title: Moving Axis 1.4 stub project to a Maven based project (Type Access restriction)
body: <p>For compatibility reasons I have to build Axis 1.4 skeleton classes from exiting an wsdl-file. I use the shipped wsdl2java ant-task from Axis 14.</p>
  
  <p>I'm using MyEclipse 8.5 on Java SDK 1.6.0_18, I added the required libraries to my build path and everything goes fine.</p>
  
  <p>Now I moved my normal project to a Apache Maven2  project, as I added the dependencies I get following warnings (~500):</p>
  
  <blockquote>
    <p>Description   Resource    Path    Location    Type
    Access restriction: The constructor QName(String, String) is not accessible due to restriction on required library /usr/local/uvst/standard/jdk1.6.0_18/jre/lib/rt.jar</p>
  </blockquote>
  
  <p>I already have read a similar question here but I don't agree with the answers at <a href="https://stackoverflow.com/questions/860187/access-restriction-on-class-due-to-restriction-on-required-library-rt-jar">Access restriction on class due to restriction on required library rt.jar?</a>.</p>
  
  <p>Because in a normal Java project <strong>no</strong></p>
  
  <blockquote>
    <p>Access restriction on class due to restriction</p>
  </blockquote>
  
  <p>warning appears.</p>
  
  <p>The classpath setup in my normal Java project contains all libraries with are shipped with the latest distribution of Axis 1.4 (I know it's rather old).</p>
  
  <p>The dependency section of my pom.xml:</p>
  
  <pre><code>&lt;dependency&gt;
  &lt;groupId&gt;org.apache.axis&lt;/groupId&gt;
  &lt;artifactId&gt;axis&lt;/artifactId&gt;
  &lt;version&gt;1.4&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;org.apache.axis&lt;/groupId&gt;
  &lt;artifactId&gt;axis-jaxrpc&lt;/artifactId&gt;
  &lt;version&gt;1.4&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The class QName is located in axis-jaxrpc.jar!</p>
  
  <p>Is there a possibility to make things going right, without killing class-files from libraries or disable warning settings within the IDE?</p>