DataONEorg / hashstore-java

HashStore, a hash-based object store for DataONE data packages
Apache License 2.0
1 stars 0 forks source link

HashStore `.jar` file contains too many dependencies #67

Closed doulikecookiedough closed 3 months ago

doulikecookiedough commented 3 months ago

When the HashStore shaded .jar file is generated, it contains too many dependencies.

Investigate the maven setup so that we only include the necessary libraries.

doulikecookiedough commented 3 months ago

This has been completed via Feature-67: HashStore .jar File Update

To clarify, it is okay that two .jar files have been created. However, the one with dependencies should have the name shaded as part of the .jar file name.

Only two lines were required to have maven package the project as expected under the relevant plugin, below for quick reference:

...
    <configuration>
        <outputFile>${basedir}/target/${project.name}-${project.version}-shaded.jar</outputFile>
        <outputDirectory>${basedir}</outputDirectory>
        ...
    <configuration>
...