Set Maven project packaging
Sets the packaging type of Maven projects. Either adds the packaging tag if it is missing or changes its context if present.
- groupId: org.openrewrite
- artifactId: rewrite-maven
- version: 8.6.0
This recipe has required configuration parameters. Recipes with required configuration parameters cannot be activated directly. To activate this recipe you must create a new recipe which fills in the required parameters. In your
rewrite.ymlcreate a new recipe with a unique name. For example:
com.yourorg.ChangePackagingExample. Here's how you can define and customize such a recipe within your rewrite.yml:
displayName: Set Maven project packaging example
com.yourorg.ChangePackagingExamplehas been defined activate it in your build file:
- 1.Add the following to your
mvn rewrite:runto run the recipe.
The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.