Stay organized with collections Save and categorize content based on your preferences.
You can use any Java compatible libraries with the Java runtime on the App Engine standard environment. These instructions use Apache Maven to build, run, and deploy a sample app. For details about installing Maven, see Using Apache Maven and the App Engine plugin.
Declare and manage dependenciesTo manage dependencies using Maven, you need to specify the dependencies in the <dependencies>
section inside the pom.xml
file of your project.
To manage your project's dependency on Maven itself, you can use the Maven Wrapper. If you do not use the Maven Wrapper, App Engine defaults to using a recent version of Maven when running gcloud app deploy
.
If you need to host private dependencies for your Java app, you can use an Artifact Registry Maven repository. Connecting to a Maven repository hosted on Artifact Registry requires the Artifact Registry Maven Tools plugin for your Maven or Gradle configuration.
Specify the Java servlet libraryEclipse Jetty and Tomcat apps require the Java servlet library. Specify it in your pom.xml
file's <dependencies>
entry:
Note that frameworks such as
SparkJavaor
Spring Bootwon't require the servlet library.
Use the Cloud Client LibrariesCloud Client Libraries for Java provide idiomatic access to Google Cloud services. To use a library, declare it as a dependency.
Typically, you only declare dependencies on the specific libraries that your app needs. For example, to use the Cloud Storage library:
You can configure the Cloud Client Libraries for Java to handle authentication automatically.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["App Engine standard environment supports any Java-compatible libraries, allowing for flexible development."],["Apache Maven is used for building, running, and deploying applications, with dependencies managed in the `pom.xml` file."],["Private dependencies can be hosted using an Artifact Registry Maven repository, which requires the Artifact Registry Maven Tools plugin."],["Eclipse Jetty and Tomcat applications must include the Java servlet library in their `pom.xml` file's dependencies, whereas frameworks such as SparkJava or Spring Boot do not."],["The Cloud Client Libraries for Java provide access to Google Cloud services and are added as dependencies, with the option for automatic authentication handling."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4