# Adding JAR libraries with multiple dependencies

**URL:** <https://dev.lucee.org/t/adding-jar-libraries-with-multiple-dependencies/1118>\
**Category:** google-group-archive\
**Created:** [June 29, 2016, 12:38pm UTC](https://dev.lucee.org/t/adding-jar-libraries-with-multiple-dependencies/1118 "2016-06-29T12:38:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rupert\_Rawnsley](https://dev.lucee.org/user_avatar/dev.lucee.org/rupert_rawnsley/32/346_2.png) [@Rupert\_Rawnsley](https://dev.lucee.org/u/Rupert_Rawnsley)\
**Post date:** [June 29, 2016, 12:38pm UTC](https://dev.lucee.org/t/adding-jar-libraries-with-multiple-dependencies/1118/1 "2016-06-29T12:38:28Z")

</div>

I would like to use the AWS Java SDK library in my Lucee application. In  
Railo I dropped the .jar file and all it’s 18 dependent .jar files in the  
WEB-INF/lib folder, but is there a better way in Lucee?

For instance, can I declare a dependency using Maven OSGi  
[https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-osgi/1.11.11](https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-osgi/1.11.11) somewhere  
in my configuration files?

---

<div class="post-metadata">

**Author:** ![markdrew](https://dev.lucee.org/user_avatar/dev.lucee.org/markdrew/32/78_2.png) [@markdrew](https://dev.lucee.org/u/markdrew)\
**Post date:** [June 29, 2016, 12:43pm UTC](https://dev.lucee.org/t/adding-jar-libraries-with-multiple-dependencies/1118/2 "2016-06-29T12:43:30Z")

</div>

Not really an answer here but if you are doing this I would suggest wrapping it up as an extension and then you can do something useful for the rest of the community as well as yourself.

You can then do tags/functions that call the api (as you are probably going to do so anyway!)

Here is a starter (not quite a tutorial) [Extensions in Lucee 5 :: Lucee Documentation](http://docs.lucee.org/guides/lucee-5/extensions.html) [http://docs.lucee.org/guides/lucee-5/extensions.html](http://docs.lucee.org/guides/lucee-5/extensions.html)

Regards  
Mark Drew\> On 29 Jun 2016, at 13:38, Rupert Rawnsley \<@Rupert\_Rawnsley\> wrote:

> I would like to use the AWS Java SDK library in my Lucee application. In Railo I dropped the .jar file and all it’s 18 dependent .jar files in the WEB-INF/lib folder, but is there a better way in Lucee?
> 
> For instance, can I declare a dependency using Maven OSGi [https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-osgi/1.11.11](https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-osgi/1.11.11) somewhere in my configuration files?
> 
> ## – Win a ticket to dev.objective from Lucee via Twitter, see [http://bit.ly/1UbTMWj](http://bit.ly/1UbTMWj) [http://bit.ly/1UbTMWj](http://bit.ly/1UbTMWj) for details, good luck and see you there…
> 
> You received this message because you are subscribed to the Google Groups “Lucee” group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [lucee+unsubscribe@googlegroups.com](mailto:lucee+unsubscribe@googlegroups.com) [mailto:lucee+unsubscribe@googlegroups.com](mailto:lucee+unsubscribe@googlegroups.com).  
> To post to this group, send email to [lucee@googlegroups.com](mailto:lucee@googlegroups.com) [mailto:lucee@googlegroups.com](mailto:lucee@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/lucee/b9e08da7-b259-4e9f-bfba-421e9689d44a%40googlegroups.com](https://groups.google.com/d/msgid/lucee/b9e08da7-b259-4e9f-bfba-421e9689d44a%40googlegroups.com) [https://groups.google.com/d/msgid/lucee/b9e08da7-b259-4e9f-bfba-421e9689d44a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/lucee/b9e08da7-b259-4e9f-bfba-421e9689d44a%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Rupert\_Rawnsley](https://dev.lucee.org/user_avatar/dev.lucee.org/rupert_rawnsley/32/346_2.png) [@Rupert\_Rawnsley](https://dev.lucee.org/u/Rupert_Rawnsley)\
**Post date:** [June 30, 2016, 9:56am UTC](https://dev.lucee.org/t/adding-jar-libraries-with-multiple-dependencies/1118/3 "2016-06-30T09:56:44Z")

</div>

Thanks Mark. Bundling the libs and the tags together does make sense; I’ll  
look to do this during my next refactoring cycle.On Wednesday, 29 June 2016 13:43:33 UTC+1, Mark Drew wrote:

> Not really an answer here but if you are doing this I would suggest  
> wrapping it up as an extension and then you can do something useful for the  
> rest of the community as well as yourself.
> 
> You can then do tags/functions that call the api (as you are probably  
> going to do so anyway!)
> 
> Here is a starter (not quite a tutorial)  
> [Extensions in Lucee 5 :: Lucee Documentation](http://docs.lucee.org/guides/lucee-5/extensions.html)
> 
> Regards  
> Mark Drew
> 
> On 29 Jun 2016, at 13:38, Rupert Rawnsley \<[rupert....@gmail.com](mailto:rupert....@gmail.com) \<javascript:\>\> wrote:
> 
> I would like to use the AWS Java SDK library in my Lucee application. In  
> Railo I dropped the .jar file and all it’s 18 dependent .jar files in the  
> WEB-INF/lib folder, but is there a better way in Lucee?
> 
> For instance, can I declare a dependency using Maven OSGi  
> [https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-osgi/1.11.11](https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-osgi/1.11.11) somewhere  
> in my configuration files?
> 
> ## – Win a ticket to dev.objective from Lucee via Twitter, see [http://bit.ly/1UbTMWj](http://bit.ly/1UbTMWj) for details, good luck and see you there…
> 
> You received this message because you are subscribed to the Google Groups  
> “Lucee” group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [lucee+un...@googlegroups.com](mailto:lucee+un...@googlegroups.com) \<javascript:\>.  
> To post to this group, send email to [lu...@googlegroups.com](mailto:lu...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/lucee/b9e08da7-b259-4e9f-bfba-421e9689d44a%40googlegroups.com](https://groups.google.com/d/msgid/lucee/b9e08da7-b259-4e9f-bfba-421e9689d44a%40googlegroups.com)  
> [https://groups.google.com/d/msgid/lucee/b9e08da7-b259-4e9f-bfba-421e9689d44a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/lucee/b9e08da7-b259-4e9f-bfba-421e9689d44a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![brent\_marquez](https://dev.lucee.org/user_avatar/dev.lucee.org/brent_marquez/32/8049_2.png) [@brent\_marquez](https://dev.lucee.org/u/brent_marquez)\
**Post date:** [October 17, 2024, 6:55am UTC](https://dev.lucee.org/t/adding-jar-libraries-with-multiple-dependencies/1118/4 "2024-10-17T06:55:29Z")

</div>

I know this is an older post, but this is exactly what I’m trying to do now. Use AWS SDK v2, but am in dependency hell and trying to track down all the JARs I need. Did you ever find an easier way to handle this situation?

---

<div class="post-metadata">

**Author:** ![Rupert\_Rawnsley](https://dev.lucee.org/user_avatar/dev.lucee.org/rupert_rawnsley/32/346_2.png) [@Rupert\_Rawnsley](https://dev.lucee.org/u/Rupert_Rawnsley)\
**Post date:** [October 17, 2024, 7:34am UTC](https://dev.lucee.org/t/adding-jar-libraries-with-multiple-dependencies/1118/5 "2024-10-17T07:34:50Z")

</div>

Unfortunately not. I still have a bunch of JARs in _/WEB-INF/lib_

 ![Screenshot 2024-10-17 at 08.34.08](https://dev.lucee.org/uploads/default/original/2X/b/b2c02793f2a956ada14e334cf3a03cbd934c608b.png)

…and this note I left myself:

```auto
Using older AWS SDK v1: https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/overview-summary.html

AWS SDK full lib is very large (>200MB) so lib files assembled manually from https://mvnrepository.com/artifact/com.amazonaws

All other AWS dependencies copied from the distribution zip file third-party/lib folder https://github.com/aws/aws-sdk-java/releases

```
