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

Overriden artifactName produces image with .jar with wrong content #638

Closed
unoexperto opened this issue Aug 2, 2015 · 2 comments
Closed

Comments

@unoexperto
Copy link

It's probably not plugin's problem per se but nevertheless it took me few hours to understand root cause.

I have overridden artifactName in my sbt config. Because of it in certain conditions (couldn't figure out combination of circumstances) docker:publishLocal produces image in which .jar with classes is overwritten by .jar with scaladoc thus causing ClassNotFound exception in runtime.

      artifactName := { (sv: ScalaVersion, module: ModuleID, artifact: Artifact) =>
        artifact.name + "." + artifact.extension
      },

It would be nice to output warning or error in publishLocal task.

@muuki88
Copy link
Contributor

muuki88 commented Aug 2, 2015

You are the first with this issue. A small scenario reproducing this would be very helpful.

@marius-carp
Copy link

marius-carp commented Oct 22, 2018

@unoexperto did you find a fix for this? It happens to me sometimes and it's annoying.

@muuki88 muuki88 closed this as completed Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants