ceylon-ide-intellij icon indicating copy to clipboard operation
ceylon-ide-intellij copied to clipboard

Maven Ceylon/Java project does not work in IJ

Open FroMage opened this issue 8 years ago • 1 comments

Checkout the test project from https://github.com/FroMage/ceylon-maven-test

You will need the latest Ceylon distrib on master, and then check out https://github.com/ceylon/ceylon-maven-repo and run mvn install in it. This will publish the 1.3.2-SNAPSHOT distrib in your local Maven repo.

Now check out https://github.com/ceylon/ceylon-maven-plugin and run mvn -Dceylon.home=.../ceylon/dist/dist install, making sure to make it point to your Ceylon distrib. This will publish the Maven Ceylon plugins in your local repo.

Now open the test project and see why it doesn't build?

FroMage avatar Jan 24 '17 11:01 FroMage

I fixed an issue with src/main/ceylon not being recognized correctly as a source directory, and now I have this somewhat expected error:

cannot find module source artifact 'maven:com.mycompany.app:my-app-java-1.0-SNAPSHOT(.jar|.src|.car|.js)'
	- dependency tree: 'com.mycompany.app.ceylon/1.0-SNAPSHOT' -> 'com.mycompany.app:my-app-java/1.0-SNAPSHOT'

Which makes sense because I've haven't built the project yet, and Ceylon doesn't know how to depend on source projects, it always needs a binary archive.

bjansen avatar Jan 30 '17 10:01 bjansen