Skip to content

Commit

Permalink
Fixes #254 Moves requirement for MavenSession (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykelalvis authored Jun 20, 2023
1 parent 0200298 commit 7293607
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ public HttpFileRequester build() throws MojoExecutionException {
instance.preemptiveAuth = this.preemptiveAuth;
instance.log = requireNonNull(this.log);

requireNonNull(this.mavenSession);

instance.credentialsProvider = new BasicCredentialsProvider();
if (isNotBlank(this.serverId)) {
requireNonNull(this.mavenSession);

if (this.log.isDebugEnabled()) {
this.log.debug("providing custom authentication for " + this.serverId);
}
Expand Down

0 comments on commit 7293607

Please sign in to comment.