I'm working on this project in my firm and I'm facing this issue on a jenkins deployment pipeline. I have a java component, whose packaging type is pom, and under it I have another java component whose packaging type is ear.
Now when I trigger the jenkins build it throws error
Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.2:prepare on project : Cannot prepare the release because you have local modifications-
child-component/src/main/application/META-INF/application.xml
The problem is we are changing something in application.xml dynamically based on a version. Hence I don't know how to fix this issue?
I took help from this answer but i wonder if we exclude application.xml from checking modifications whether dynamic changes will be pushed under final packaging or not?