aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

How do you rename CDK Main App class in Java

Open andybirenzi opened this issue 6 years ago • 2 comments

I used CDK Init to create my application in Java, Once the application was created, I tried to rename the class and the package that was created, then ran mvn clean compile, it compiled successfully but when I run cdk synth or deploy, I get an error referencing to the old class name.

Am I missing something? How would you rename the main application?


This is a 📕 documentation issue

andybirenzi avatar Dec 26 '19 04:12 andybirenzi

@andybirenzi - You will need to update the "mainClass" in the pom.xml to reflect your changes.

michaelbrewer avatar Dec 27 '19 01:12 michaelbrewer

Thank you! It worked fine

andybirenzi avatar Dec 27 '19 16:12 andybirenzi