Re: [sbt] Dependency management issue after upgrading to 0.12.2-RC2
146 views
Skip to first unread message
Mark Harrah
unread,
Jan 14, 2013, 8:48:51 PM1/14/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simple-b...@googlegroups.com
On Mon, 14 Jan 2013 15:06:52 -0800 (PST)
Drew <dr...@venarc.com> wrote:
> I just upgraded from 0.12.0 to 0.12.2-RC2 and sbt can't download the
> sources for artifacts anymore. From what I see there are two issues:
> 1. It's using the wrong file extension (.src instead of .jar)
> 2. It's looking for the artifacts in Typesafe repo instead of Maven Central
>
> Anyone has an idea what's going on?
Can you post a build file that demonstrates the problem? At a minimum, what are your dependencies and resolvers?
There are two Play 2.1 (latest from master) projects there:
app: a barebones play application that has lib as a dependency
lib: another barebones play application that is used by app
When I try to build and publish lib, everything is fine and sbt downloads the sources correctly.
But when I try to build app, I get the errors.
Thanks,
Drew
Mark Harrah
unread,
Jan 14, 2013, 10:01:52 PM1/14/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simple-b...@googlegroups.com
On Mon, 14 Jan 2013 18:15:48 -0800
Drew Kutcharian <dr...@venarc.com> wrote:
> Hi Mark,
>
> I put together a minimal configuration to demonstrate the issue: https://github.com/kutchar/sbt-deps-issue >
> There are two Play 2.1 (latest from master) projects there:
> app: a barebones play application that has lib as a dependency
> lib: another barebones play application that is used by app
>
> When I try to build and publish lib, everything is fine and sbt downloads the sources correctly.
>
> But when I try to build app, I get the errors.
Ok, thanks.
It is certainly the goal to make upgrades within 0.12.x seamless and if there is an sbt issue, we'll try to fix it. A complication might be that you upgraded to Play at the same time (nor not?) and I don't know whether things changed there.
It would help if you can make this reproducible outside of Play. I will try to reproduce it myself based on your sample so far, but I have a few other dependency management issues to look at first.
There are some other things that may or may not be related to this problem that you might do, just from an initial look.
The first one is that withSources() is generally superseded by the update-classifiers, which pulls down sources and javadocs. This task is used by the eclipse and intellij integration plugins.
One thing I would recommend is to try using the Typesafe ivy-releases repository instead of the full typesafe releases repository, which is broken. I don't know that it will fix your issue, though, and it might be defined by Play.
Next, is your company Artifactory a full proxy? If you would prefer to go through just that, you might see:
This will definitively override repositories for all plugins and libraries for a user.
-Mark
Drew Kutcharian
unread,
Jan 14, 2013, 10:38:19 PM1/14/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simple-b...@googlegroups.com
> One thing I would recommend is to try using the Typesafe ivy-releases repository instead of the full typesafe releases repository, which is broken. I don't know that it will fix your issue, though, and it might be defined by Play.
Unfortunately the Typesafe repo is defined by Play so not sure if I have control over it.
> Next, is your company Artifactory a full proxy? If you would prefer to go through just that, you might see:
No, our Artifactory is not a full proxy.
So I'm stuck trying to fix the issue. It seems like the issue is with the process that gets the dependencies for a dependency.
-- Drew
Drew Kutcharian
unread,
Jan 15, 2013, 10:54:38 PM1/15/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simple-b...@googlegroups.com
I still haven't been able to fix this, but I found that that If I remove the withSources() on lib's dependencies before publishing it (so the generated pom doesn't have any source artifacts in there), then everything works as expected when I update app.
delasoul
unread,
Jul 16, 2013, 4:58:07 AM7/16/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simple-b...@googlegroups.com
Hello,
has there been a solution for this problem? I have the same behaviour: When publishing and I have dependencies with "withSources" I end up with a pom file including: <dependency> <groupId>theGroup</groupId> <artifactId>theArtifact</artifactId> <version>1.0</version> <classifier>sources</classifier> <type>src</type> </dependency>
When using the published artifacts as dependency tasks like update, gen-idea etc.fail with