Open
Description
What version of OpenRewrite are you using?
I am using
- OpenRewrite v8.44.1
- Maven Plugin 6.0.5
How are you running OpenRewrite?
Running maven plugin on a single pom.xml project.
The issue
We are attempting to use the UpdateMavenWrapper recipe to add/update the maven wrapper and specifying the follow:
type: specs.openrewrite.org/v1beta/recipe
name: com.recipe.name.Here
displayName: Add or Update Maven Wrapper
description: Add or update the Maven Wrapper for a project.
recipeList:
- org.openrewrite.maven.UpdateMavenWrapper:
wrapperDistribution: only-script
wrapperVersion: 3.3.1
addIfMissing: true
distributionVersion: 3.9.x
repositoryUrl: "https://company-hosted-artifactory-url"
We do not allow any downloads from Maven central and use an Artifactory mirror.
The problem with this recipe is that it is creating a Remote source file using repositoryUrl but has no knowledge of the credentials and fails here:
This recipe really needs to be Maven Settings-aware (and probably should be using the MavenArtifactDownloader
to download the distribution)
Metadata
Assignees
Labels
Type
Projects
Status
Backlog
Activity