Maven module dependency issue

Answered

Hello,

I just started to use Maven with IDEA and I have the following problem.

I have 3 modules in my project :  core, processor, test. I added a dependency  of core in test and the core module is available only in src/main/java folder of test module. If i create any other package in test module I can't use core module in that package. I added a Screenshot with the pom.xml of test module and the project structure. So in my project  core module is not available in User.java, but it's available in Main.java and Pojo.java.

0
3 comments

Please share a sample project to reproduce the problem. Does it build fine in the command line?

0
Avatar
Permanently deleted user

I added the project here https://github.com/andrev18/PP-Project

After some testing I found out that the problem is not the module dependency but that I don't have project visibility to other classes that are in packages with higher hierarchy than the current selected package. This happens in every module.

0
Avatar
Permanently deleted user

I found out why this happens  http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4989710 .

Sorry for disturbance  :) .

0

Please sign in to leave a comment.