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