Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRESOLVER-650] Fix demo for system properties #629

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static void main(String[] args) throws Exception {
try (RepositorySystem system = Booter.newRepositorySystem(Booter.selectFactory(args));
CloseableSession session =
Booter.newRepositorySystemSession(system).build()) {
Artifact artifact = new DefaultArtifact("org.apache.maven:maven-resolver-provider:3.6.1");
Artifact artifact = new DefaultArtifact("io.netty:netty-codec-http:4.1.114.Final");

CollectRequest collectRequest = new CollectRequest();
collectRequest.setRoot(new Dependency(artifact, ""));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static SessionBuilder newRepositorySystemSession(RepositorySystem system)
FileSystem fs = Jimfs.newFileSystem(Configuration.unix());
SessionBuilder result = new SessionBuilderSupplier(system)
.get()
.setSystemProperties(System.getProperties())
.withLocalRepositoryBaseDirectories(fs.getPath("local-repo"))
.setRepositoryListener(new ConsoleRepositoryListener())
.setTransferListener(new ConsoleTransferListener())
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<jettyVersion>10.0.24</jettyVersion>
<!-- used by supplier and demo only -->
<maven3Version>3.9.9</maven3Version>
<maven4Version>4.0.0-rc-1</maven4Version>
<maven4Version>4.0.0-rc-2</maven4Version>
<minimalMavenBuildVersion>[3.8.8,)</minimalMavenBuildVersion>
<!-- MRESOLVER-422: keep this in sync with Javadoc plugin configuration (but cannot directly, as this below is range) -->
<minimalJavaBuildVersion>[21,)</minimalJavaBuildVersion>
Expand Down
Loading