-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing source folders are added to classpath #186
Comments
A sample project would really help. I beleave there's a many different ways to configure the greclipse compiler via pom. So knowing exactly what a project exhibiting this problem looks like would be nice. |
I've created a sample project in the following way:
The error then appears. The error does not get fixed by refreshing maven project or even deleting project, all project eclipse metadata and reimporting. Then I also tested if perhaps we could just remove some of the goals from the pom (i,e, the ones related to 'src/main/groovy' like 'addSources', 'generateStubs' and 'compile'. I did this as it seems reasonable that if project is only using groovy in test it would not have those goals. Even after that, the error persists. So there is definitely something wrong here. |
All of the samples here: https://github.com/spring-cloud/spring-cloud-contract/tree/master/samples. I had to put ".empty" files in |
Thanks that gives me a set of test samples to work with and make sure it behaves. |
This is the bit that matters:
Interesting... when I make a project with this kind of config it does NOT add the groovy sources folder. So in principle these project should work fine. What I do see however is that the gmavenplus-based configurator never removes the paths when they are already there. So if the eclipse metadata was already present in the projects, then even after remove 'compile' (and related) goals, the main groovy source folder will not be removed. If its manually removed however it stays gone upon refresh. Same if we delete the metadata and reimport project. I'll make some adjustments to how this works so that: a) source folders with paths controlled by the configurator are removed if their respective goals are missing. b) source folders that do not actually exist will never be added. That should make doubly sure this works correctly. |
@dsyer You can try updating the m2e configurator from snapshot site. Fix should be there now. |
Is this fix also included in 2.9.2.xx-201607251752-e45 ? |
Probably not. The e45 build has not run to completion in a long time: |
@kdvolder well, that snapshot build needs to have come from somewhere. It includes a timestamp. So somebody seems to have run a successful build on 2016-07-25 at 17:52, right? If it wasn't the build system, then maybe somebody did a local build and uploaded that? |
Actually inspecting the logs for snapshot build more closely. It did run to completion. Looks like the only reason for the 'red' icons in bamboo is that someone disabled the tests. Bamboo is expecting test results and can't find them and so it shows the build status as 'failed'. So, yes, that build should include the fix. |
I've updated the bamboo config for e45 build to reflect reality. I.e.
|
Hello, I started looking into the commit that fixes this issue and it looks that it might have introduced an issue described in #192. |
So Eclipse moans constantly about missing source folders (src/main/groovy for example when Groovy is only being used for tests). It looks like this connector is adding stuff to the .classpath for folders that don't exist.
The text was updated successfully, but these errors were encountered: