ayush / swagger-play2

Enables Swagger on Play 2.0
http://swagger.wordnik.com
18 stars 6 forks source link

Missing configuration: 'compile' #4

Closed OuchMyHead closed 12 years ago

OuchMyHead commented 12 years ago

When trying to deploy the swagger-play2 module using play publish-local I get the following dependency error:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.wordnik#swagger-core;1.1-SNAPSHOT.121130: configuration not found
in com.wordnik#swagger-core;1.1-SNAPSHOT.121130: 'default(compile)'. Missing co
nfiguration: 'compile'. It was required from swagger-play2#swagger-play2_2.9.1;1
.0.1 compile
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] {file:/C:/path/to/play-2.0/repository/local/com.word
nik/swagger-play2/}swagger-play2/*:update: sbt.ResolveException: unresolved depe
ndency: com.wordnik#swagger-core;1.1-SNAPSHOT.121130: configuration not found in
com.wordnik#swagger-core;1.1-SNAPSHOT.121130: 'default(compile)'. Missing confi
guration: 'compile'. It was required from swagger-play2#swagger-play2_2.9.1;1.0.
1 compile

To reproduce this error:

It is also worth mentioning that in the swagger-play2 Build.scala file we are expecting the swagger-core snapshot to be 1.1-SNAPSHOT.121132, not 1.1-SNAPSHOT.121130 which is being created by this version of swagger-core. Is this version depricated?

apschexn commented 12 years ago

I also have the exact issue. I had to change some scala paths that were different than the homebrew install in order to get swagger-core to install. Then I ran into this issue and do not know the resolution.

ayush commented 12 years ago

I've updated README for this with updated instructions. Essentially the branch scala-2.9.1-1 of both swagger-core and wordnik-oss need to be built before and and this works with Play2 master.

OuchMyHead commented 12 years ago

Great, thanks for the quick resolve Ayush