Compile with maven plugin fails

I have multi modules project.

Configuration - is Kotlin module.
repo - is java-language module.
core - is Kotlin language module.

When I try to compile core module. I have an error:

Unresolved reference: repo
Unresolved reference: DBConfiguration

It seems that compiler plugin doesn’t see packages from repo module.
Here my pom- file

<?xml version=“1.0” encoding=“UTF-8”?>
<project xmlns=“http://maven.apache.org/POM/4.0.0” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance
xsi:schemaLocation=“http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”>
<parent>
<artifactId>parent</artifactId>
<groupId>ru.gubber.app</groupId>
<version>1.0-SNAPSHOT</version>
<relativePath>…/parent/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>core</artifactId>
<properties>
<kotlin.version>1.0.4</kotlin.version>
</properties>
<dependencies>
<dependency>
<groupId>ru.gubber.app</groupId>
<artifactId>repo</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>${kotlin.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/kotlin</sourceDirectory>
<testSourceDirectory>src/test/kotlin</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<executions>
<execution>
<id>compile</id>
<phase>process-sources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>test-compile</id>
<phase>test-compile</phase>
<goals>
<goal>test-compile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

Where is mistake?
Compiling with Idea plugin is OK.

Ihave found the error.it was in my parent pom-file. It declares that sources is in “kotlin” folder and that’s why repo-module compiled without classes.

How did you produce the diagram in the screenshot?

It looks useful.

The diagram looks like it is in IntelliJ, but where?

Thanks,

Neil

It’s default feature of Idea. Right click on module name and then “Show dependencies”