![]() Setup the Gradle Plugin for Azure Web Apps by adding the plugin to your build. This is usually more convenient than packaging the actual. Now just add this pathing jar to your command line classpath. This is a jar containing only a Manifest.mf file, whose Class-Path specifies the disk paths of your long list of jars, etc. ADDITIONAL SYSTEM INFORMATION : Windows 10 / jdk-11.0.2 A DESCRIPTION OF THE PROBLEM : We know that to solve long classpath problem when using 'java' command, we can use a classpath jar which contains all jar/directory in MANIFEST.MF, and the pattern looks like this in windows: '/D:/a/b.jar' or '/D:/a/c/'. ![]() A workaround is to create a 'pathing jar'. Here is a sample configuration in pom.xml: The Windows command line is very limiting in this regard. Then you can deploy your Java app to Azure using the following command: mvn package azure-webapp:deploy This command adds a azure-webapp-maven-plugin plugin and related configuration by prompting you to select an existing Azure Web App or create a new one. With the Maven Plugin for Azure Web Apps, you can prepare your Maven Java project for Azure Web App easily with one command in your project root: mvn :azure-webapp-maven-plugin:2.2.0:config To show all supported Java versions, run the following command in the Cloud Shell: az webapp list-runtimes -linux | grep "JAVA\|TOMCAT\|JBOSSEAP" To show the current Java version, run the following command in the Cloud Shell: az webapp config show -resource-group -name -query linuxFxVersion
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |