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

Chainbox has too many duplicate jars after compiling #8

Open
nmschorr opened this issue Oct 10, 2019 · 2 comments
Open

Chainbox has too many duplicate jars after compiling #8

nmschorr opened this issue Oct 10, 2019 · 2 comments

Comments

@nmschorr
Copy link

nmschorr commented Oct 10, 2019

My chainbox directory right now has 1,551 jar files in it. That's one thousand, five-hundred and fifty-one jars. Most are in the .NULS2.0 directory.
Including the .NULS2.0 directory after compilations, my chainbox directory ended up with:

Count Jar Name
23 nuls-core-rockdb-1.0.0-SNAPSHOT.jar
25 rocksdbjni-6.2.2.jar
27 activation-1.1.1.jar
27 jaxb-api-2.3.0.jar
27 nuls-base-1.0.0-SNAPSHOT.jar
27 nuls-core-rpc-1.0.0-SNAPSHOT.jar
29 commons-logging-1.1.1.jar
30 markdowngenerator-1.3.1.1.jar
30 netty-all-4.1.33.Final.jar
30 nuls-core-1.0.0-SNAPSHOT.jar
34 animal-sniffer-annotations-1.17.jar
34 asm-7.1.jar
34 bcprov-jdk15on-1.62.jar
34 cglib-3.2.12.jar
34 checker-qual-2.5.2.jar
34 commons-codec-1.11.jar
34 commons-net-3.6.jar
34 error_prone_annotations-2.2.0.jar
34 failureaccess-1.0.1.jar
34 guava-27.0.1-jre.jar
34 hamcrest-core-1.3.jar
34 ini4j-0.5.4.jar
34 j2objc-annotations-1.1.jar
34 jackson-annotations-2.9.9.jar
34 jackson-core-2.9.9.jar
34 jackson-databind-2.9.9.jar
34 jackson-jaxrs-base-2.9.9.jar
34 jackson-jaxrs-json-provider-2.9.9.jar
34 jackson-module-afterburner-2.9.9.jar
34 jackson-module-jaxb-annotations-2.9.9.jar
34 jsr305-3.0.2.jar
34 junit-4.12.jar
34 listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
34 logback-access-1.2.3.jar
34 logback-classic-1.2.3.jar
34 logback-core-1.2.3.jar
34 slf4j-api-1.7.26.jar

####For example, here's a listing for one of the jars:
./NULS_WALLET/Modules/Nuls/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/common/nuls-base-api-provider/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/common/nuls-base-protocol-update/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/common/nuls-core-rpc/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-account/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-api/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-block/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-chain-manager/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-cmd-client/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-consensus/economic-model/base-economic/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-consensus/economic-model/nuls-economic/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-consensus/economic-model/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-consensus/nuls-consensus-poc/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-consensus/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-cross-chain/base-lib/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-cross-chain/cross-chain/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-cross-chain/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-ledger/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-network/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-protocol-update/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-public-service/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-smart-contract/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/nuls-transaction/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/module/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/test/mykernel/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/test/nuls-test/target/libs/nuls-base-1.0.0-SNAPSHOT.jar
./.NULS2.0/test/target/libs/nuls-base-1.0.0-SNAPSHOT.jar

@nmschorr
Copy link
Author

Here's how to count them: 0) run 'package' from the chainbox example directory

  1. cd up one level to the nuls-chainbox after running 'package'
  2. find the jars there and below:
    /nuls-chainbox-> find . -name *jar >../jars.after.package
  3. Count them:
    /nuls-chainbox-> wc -l ../jars.after.package
    133 ../jars.after.package

-- after step one we have: 133 jars.

  1. Next step: run the 2nd round of compiles:
    /nuls-chainbox-> tools -p example

  2. find the jars there and below:
    /nuls-chainbox-> find . -name *jar >../jarsTwo

  3. count them:
    /nuls-chainbox-> wc -l ../jarsTwo

-- after step two we have: 1545 ../jarsTwo
The bug report said 1551 jars - but that included the jars I added for the hackathon. The 1545 was run today on a clean clone of Chainbox.

  1. awk '{print $NF}' FS=/ jarsTwo | sort > jars.column
  2. uniq --count jars.column | sort -n -r > jars.total

Files counts for more than ten:
34 slf4j-api-1.7.26.jar
34 logback-core-1.2.3.jar
34 logback-classic-1.2.3.jar
34 logback-access-1.2.3.jar
34 listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
34 junit-4.12.jar
34 jsr305-3.0.2.jar
34 jackson-module-jaxb-annotations-2.9.9.jar
34 jackson-module-afterburner-2.9.9.jar
34 jackson-jaxrs-json-provider-2.9.9.jar
34 jackson-jaxrs-base-2.9.9.jar
34 jackson-databind-2.9.9.jar
34 jackson-core-2.9.9.jar
34 jackson-annotations-2.9.9.jar
34 j2objc-annotations-1.1.jar
34 ini4j-0.5.4.jar
34 hamcrest-core-1.3.jar
34 guava-27.0.1-jre.jar
34 failureaccess-1.0.1.jar
34 error_prone_annotations-2.2.0.jar
34 commons-net-3.6.jar
34 commons-codec-1.11.jar
34 checker-qual-2.5.2.jar
34 cglib-3.2.12.jar
34 bcprov-jdk15on-1.62.jar
34 asm-7.1.jar
34 animal-sniffer-annotations-1.17.jar
30 nuls-core-1.0.0-SNAPSHOT.jar
30 netty-all-4.1.33.Final.jar
30 markdowngenerator-1.3.1.1.jar
29 commons-logging-1.1.1.jar
27 nuls-core-rpc-1.0.0-SNAPSHOT.jar
27 nuls-base-1.0.0-SNAPSHOT.jar
27 jaxb-api-2.3.0.jar
27 activation-1.1.1.jar
25 rocksdbjni-6.2.2.jar
23 nuls-core-rockdb-1.0.0-SNAPSHOT.jar
11 nuls-base-protocol-update-1.0.0-SNAPSHOT.jar

@nmschorr
Copy link
Author

jarsTwoSorted.txt
This is a list of the duplicate jars so you can see where they are located.

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