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

mvn deploy duplicate upload #64

Closed
jongiddy opened this issue Aug 2, 2017 · 1 comment
Closed

mvn deploy duplicate upload #64

jongiddy opened this issue Aug 2, 2017 · 1 comment

Comments

@jongiddy
Copy link
Contributor

jongiddy commented Aug 2, 2017

mvn install creates two "with-dependencies" JARs: "matcher" and "tracker". Using the mvn deploy command (after setting a remote repository) uploads both of these using the same name: com/bmw-carit/barefoot/0.1.1/barefoot-0.1.1-jar-with-dependencies.jar. Depending on the remote repository configuration, the deploy either fails or silently overwrites the first JAR.

There are several solutions to this, and I'd be happy to propose a patch, but what behaviour is desired? Simple solutions include:

  • just deploy the normal JAR and not deploy the "with-dependencies" JARs, or
  • upload one specific "with-dependencies" JAR but not the other.

A more difficult solution is to upload the JARs with their additional tags, something like com/bmw-carit/barefoot/0.1.1/barefoot-0.1.1-matcher-jar-with-dependencies.jar.

@jongiddy
Copy link
Contributor Author

jongiddy commented Aug 2, 2017

Giving the JAR files different names wasn't as hard as I thought, so I have submitted #65 as a patch.

@jongiddy jongiddy closed this as completed Aug 2, 2017
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