Iam unable to create the war file in target directory, with the given pom.xml, which has both "maven-war-plugin" and "spring-boot-maven-plugin" plugins.
FYI: Iam using STS IDE to build the war.
Please find the error below, which Iam encountering. Appreciate your help.
--- maven-war-plugin:3.2.2:exploded (war-exploded) @ aws-elastic-beanstalk-example-2 ---
[INFO] Exploding webapp
[INFO] Assembling webapp [aws-elastic-beanstalk-example-2] in [C:\prasad\project\STPSPA\aws-beanstalk-example-2-master\target\deploy]
[INFO] Processing war project
[INFO] Building jar: C:\prasad\project\STPSPA\aws-beanstalk-example-2-master\target\deploy\WEB-INF\lib\aws-elastic-beanstalk-example-2-0.0.1-SNAPSHOT.jar
[INFO] Webapp assembled in [305 msecs]
[INFO]
[INFO] --- spring-boot-maven-plugin:2.1.3.RELEASE:repackage (repackage) @ aws-elastic-beanstalk-example-2 ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.131 s
[INFO] Finished at: 2019-04-03T11:20:37-05:00
[INFO] Final Memory: 38M/334M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.3.RELEASE:repackage (repackage) on project aws-elastic-beanstalk-example-2: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.1.3.RELEASE:repackage failed: Source must refer to an existing file, got C:\prasad\project\STPSPA\aws-beanstalk-example-2-master\target\classes -> [Help 1]
[ERROR]