Comments (8)
same with Resolver.file
and "foo" at "file://.."
(see sbt/sbt#4015)
from librarymanagement.
How is this a bug? The documentation (https://www.scala-sbt.org/1.x/docs/Resolvers.html) says:
Maven
Resolvers for Maven2 repositories are added as follows:
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
from librarymanagement.
how is it not a bug? in both cases you're trying to define a resolver for a maven repository. why does one work and the other not?
also note that the very same page you link says:
These are basic examples that use the default Maven-style repository layout.
[...]URL
Define a URL repository at "https://example.org/repo-releases/".
resolvers += Resolver.url("my-test-repo", url("https://example.org/repo-releases/"))
(https://www.scala-sbt.org/1.x/docs/Resolvers.html#URL)
from librarymanagement.
Resolver.url
defines an Ivy repository. Maven repos are statically different type - https://github.com/sbt/librarymanagement/blob/1.x/core/src/main/contraband-scala/sbt/librarymanagement/MavenRepository.scala
from librarymanagement.
Resolver.url
defines an Ivy repository.
where is that stated?
the type signature states it defines a URL repository. it accepts patterns of which there is a mavenStylePatterns
, which also the defaultPatterns
and the implicit Patterns
value in implicit scope.
from librarymanagement.
Custom
sbt provides an interface to the repository types available in Ivy: file, URL, SSH, and SFTP.
There's more to Maven emulation than layout internal to both sbt and Ivy.
from librarymanagement.
There's more to Maven emulation than layout internal to both sbt and Ivy.
where is that stated?
this is way to easy to do wrong and the fact that it's wrong is not obvious.
from librarymanagement.
Not sure if these implementation details are stated but there are things like sbt/sbt#2172 and more stuff on the Ivy side.
from librarymanagement.
Related Issues (20)
- False positive on eviction warning for sbt 1.x modules
- IllegalArgumentException: compiler-bridge.jar not compiled when "sbt.ManagedChecksums" is null HOT 1
- CrossVersion.Disabled is not a subtype of CrossVersion HOT 2
- "unresolved dependencies" should not log a stack trace HOT 6
- lm is broken in 1.1.x HOT 4
- ModuleResolversTest is flaky HOT 1
- OfflineModeSpec is flaky
- "Comparing unrelated types: String and ConfigRef" in CachedResolutionResolveEngine.scala HOT 1
- Enable using external/native axel or aria2c as downloader HOT 1
- Apparent unbounded parallel download of all artifacts at once HOT 2
- Tests jar are no longer published on maven HOT 1
- Clarify licensing HOT 2
- cached resolution: mockito tests broken HOT 4
- Inconsistent log level of eviction warning summary HOT 1
- Developer entity email is mandatory but in reality it is optional HOT 1
- Requests for nonexistent jar artifacts when packaging is pom HOT 1
- Custom HTTP client
- io dependency bump
- Not possible to add pluginRepositories to the pom file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librarymanagement.