java - Moving Axis 1.4 stub project to a Maven based project (Type Access restriction) -
for compatibility reasons have build axis 1.4 skeleton classes exiting wsdl-file. use shipped wsdl2java ant-task axis 14.
i'm using myeclipse 8.5 on java sdk 1.6.0_18, added required libraries build path , goes fine.
now moved normal project apache maven2 project, added dependencies following warnings (~500):
description resource path location type access restriction: constructor qname(string, string) not accessible due restriction on required library /usr/local/uvst/standard/jdk1.6.0_18/jre/lib/rt.jar
i have read similar question here don't agree answers @ access restriction on class due restriction on required library rt.jar?.
because in normal java project no
access restriction on class due restriction
warning appears.
the classpath setup in normal java project contains libraries shipped latest distribution of axis 1.4 (i know it's rather old).
the dependency section of pom.xml:
<dependency> <groupid>org.apache.axis</groupid> <artifactid>axis</artifactid> <version>1.4</version> </dependency> <dependency> <groupid>org.apache.axis</groupid> <artifactid>axis-jaxrpc</artifactid> <version>1.4</version> </dependency>
the class qname located in axis-jaxrpc.jar!
is there possibility make things going right, without killing class-files libraries or disable warning settings within ide?
does happen under eclipse only? if yes, can modify compiler settings explained in m2eclipse faq:
compilation errors on restricted classes
projects using classes rt.jar, such com.sun.* (and others) can have compilation errors like: "access restriction: type re not accessible due restriction on required library /lib/rt.jar". such errors indicate use of non-api classes , access rules defined eclipse jdt.
you can change compiler settings not fail on restrictions in workspace settings in window / preferences / java / compiler / errors/warnings / deprecated , restricted api / forbidden reference (access rules) / warnings; or per-project project / properties / java compiler / errors/warnings / deprecated , restricted api / forbidden reference (access rules) / warnings
Comments
Post a Comment