I have created the issue : http://jira.codehaus.org/browse/MNGECLIPSE-1044
I may be wrong, but if this improvement is easy to develop, I can propose you to try to contribute it, if you give me some hints. Regards, Bouiaw On Fri, Nov 7, 2008 at 5:33 PM, stug23 <[EMAIL PROTECTED]> wrote: > > If I understand Bouiaw's suggestion, I think that this would also work for > me. > > What I am trying to avoid is storing the .classpath file in Subversion. > Having already endured years of problems (pre-Maven) with having .classpath > stored in the source code management system, my hope is that with Maven I no > longer need to do this. > > I hope that Bouiaw will create an enhancement request. In any event, the > problem with access rules is only happening in Eclipse, not on the Maven > command line. So following Bouiaw's approach would just treat the use of the > sun.misc.BASE64Decoder class as if an external library had been added, > giving full access. > > > Eugene Kuleshov wrote: >> >> Bouiaw wrote: >>> Same problem for me, and this is a real issue. >>> >> BTW, in case you are stuck with the build errors, those could be >> turned off in global workspace compiler settings. I think we have a FAQ >> entry about that. >>> m2eclipse allow us to have not anymore .project and .classpath in SCM, >>> it would be a big problem if we had to commit these file again. >>> >>> My suggestion should be to do exactly what Eclipse do when we add Java >>> library : allow access to all classes by defining no access rules : no >>> forbidden, no accessible. >>> >> This is an interesting suggestion. Would you mind to create an >> enhancement request for this? >> >> Thanks >> >> Eugene >> >> >> On Fri, Nov 7, 2008 at 1:21 AM, Eugene Kuleshov <[EMAIL PROTECTED]> wrote: >>>> Pat, >>>> >>>> This is currently not supported by m2eclipse. More over, this info is >>>> not >>>> represented in the Maven's pom.xml, which makes this tricky to do it >>>> automatically. >>>> >>>> Perhaps one option for m2eclipse would be to use .project and >>>> .classpath >>>> when importing Maven projects (including projects checked out from svn), >>>> then you could do that just once and we can preserve this setting when >>>> running "Maven / Update project" action. >>>> >>>> Do you have other ideas or suggestions how to deal with this issue? >>>> >>>> regards, >>>> Eugene >>>> >>>> >>>> stug23 wrote: >>>> >>>>> When using Sun's sun.misc.BASE64Decoder, Eclipse shows an error which >>>>> requires configuring an access rule via the Eclipse UI -- this ends up >>>>> creating an <accessrule/> tag in the Eclipse .classpath file as shown >>>>> below. >>>>> >>>>> How can I configure my pom.xml such that when checking out the related >>>>> Maven >>>>> project from Subversion, this access rule will be added to the Eclipse >>>>> .classpath file without having to store the .classpath file in >>>>> Subversion? >>>>> >>>>> ==== >>>>> <classpathentry kind="con" >>>>> >>>>> path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"> >>>>> <accessrules> >>>>> <accessrule kind="accessible" pattern="sun/misc/**"/> >>>>> </accessrules> >>>>> </classpathentry> >>>>> ==== >>>>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> >> > > -- > View this message in context: > http://www.nabble.com/How-can-I-configure-Maven-POM-so-that-accessrules-are-set-in-.classpath--tp20372095p20383995.html > Sent from the Maven Eclipse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email