From 6be61e0fff9092dee9d8ab557a6aec55976a37a1 Mon Sep 17 00:00:00 2001 From: Jonathan Giles Date: Mon, 14 May 2018 12:15:20 -0700 Subject: [PATCH] Updating 3rd party libraries text (#102) --- README.md | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/README.md b/README.md index 8f00ecf7..ae502b6d 100644 --- a/README.md +++ b/README.md @@ -33,42 +33,7 @@ public class MyClass { ### Including 3rd Party Libraries -Azure Functions supports the use of 3rd party libraries. This is achieved by extending your build script to copy all dependencies to a lib folder in the function's root directory, which will then be deployed as part of your functions application. All dependencies that are placed in the `lib` directory will be added to the system class loader at runtime. - -Adding the following to your Maven `pom.xml` will copy all your dependencies to the Function App's `lib` directory. There are two changes required - configuring a property, and configuring the `maven-dependency-plugin`. - -In the properties section of your `pom.xml` file, you need to set the `functionLib` property as such: -```xml - - ${project.build.directory}/azure-functions/${functionAppName}/lib - -``` - -In the plugins section of your `pom.xml` file, you need to configure the `maven-dependency-plugin` as such: -```xml - - org.apache.maven.plugins - maven-dependency-plugin - 3.0.2 - - - copy-dependencies - prepare-package - - copy-dependencies - - - ${project.build.directory}/azure-functions/${functionAppName}/lib - false - false - true - - - - -``` - -Finally, be sure to package and deploy the lib as part of the Function App. +Azure Functions supports the use of 3rd party libraries. By default, all dependencies specified in your project pom.xml file will be automatically bundled during the `mvn package` step. For libraries that are not specified as dependencies in the pom.xml file, you may place them in a `lib` directory in the function's root directory. These will then be deployed as part of your functions application. All dependencies that are placed in the `lib` directory will be added to the system class loader at runtime. ## General Data Types