Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Java sources not in classpath into multi-module project (maven)

$
0
0

Hi,

I have this scenario:

I have a project (maven) that has it's own dependencies.

From project structure, I added two projects (maven) as modules, I deleted old maven dependencies  and moved up the modules in the dependencies list.

It correctly compile and work, but I have a problem when I make a unit test with gwt test. Running the test it gives this error:

 

2014-05-15 01:00:23 ERROR GwtTreeLogger:58 - Unable to find type 'my.package.MyClass'

2014-05-15 01:00:23 ERROR GwtTreeLogger:58 - Hint: Check that the type name 'my.package.MyClass' is really what you meant

2014-05-15 01:00:23 ERROR GwtTreeLogger:58 - Hint: Check that your classpath includes all required source roots

 

Looking at the classpath it doesn't seem to include src path, and gwt test needs the sources.

I added the dir to classpath manually copying the classpath from junit output, in run configuration for the test, and it works, but it's not so confortable.

Is there a way so IDEA includes sources in classpath by itself?

 

Thanks for help


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>