Eclipse processes all files in a project as Derived

I created a dynamic web project in an Eclipse workspace. This is also a Maven project and is running SVN. But in "Open Resource" (Ctrl + Alt + R) not a single file from this project appears, unless I check the window settings (top right, top) "Show derived resources".

I checked some project folders and they are not marked as Derived.

I have two more (simple Java) projects in the workspace, and all the files from them are visible in the "Open Resource".

Do you know what could be wrong with Eclipse, the Maven plugin, or Subclipse (SVN plugin)?

+4
source share
3 answers

I had a similar problem in Eclipse (Ganymede) when using Maven and Subclipse plugins. I have not determined which plugin caused this problem, but I suspect that it is related to my pom.xml containing nested modules (i.e. a <modules><module>main-module</module><module>integration-test</module> ). They appear in Eclipse as subfolders with their own pom.xml files (I did not use the Multiple Projects plugin, although I installed it).

I assume that one of the plugins set the derived flag in these folders incorrectly when I checked the SVN project and then updated the MVN dependencies and project parameters.

When I right-click on the properties in the directories of the top-level nested modules, I see that the Derived flag is checked. Having marked the output flag in the module directories (and instead checked the output flag in the target directories in each submodule), he fixed the Open Resource functionality.

Since the derived flag is inherited from directories, you may need to check all your directories in the hierarchy to find the culprit.

If this helps the plugin authors, my top-level module directories contain a hyphen '-' in their names. Perhaps this throws out one of the plugins.

+8
source

I think this is a maven plugin:

Jira issue

See also July 31, 2008 notes on the New and Noteworthy page for m2eclipse.

Several other deleted links removed due to stackoverflow restrictions.

+2
source

Actually, I think somehow this eclipse is in my own right, since I don't have mlllipse or using maven for this.

By default, eclipse uses / bin as the destination directory. My situation is similar to having maven in the project, since the target directory has been changed to lib / classes to host an existing project.

I had problems similar to what is reported here, and when searching for a problem I ran into this solution. Eclipse somehow did not "remove" the bin directory, as it was no longer retrieved, so I ran into the same problems. I tried to play it, but could not.

0
source

Source: https://habr.com/ru/post/1277556/


All Articles