Hi Igor,

Thank you for feedback. I'm not sure what you mean by it's not possible to
do it in JDT GUI. I've been doing it in Eclipse Java Build Path setting of
the project, in Order and Export tab, just select Maven Dependencies and
that's the effect I wanted. The "leak" classpath as you described is
intended in our setup (we have no test dependencies in that project's pom).

The problem I ran into is m2e will overwrite that settings in .classpath
file after a reimport of the Maven project.

Hung



Date: Sat, 11 Feb 2012 15:54:40 -0500
> From: Igor Fedorenko <[email protected]>
> To: [email protected]
> Subject: Re: [m2e-users] m2e keeps resetting exported="true" of
>        classpath entry MAVEN2_CLASSPATH_CONTAINER
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> No, it is not possible to mark Maven Dependencies classpath container as
> exported, at least not through JDT GUI. Doing so will result in wrong
> project compile classpath, for example test dependencies of one project
> will "leak" into compile classpath of all other projects that depend on it.
>
> --
> Regards,
> Igor
>
> On 12-02-11 3:18 PM, Hung Huynh wrote:
> > Hello,
> >
> > I have a multi module project that requires to export Maven dependencies
> > in one of the module.
> > If I do that, the .classpath file will have exported="true" added like so
> >
> > <classpathentry exported="true" kind="con"
> > path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
> >
> >
> > But on reimport or Update Maven cofiguration, that exported="true" is
> > removed and my project fails to compile again.
> >
> > Is there a way to have that setting stuck? Checking in a .classpath
> > doesn't work at all since m2e keeps resetting it and whoever import the
> > project will have to set it again.
> >
> > Any pointer or workaround will be great,
> >
> > Thank you,
> >
> > Hung-
> >
>
>
> ------------------------------
>
> _______________________________________________
> m2e-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>
> End of m2e-users Digest, Vol 37, Issue 38
> *****************************************
>
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to