5

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!

SternK
  • 11,649
  • 22
  • 32
  • 46
Mulualem M
  • 51
  • 1
  • 1
  • 6

4 Answers4

6

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.

enter image description here

enter image description here

Furthermore infomation about Test Source configuration at Eclipse, https://www.eclipse.org/eclipse/news/4.8/jdt.php#jdt-test-sources

Thiago Ferreira
  • 165
  • 2
  • 5
5

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.

Jan Hrabowski
  • 51
  • 1
  • 3
2

I had this problem and solved it as follows:

  1. Right-click on project, Properties -> Java Build Path -> Source
  2. Tick the "Allow output folders for source folders" checkbox
  3. Now you can double-click on "Output folder" and set it per source folder path.
simonalexander2005
  • 4,338
  • 4
  • 48
  • 92
-1

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.

Little Santi
  • 8,563
  • 2
  • 18
  • 46