# Kotlin-project: broken maven dependencies

**URL:** <https://discuss.kotlinlang.org/t/kotlin-project-broken-maven-dependencies/1187>\
**Category:** Uncategorized\
**Created:** [May 4, 2012, 8:30am UTC](https://discuss.kotlinlang.org/t/kotlin-project-broken-maven-dependencies/1187 "2012-05-04T08:30:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![artspb](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/artspb/32/1627_2.png) [@artspb](https://discuss.kotlinlang.org/u/artspb)\
**Post date:** [May 4, 2012, 8:30am UTC](https://discuss.kotlinlang.org/t/kotlin-project-broken-maven-dependencies/1187/1 "2012-05-04T08:30:31Z")

</div>

I cloned latest Kotlin source code from github. Then I tried to compile kotlin-project with maven but got error:

> [ERROR] Failed to execute goal on project kotlin-maven-plugin: Could not resolve dependencies for project org.jetbrains.kotlin:kotlin-maven-plugin:maven-plugin:0.1-SNAPSHOT: The following artifacts could not be resolved: org.jetbrains.kotlin:kotlin-compiler:jar:0.1-SNAPSHOT, org.jetbrains.kotlin:intellij-core:jar:0.1-SNAPSHOT, org.jetbrains.kotlin:intellij-annotations:jar:0.1-SNAPSHOT, org.jetbrains.kotlin:kotlin-build-tools:jar:0.1-SNAPSHOT, org.jetbrains.kotlin:trove4j:jar:0.1-SNAPSHOT, org.jetbrains.kotlin:picocontainer:jar:0.1-SNAPSHOT, org.jetbrains.kotlin:dartc:jar:0.1-SNAPSHOT: Could not find artifact org.jetbrains.kotlin:kotlin-compiler:jar:0.1-SNAPSHOT -\> [Help 1]

How I can fix it? Thanks.

---

<div class="post-metadata">

**Author:** ![shalupov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/shalupov/32/1589_2.png) [@shalupov](https://discuss.kotlinlang.org/u/shalupov)\
**Post date:** [May 4, 2012, 2:12pm UTC](https://discuss.kotlinlang.org/t/kotlin-project-broken-maven-dependencies/1187/2 "2012-05-04T14:12:05Z")

</div>

After building kotlin compiler, run mvn install in libraries folder. That will (among other things) install compiler artifacts into local maven repository.

---

<div class="post-metadata">

**Author:** ![artspb](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/artspb/32/1627_2.png) [@artspb](https://discuss.kotlinlang.org/u/artspb)\
**Post date:** [May 4, 2012, 2:50pm UTC](https://discuss.kotlinlang.org/t/kotlin-project-broken-maven-dependencies/1187/3 "2012-05-04T14:50:20Z")

</div>

Thank you. But why this artifacts not in common Kotlin repo?

---

<div class="post-metadata">

**Author:** ![shalupov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/shalupov/32/1589_2.png) [@shalupov](https://discuss.kotlinlang.org/u/shalupov)\
**Post date:** [May 4, 2012, 3:05pm UTC](https://discuss.kotlinlang.org/t/kotlin-project-broken-maven-dependencies/1187/4 "2012-05-04T15:05:02Z")

</div>

Because you've just built it by calling ant on build.xml. You need to install that version to local maven repository to be able to build libraries (maven plugin, kdoc, etc)
