Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the exported attribute in .classpath do? [duplicate]

What does the exported attribute do in this .classpath line?

<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>

I've got a project that builds & runs fine with and without it. So, what difference does it make?

Apparently in my particular case (a project I inherited) it isn't critical to have it. When is it critical to have this attribute added?

like image 227
Withheld Avatar asked Jan 08 '13 17:01

Withheld


1 Answers

When it is exported, it is available to other eclipse projects. In maven, if you have multiple projects that depend on each other, eclipse can resolve projects within the workspace. So changing that is likely to have an effect when you have multiple projects.

like image 51
Jeff Storey Avatar answered Sep 20 '22 09:09

Jeff Storey