Skip to content

Commit

Permalink
[4269] REadme with instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Cox committed Jun 25, 2024
1 parent 1d7ac33 commit 827ef2b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions sams-profile-test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Adhoc demo of issue with settings.xml's activeProfile

```sh
mvn -f parent/pom.xml install
mvn -f recipe/pom.xml install
```

# Does not work (active profile)

```sh
mvn -s does-not-work-settings.xml -e org.openrewrite.maven:rewrite-maven-plugin:run \
-Drewrite.exportDatatables=true -Drewrite.recipeArtifactCoordinates=com.myorg.recipes:recipe:0.1.0-SNAPSHOT \
-Drewrite.activeRecipes=org.openrewrite.FindParseFailures,com.myorg.MyRecipe
```

# Works (no active profile)

```sh
mvn -s works-settings.xml -e org.openrewrite.maven:rewrite-maven-plugin:run \
-Drewrite.exportDatatables=true -Drewrite.recipeArtifactCoordinates=com.myorg.recipes:recipe:0.1.0-SNAPSHOT \
-Drewrite.activeRecipes=org.openrewrite.FindParseFailures,com.myorg.MyRecipe
```

0 comments on commit 827ef2b

Please sign in to comment.