diff --git a/src/main/java/de/eitco/cicd/dotnet/InitializeMojo.java b/src/main/java/de/eitco/cicd/dotnet/InitializeMojo.java index 747034d..0b60951 100644 --- a/src/main/java/de/eitco/cicd/dotnet/InitializeMojo.java +++ b/src/main/java/de/eitco/cicd/dotnet/InitializeMojo.java @@ -20,7 +20,7 @@ public void execute() throws MojoExecutionException { File localNugetRepository = getUnresolvedLocalNugetRepositoryDirectory(); - dotnetExecutor.upsertNugetSource(localNugetRepository.getPath(), localMavenNugetRepositoryName, null, null, null); + dotnetExecutor.upsertNugetSource(localNugetRepository.getPath(), localMavenNugetRepositoryName, null, null, DotnetExecutor.NugetConfigLocation.USER); for (Map.Entry entry : nugetSources.entrySet()) { String key = entry.getKey(); diff --git a/src/main/java/de/eitco/cicd/dotnet/NugetPushMojo.java b/src/main/java/de/eitco/cicd/dotnet/NugetPushMojo.java index 35a0433..7d64510 100644 --- a/src/main/java/de/eitco/cicd/dotnet/NugetPushMojo.java +++ b/src/main/java/de/eitco/cicd/dotnet/NugetPushMojo.java @@ -49,7 +49,7 @@ public void execute() throws MojoExecutionException { repository = usedRepositoryName; - dotnetExecutor.upsertNugetSource(repositoryUrl, usedRepositoryName, nugetServerUser, apiKey); + dotnetExecutor.upsertNugetSource(repositoryUrl, usedRepositoryName, nugetServerUser, apiKey, null); } dotnetExecutor.push(apiKey, repository);