IDEA, pom.xml and Kotlin

Answered

I am newbe to IDEA, Kotlin and Maven.
Previously, I wrote a little in JAVA in the Eclipse environment, and I did everything only in it. Now I decided to use the correct approach and tried Maven. I wrote ‘pom.xml’, I managed to build the JAR and even managed to configure ‘pom.xml’ which tells to Maven write info about the class, which should run.

Now I am trying to import this pom.xml into IDEA. It was imported normally at first, but on run I got the message: “No tests were found”. I commented out all mentions of JUnit in pom.xml and now on import I have no runnable configs and I don’t understand very well what and how I need to configure in order to run my project as usual JVM application.

IDEA is very hard to understand for me after MSVC :).

Could you take a look at my pom.xml and suggest what should be changed in it to could I launch my application right away?

PS As I understand it, the * .iml file, like the .idea directory, should not be placed under control SCM. Or is it just the .idea directory?

I can’t find how to insert my pom.xml into message, so I will put only link to it.

http://files.rsdn.org/2511/pom.xml 

0
2 comments

See https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 regarding sharing the project files.

See https://www.jetbrains.com/help/idea/running-applications.html for the details how you can run your applications in IntelliJ IDEA.

If the issue persists, please share a complete sample project and describe what exactly doesn't work with it: https://uploads.jetbrains.com.

1
Avatar
Permanently deleted user

Thanks, Serge!

Second page was very useful for me. After running fun main IDEA automatically createв kotlin run configuration.

0

Please sign in to leave a comment.