Although we ask git to ignore the /target directory through .gitignore, but we still have target/*.jar file checked-in. It results into two issues-
- It always results in a conflict when you pull latest changes and only way to resolve is to discard your file.
- When you add your changes, you always have to force git to add the file because .gitignore says not to add that. This can be avoided by not checking-in the changes to the JAR file but then you always end up with old JAR file in the repository.
Its better to remove *.jar file from source because it can anyways be built using maven. If you want to package JAR as release, better to use GitHub releases for the same.
Although we ask git to ignore the /target directory through .gitignore, but we still have target/*.jar file checked-in. It results into two issues-
Its better to remove *.jar file from source because it can anyways be built using maven. If you want to package JAR as release, better to use GitHub releases for the same.