jsuereth / scala-mojo-support

Helper to create maven mojo projects in the Scala languages
BSD 3-Clause "New" or "Revised" License
20 stars 10 forks source link

Spams lots of bogus "type/symbol/whatever not found" errors #17

Open argv-minus-one opened 11 years ago

argv-minus-one commented 11 years ago

When compiling a Scala mojo, a bunch of bogus error messages are printed concerning missing classes and whatnot. For instance:

<some source file>:3: error: object MojoExecutionException is not a member of package org.apache.maven.plugin
import org.apache.maven.plugin.{MojoExecutionException, MojoFailureException, AbstractMojo}
       ^

This doesn't fail the build and doesn't seem to have any harmful effect beyond the annoyance and confusion of seeing these messages, however.

jsuereth commented 11 years ago

Ah, looks like the classpath for the mojo extractor is bad. We're actually able to handle some bad compilation in the mojo extractor because we're not relying on much to be available on the classpath, but we can't prevent the warnings.

I'll see if I can figure out how to expand the classpath visible in the mojo extraction compiler.