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

Readme is misleading #25

Closed
Sciss opened this issue Feb 15, 2012 · 4 comments
Closed

Readme is misleading #25

Sciss opened this issue Feb 15, 2012 · 4 comments
Labels

Comments

@Sciss
Copy link

Sciss commented Feb 15, 2012

I'm using sbt for a pure java project. Sources are in src/main/java and they get properly compiled and packaged by sbt's compile and package tasks. However, when I run assembly, only my dependencies (libraries) and up in the assembly jar, while the main project's classes are missing. Is this a bug? Can I work around this?

@Sciss
Copy link
Author

Sciss commented Feb 15, 2012

Might this be related to having assembleArtifact in packageBin := false ? the docs say that excludes sources, but maybe it excludes target/classes as well?

The problem I get when I remove this setting, is that resources from src/main/resources produce an error:

[error] {file:/Users/hhrutz/Documents/devel/SwingOSC/}default-815bb4/*:assembly: java.util.zip.ZipException: duplicate entry: GUIUtilStrings.properties

...

@Sciss
Copy link
Author

Sciss commented Feb 15, 2012

I got it working now. Indeed I had duplicate properties files from a library; still, I think you need to correct in the readme assembleArtifact in packageBin := false to assembleArtifact in packageSrc := false to exclude sources?

@eed3si9n
Copy link
Member

I guess what I meant to say was to exclude class files that came from your sources as opposed to deps. How should I phrase it?

@Sciss
Copy link
Author

Sciss commented Feb 15, 2012

"exclude the class files from the main sources?"

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

No branches or pull requests

2 participants