Wednesday, December 25, 2019

How to build uber jar (far jar) with Maven

Example below shows how to build uber jar with Maven


<!-- building uber jar --><plugin>
    <artifactId>maven-assembly-plugin</artifactId>
    <version>3.1.0</version>
    <configuration>
        <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
        </descriptorRefs>
        <outputDirectory>${basedir}/path/to/output/directory</outputDirectory>
        <!-- false to keep the original output jar name -->
        <appendAssemblyId>false</appendAssemblyId>
    </configuration>
    <executions>
        <execution>
            <id>make-assembly</id> <!-- this is used for inheritance merges -->            <phase>package</phase> <!-- bind to the packaging phase -->            <goals>
                <goal>single</goal>
            </goals>
        </execution>
    </executions>
</plugin>


Done!!

14 comments:

  1. I'm cheerful I found this blog! Every now and then, understudies need to psychologically the keys of beneficial artistic articles forming. Your information about this great post can turn into a reason for such individuals.
    pmp certification in malaysia

    ReplyDelete
  2. On the off chance that your searching for Online Illinois tag sticker restorations, at that point you have to need to go to the privileged place. data science course in delhi

    ReplyDelete
  3. I was looking at a portion of your posts on this site and I consider this site is really enlightening! Keep setting up..
    360DigiTMG big data analytics training in malaysia

    ReplyDelete
  4. You totally coordinate our desire and the assortment of our data.
    HRDF Claimable

    ReplyDelete
  5. i am for the first time here. I found this board and I in finding It truly helpful & it helped me out a lot. I hope to present something back and help others such as you helped me.
    data science training in hyderabad

    ReplyDelete
  6. Wow, What a Excellent post. I rceally found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thankdata science courses

    ReplyDelete
  7. The writer has outdone himself this time. It is not at all enough; the website is also utmost perfect. I will never forget to visit your site again and again. samcart

    ReplyDelete
  8. This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up.
    Best Institute for Data Science in Hyderabad

    ReplyDelete
  9. I can set up my new idea from this post. It gives in depth information. Thanks for this valuable information for all,..
    business analytics course

    ReplyDelete
  10. I've read this post and if I could I desire to suggest you some interesting things or suggestions. Perhaps you could write next articles referring to this article. I want to read more things about it!
    Data Analytics courses

    ReplyDelete
  11. Really Nice Information It's Very Helpful All courses Checkout Here.
    digital marketing course in aurangabad

    ReplyDelete
  12. Informative article. Thanks for sharing with us.keep it up.
    ai course

    ReplyDelete

LinkWithin

Related Posts Plugin for WordPress, Blogger...