Unable to resolve a dependency previously published on my github pages

58 views
Skip to first unread message

Julien Richard-Foy

unread,
Apr 29, 2012, 11:41:52 AM4/29/12
to simple-b...@googlegroups.com
Hi,

I can’t find how to properly publish my code on a maven repository hosted on my github pages.

I developed a library and want to publish it on a home made maven repository. Here is my build.sbt file: https://github.com/julienrf/play-jsmessages/blob/master/jsmessages/build.sbt
I tried with and without adding a configuration “publishMavenStyle := true”, it does not change anything.

After I publish my code on my local filesystem I push it on my github pages: https://github.com/julienrf/julienrf.github.com (or http://julienrf.github.com/repo/)

Now I have a sample application which depends on my library. Here is its Build.scala file: https://github.com/julienrf/play-jsmessages/blob/master/sample/project/Build.scala

When I try to resolve the dependencies I get the following error:

$ sbt update
[info] Loading global plugins from /home/julien/.sbt/plugins
[info] Loading project definition from /home/julien/Workspace/play-jsmessages/sample/project
[info] Set current project to sample (in build file:/home/julien/Workspace/play-jsmessages/sample/)
[info] Updating {file:/home/julien/Workspace/play-jsmessages/sample/}sample...
[warn]  [NOT FOUND  ] com.github.julienrf#play-jsmessages_2.9.1;1.0!play-jsmessages_2.9.1.jar (1ms)
[warn] ==== local: tried
[warn]   /home/julien/.ivy2/local/com.github.julienrf/play-jsmessages_2.9.1/1.0/jars/play-jsmessages_2.9.1.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::              FAILED DOWNLOADS            ::
[warn]  :: ^ see resolution messages for details  ^ ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.github.julienrf#play-jsmessages_2.9.1;1.0!play-jsmessages_2.9.1.jar
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] {file:/home/julien/Workspace/play-jsmessages/sample/}sample/*:update: sbt.ResolveException: download failed: com.github.julienrf#play-jsmessages_2.9.1;1.0!play-jsmessages_2.9.1.jar
[error] Total time: 4 s, completed 29 avr. 2012 17:28:06

I don’t understand why my repository at http://julienrf.github.com/repo/ is not even tried. I looked at some other libraries of the same kind (e.g. https://github.com/mbknor/gt-engine-play2) and I could depend on them and resolve them without any problem. What did I miss? Why is my repository not well recognized?

Note: publishing locally works perfectly.

Regards,
Julien

Julien Richard-Foy

unread,
May 1, 2012, 3:56:04 AM5/1/12
to simple-b...@googlegroups.com
Please help!

Why is my repository not even tried? Do I need to add another piece of information somewhere?

Regards,
Julien

Harsha Halgaswatta

unread,
Mar 22, 2014, 10:51:07 PM3/22/14
to simple-b...@googlegroups.com
Hi Julian,

I saw your plugin and seems to be very useful.
Did you manage to publish this in the maven repository.

I can help you with that if not.

This is a small hack : do play publish-local which will publish your jars into the play-repository. 
Find those jars and rename it to any name you prefer, then manually install that jar into your maven repository (.m2/repository) using http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

Then find your jars inside .m2/repository. Get those artifacts and commit into your repository in github or maven-repo. So you will be able to use those jars afterwards.

If need further info, pls let mke know.

Harsha
Reply all
Reply to author
Forward
0 new messages