Maven Plugin
Maven plugin by the platform is a tool that can be used for building and managing Java projects. It complements the native Maven features of standardizing and simplifying the build process through implementation of the best deployment and development practices to deploy local projects directly into the cloud.
Follow the next steps to deploy your Java applications into the platform with the help of the Maven plugin:
1. Ensure you have a running Java environment to deploy your project into. If needed, create a new one by following the linked guide.
2. Prepare Java project using the Maven build tool (manually or using any IDE).
3. Adjust your project’s pom.xml configuration file by adding/extending the
|
|
Note: You can generate access token for Maven Plugin via the dashboard.
Don’t forget to save the changes.
4. Open the command line on your local machine and navigate to the folder with your maven project. Here, you can perform the following commands:
|
|
Initiates your application deployment, substitute the {password} placeholder with your actual PaaS account password (token).
|
|
Builds and uploads .war file to your account deployment manager without actually deploying project.
|
|
Redeploys your project, use it after applying some changes to the code.
5. After successful deployment, you can navigate to your platform dashboard to ensure its addition to the target environment.
To access the deployed application, click the Open in Browser button. In our case it is Hello World application.
As you can see, the project is successfully built and deployed via Maven.