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

Release 1.3 #175

Closed
benmccann opened this issue Jul 25, 2014 · 14 comments
Closed

Release 1.3 #175

benmccann opened this issue Jul 25, 2014 · 14 comments

Comments

@benmccann
Copy link
Contributor

We're desperately eager for a new version of jdeb to fix slf4j problems that we're having in Play Framework. I ran jdeb against sbt-native-packager's own suite of debian packing integration tests and they all passed. Given that jdeb's tests are all passing and we ran it against such an extensive set of integration tests with another project I'm fairly confident that the release will be a good one. If there are any difficulties folks can always just stay with 1.2. Having more options of versions to choose from only makes it easier for people to get a version that works for them. I'd love to do more to help if there's anything I can do. Unfortunately I don't have any ability to click the magic release button so all I can do is beg and wait :-) If it were a code issue I would gladly send a patch.

Running debian / sysvinit-deb
Running debian / log-directory
Running debian / test-mapping-helpers
Running debian / test-mapping
Running debian / daemon-user-deb
Running debian / upstart-deb
Running debian / daemon-user-shell-deb
Running debian / override-control-files
Running debian / simple-jdeb
Running debian / java-app-archetype
Running debian / systemd-deb
Running debian / gen-changes
Running debian / simple-deb
@tcurdt
Copy link
Owner

tcurdt commented Jul 25, 2014

Wanted to cut the release but came across this :-/

[INFO] --- maven-plugin-plugin:3.3:descriptor (mojo-descriptor) @ jdeb ---
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java-annotations
[WARNING] Deprecated @component for project field in org.vafer.jdeb.maven.DebMojo.: replace with @parameter name="${project}" @readonly
[WARNING] Deprecated @component for session field in org.vafer.jdeb.maven.DebMojo.: replace with @parameter name="${session}" @readonly
[INFO] Mojo extractor for language: java-annotations found 1 mojo descriptors.
line 7 column 4 - Error: <build> is not recognized!
line 8 column 6 - Error: <plugins> is not recognized!
line 9 column 8 - Error: <plugin> is not recognized!
line 10 column 8 - Error: <artifactid> is not recognized!
line 11 column 8 - Error: <groupid> is not recognized!
line 13 column 8 - Error: <configuration> is not recognized!


[WARNING] The parameter forkMode is deprecated since version 2.14. Use forkCount and reuseForks instead.
[WARNING] useSystemClassloader setting has no effect when not forking

[WARNING] bcprov-jdk15on-1.50.jar, bcpg-jdk15on-1.50.jar define 3 overlappping classes: 
[WARNING]   - org.bouncycastle.apache.bzip2.CBZip2InputStream
[WARNING]   - org.bouncycastle.apache.bzip2.CRC
[WARNING]   - org.bouncycastle.apache.bzip2.BZip2Constants
[WARNING] maven-shade-plugin has detected that some .class files
[WARNING] are present in two or more JARs. When this happens, only
[WARNING] one single version of the class is copied in the uberjar.
[WARNING] Usually this is not harmful and you can skeep these
[WARNING] warnings, otherwise try to manually exclude artifacts
[WARNING] based on mvn dependency:tree -Ddetail=true and the above
[WARNING] output
[WARNING] See http://docs.codehaus.org/display/MAVENUSER/Shade+Plugin

We might still have to do some cleanup.

@benmccann
Copy link
Contributor Author

What command did you run to cause this? Are all of these warnings new and need to be fixed or just some?

@tcurdt
Copy link
Owner

tcurdt commented Jul 26, 2014

mvn clean install site source:jar javadoc:jar
  1. The clash of the shade plugin is bad and should be tracked down.
  2. I would at least like to know what the Error: <....> is not recognized comes from/means.
  3. And Deprecated @component for project field in org.vafer.jdeb.maven.DebMojo.: replace with @parameter name="${project}" @readonly sounds like an easy fix.

@muuki88
Copy link
Contributor

muuki88 commented Jul 26, 2014

The error in 2. is cause by the javadoc here. If you remove this, the "error" disappears. The Maven-Plugin javadoc processing stuff seems to get irritated.

For 3. I'll provide I pull request.

@muuki88
Copy link
Contributor

muuki88 commented Jul 26, 2014

The clash in 1. is a bit suprising as bcpg-jdk15on-1.50 has a dependency on bcprov-jdk15on-1.50. Both are even build in the same reactor build, so this isn't a problem IMHO.

@tcurdt
Copy link
Owner

tcurdt commented Jul 26, 2014

OK, let's ignore 2) and fix 3) and let's check what classes are causing the clash.

@benmccann
Copy link
Contributor Author

I extracted the jars and checked the md5 checksum of each of the classes. The files are exactly the same in both jars:

2874d4071fec566e75f58cdd298f7ee3  ./org/bouncycastle/apache/bzip2/CBZip2InputStream.class
8f8b8e09021785f6d03eddd4d26aa588  ./org/bouncycastle/apache/bzip2/CRC.class
698ce314b17e29964df1b8ce65b22b65  ./org/bouncycastle/apache/bzip2/BZip2Constants.class

So it shouldn't matter that these files are in two jars since it will end up with the same exact version of both regardless of which jar they're loaded from. There's really no way to fix this except to fix it in the bouncy castle jars, so I've filed an issue there. Also, this issue exists in the current release of jdeb as well. The only difference is that we're now using a newer version of the shade plugin which is now printing a warning whereas it didn't print a warning before.

@tcurdt thanks so much for trying to cut a release. I think all the issues have been addressed now, but let us know if there's anything else that might block a release.

@benmccann
Copy link
Contributor Author

Ok, got a new release pushed for bouncycastle which fixes the warning being printed out related to it. Here's a pull request to fix the warning: #177

@muuki88
Copy link
Contributor

muuki88 commented Jul 28, 2014

Awesome detective work @benmccann !

@tcurdt
Copy link
Owner

tcurdt commented Jul 28, 2014

Fantastic team effort, guys 6156c86

@tcurdt
Copy link
Owner

tcurdt commented Jul 28, 2014

Just released 1.3!

@tcurdt tcurdt closed this as completed Jul 28, 2014
@muuki88
Copy link
Contributor

muuki88 commented Jul 28, 2014

Open Source rocks! :)

@tcurdt
Copy link
Owner

tcurdt commented Jul 28, 2014

amen to that :)

@benmccann
Copy link
Contributor Author

Awesome. Thank you guys so much for all the help! Really glad we could make so much progress together.

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

3 participants