# Compile with maven plugin fails

**URL:** <https://discuss.kotlinlang.org/t/compile-with-maven-plugin-fails/2026>\
**Category:** Uncategorized\
**Created:** [October 9, 2016, 5:40am UTC](https://discuss.kotlinlang.org/t/compile-with-maven-plugin-fails/2026 "2016-10-09T05:40:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gubber](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@gubber](https://discuss.kotlinlang.org/u/gubber)\
**Post date:** [October 9, 2016, 5:40am UTC](https://discuss.kotlinlang.org/t/compile-with-maven-plugin-fails/2026/1 "2016-10-09T05:40:36Z")

</div>

I have multi modules project.  
 ![](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/6/622e7cb9463dbdf96d0fe2237639594fd52461ae.PNG)  
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](http://maven.apache.org/POM/4.0.0)” xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)”  
> xsi:schemaLocation=“[http://maven.apache.org/POM/4.0.0](http://maven.apache.org/POM/4.0.0) [http://maven.apache.org/xsd/maven-4.0.0.xsd](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.

---

<div class="post-metadata">

**Author:** ![gubber](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@gubber](https://discuss.kotlinlang.org/u/gubber)\
**Post date:** [October 9, 2016, 9:12am UTC](https://discuss.kotlinlang.org/t/compile-with-maven-plugin-fails/2026/2 "2016-10-09T09:12:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![neilg](https://avatars.discourse-cdn.com/v4/letter/n/fbc32d/32.png) [@neilg](https://discuss.kotlinlang.org/u/neilg)\
**Post date:** [October 10, 2016, 12:46pm UTC](https://discuss.kotlinlang.org/t/compile-with-maven-plugin-fails/2026/3 "2016-10-10T12:46:52Z")

</div>

How did you produce the diagram in the screenshot?

It looks useful.

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

Thanks,

Neil

---

<div class="post-metadata">

**Author:** ![gubber](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@gubber](https://discuss.kotlinlang.org/u/gubber)\
**Post date:** [February 25, 2017, 6:04pm UTC](https://discuss.kotlinlang.org/t/compile-with-maven-plugin-fails/2026/4 "2017-02-25T18:04:37Z")

</div>

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