Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gen-idea fails on example/demo project #2

Closed
max-leuthaeuser opened this issue Apr 25, 2014 · 5 comments
Closed

gen-idea fails on example/demo project #2

max-leuthaeuser opened this issue Apr 25, 2014 · 5 comments

Comments

@max-leuthaeuser
Copy link

Running the following commands from your README fails:

git clone https://github.com/DCI/scaladci.git
cd scaladci/demo
sbt
gen-idea // (if you use IntelliJ)

at gen-idea with:

[error] Not a valid command: gen-idea
[error] Not a valid project ID: gen-idea
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: gen-idea
[error] gen-idea
[error]             ^

Environment used: sbt 0.13.1

@marcgrue
Copy link
Member

The plugins.sbt file was referencing gen-idea version 1.6.0-SNAPSHOT which no longer exists. I have updated it now to:

addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0")

Can you clone the demo again and see if it works now?

@max-leuthaeuser
Copy link
Author

It fails with:

[info] Creating IDEA module for project 'demo' ...
[info] Updating {file:~/scaladci/demo/}demo...
[info] Resolving org.scaladci#scaladci_2.11;0.5.1 ...
[warn]  module not found: org.scaladci#scaladci_2.11;0.5.1
[warn] ==== local: tried
[warn]   /~/.ivy2/local/org.scaladci/scaladci_2.11/0.5.1/ivys/ivy.xml
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/org/scaladci/scaladci_2.11/0.5.1/scaladci_2.11-0.5.1.pom
[warn] ==== sonatype-releases: tried
[warn]   https://oss.sonatype.org/content/repositories/releases/org/scaladci/scaladci_2.11/0.5.1/scaladci_2.11-0.5.1.pom
[info] Resolving jline#jline;2.11 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.scaladci#scaladci_2.11;0.5.1: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: org.scaladci#scaladci_2.11;0.5.1: not found
[error] Missing task key: scalaInstance
java.lang.IllegalArgumentException
[...]

@marcgrue
Copy link
Member

Silly me - haven't uploaded newest version to Sonatype yet! In the meantime: If you run sbt publish-local in the main scaladci directory (one level up from the demo) you should get an accessible version in your local repo so that the demo can run. Thanks for trying it out!
(Will get time tonight to upload to Sonatype)

@max-leuthaeuser
Copy link
Author

Ok, thanks. I will try this later on.

@marcgrue
Copy link
Member

Scaladci 2.11.0 is now published to Sonatype:
https://oss.sonatype.org/content/repositories/releases/org/scaladci/scaladci_2.11/0.5.1/
So the demo application should now run without publishing locally first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants