Refresh dependencies removes org.eclipse.jst.component.dependency for /WEB-INF/lib

Hi,

I have found when I recently updated to the latest version of buildship (sorry, cant remember what version I had previously) that now when I refresh the project the .classpath file is changed so that the container that previously looked like this:

<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer">
		<attributes>
			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
		</attributes>
</classpathentry>

After “Refresh Gradle Project” it now looks like this:

<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>

So when I start my tomcat server etc things don’t go so well.

Is this a wtp issue that will be resolved when that is released? I can revert the .classpath files each time I refresh, but with a multi project setup its becoming a bit of a pain.

Many Thanks

1 Like

I came here with an opposite problem: Suddenly, there are these attributes generated, and I want to know why.

I guess, all you need to do is to use apply plugin: 'eclipse-wtp' instead of just ``eclipse’`.
https://docs.gradle.org/current/userguide/eclipse_plugin.html#sec:eclipse_usage


Damn, I though I was answering to a posting from Sep/16 and not Sep'16. :smiley: