I have installed mahout and I have imported the existing maven project apache-mahout-distribution-0.12.2
to Eclipse IDE for Java Developers and can not build and I couldn't fix these problems. Please share me your knowledge!

- 11,649
- 22
- 32
- 46

- 51
- 1
- 1
- 6
-
This issue seems related: https://github.com/eclipse/eclipse.jdt.ls/issues/1635 – tangens Oct 17 '21 at 17:58
4 Answers
I had the same problem a couple of minutes ago. I tried some options as listed below and nothing happened:
- Changing the output folder specific for test class
- Changing the option 'Contains test sources' from no to yes and vice-versa
- Excluding all source folders on build path
My solution: I removed the project from my workspace and a new one was created.
Furthermore infomation about Test Source configuration at Eclipse, https://www.eclipse.org/eclipse/news/4.8/jdt.php#jdt-test-sources

- 165
- 2
- 5
-
What you mean by I removed from workspace and new one was created, who creates it? Mystical powers? – Meric Ozcan Mar 01 '23 at 11:38
I had similar issue and had to type-in the name of the output folder directly in the .classpath as follows
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
Note that 'contains test source' on Java Build Path panel should be set to 'Yes'. Once I did that and refreshed the output became visible in the Java Build Path panel.

- 51
- 1
- 3
I had this problem and solved it as follows:
- Right-click on project, Properties -> Java Build Path -> Source
- Tick the "Allow output folders for source folders" checkbox
- Now you can double-click on "Output folder" and set it per source folder path.

- 4,338
- 4
- 48
- 92
Surely it will be enough to open project's Java Build Path, focus the src/test/java
folder and set its output folder as <project>/target/test-classes
.

- 8,563
- 2
- 18
- 46
-
1There is no separate output folder for test sources in my version. – Sridhar Sarnobat Jan 15 '20 at 23:09
-
@SridharSarnobat Strange that Jan Hrabowski's answer worked for you, and not mine, while both of them are doing the same in different ways. – Little Santi Jan 16 '20 at 10:04