Skip to content

Remove target/*.jar from source #2

Description

@anujsrc

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions