SBT SNAPSHOT dependency with classifiers not updating

111 views
Skip to first unread message

Michael Franz

unread,
Jan 9, 2013, 10:38:59 AM1/9/13
to simple-b...@googlegroups.com
Hi,

I have two jars one with a classifier and one without.  When a new SNAPSHOT version is published the jar with the classifier is not updated in my local Ivy cache.  I have read through the discussion of Ivy and classifiers here https://github.com/sbt/sbt/issues/285 and tried the suggestions here, but my issue still exists.

What I did.
1. setup my project dependency
libraryDependencies += "group" %% "artifactA" % "1.0.0-SNAPSHOT" withSources() classifier("test") classifier("")
2. sbt update -- project is updated and both the jars are downloaded
3. publish a new version of 'artifactA' (a different project)
4. sbt update -- updated my project that has a dependency on 'artifactA'

The result is that group-artifactA_2.9.1-1.0.0-SNAPSHOT.jar is updated, but group-artifactA_2.9.1-1.0.0-SNAPSHOT-test.jar is not.  The only way I have been able to get the 'test' to update is to actually remove the old jar and run 'sbt update'

Is there a work around for this?  Am I doing something wrong?

Any insight into this is appreciated.

Michael

Mark Harrah

unread,
Jan 11, 2013, 9:07:51 AM1/11/13
to simple-b...@googlegroups.com
Hi Michael,
Thanks for the detailed steps to reproduce. I will look into it, but what sbt version are you using? There were several cache-related fixes in 0.12.1 and there is a local repository/cache related fix in 0.12.2 (currently at RC2).

-Mark

> Any insight into this is appreciated.
>
> Michael
>
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/Rf8qKRQZSmUJ.
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
>

Michael Franz

unread,
Jan 11, 2013, 10:13:15 AM1/11/13
to simple-b...@googlegroups.com


On Friday, January 11, 2013 9:07:51 AM UTC-5, Mark Harrah wrote:
Hi Michael,

On Wed, 9 Jan 2013 07:38:59 -0800 (PST)
Michael Franz <mvf...@gmail.com> wrote:

> Hi,
>
> I have two jars one with a classifier and one without.  When a new SNAPSHOT
> version is published the jar with the classifier is not updated in my local
> Ivy cache.  I have read through the discussion of Ivy and classifiers here
> https://github.com/sbt/sbt/issues/285 and tried the suggestions here, but
> my issue still exists.
>
> What I did.
> 1. setup my project dependency
> libraryDependencies += "group" %% "artifactA" % "1.0.0-SNAPSHOT"
> withSources() classifier("test") classifier("")
> 2. sbt update -- project is updated and both the jars are downloaded
> 3. publish a new version of 'artifactA' (a different project)
> 4. sbt update -- updated my project that has a dependency on 'artifactA'
>
> The result is that group-artifactA_2.9.1-1.0.0-SNAPSHOT.jar is updated,
> but group-artifactA_2.9.1-1.0.0-SNAPSHOT-test.jar is not.  The only way I
> have been able to get the 'test' to update is to actually remove the old
> jar and run 'sbt update'
>
> Is there a work around for this?  Am I doing something wrong?

Thanks for the detailed steps to reproduce.  I will look into it, but what sbt version are you using?  
I am using 0.12.1
 
There were several cache-related fixes in 0.12.1 and there is a local repository/cache related fix in 0.12.2 (currently at RC2).

I will try to give the 0.12.2 RC2 a shot.

Mark Harrah

unread,
Jan 14, 2013, 5:23:05 PM1/14/13
to simple-b...@googlegroups.com
On Fri, 11 Jan 2013 07:13:15 -0800 (PST)
I was able to reproduce it and the issue exists with the 0.13 branch, so 0.12.2-RC2 won't help. Please open a bug and it will be scheduled to be fixed for 0.12.3 if possible.

-Mark

> > -Mark
> >
> > > Any insight into this is appreciated.
> > >
> > > Michael
> > >
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/eC653ZsT25sJ.

Michael Franz

unread,
Jan 15, 2013, 8:09:36 AM1/15/13
to simple-b...@googlegroups.com
Issue #641 has been created. 
Reply all
Reply to author
Forward
0 new messages