Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove target/*.jar from source #2

Open
anujsrc opened this issue Sep 24, 2014 · 0 comments
Open

Remove target/*.jar from source #2

anujsrc opened this issue Sep 24, 2014 · 0 comments

Comments

@anujsrc
Copy link
Contributor

anujsrc commented Sep 24, 2014

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-

  1. It always results in a conflict when you pull latest changes and only way to resolve is to discard your file.
  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant