Operations 16 min read

Deploy SpringBoot Apps Directly from IDEA Using Cloud Toolkit

This article walks through using Alibaba Cloud's Cloud Toolkit IDE plugin to configure, package, and deploy a SpringBoot application from IntelliJ IDEA to any server, compares its workflow with native IDEA deployment, and evaluates its core features such as Deploy to Host, Deploy to ECS, file upload, remote terminal, and built‑in Arthas diagnostics.

Programmer DD
Programmer DD
Programmer DD
Deploy SpringBoot Apps Directly from IDEA Using Cloud Toolkit

How to Use Cloud Toolkit for IDE‑Based Deployment

Cloud Toolkit is a free IntelliJ IDEA plugin that lets developers package and deploy applications without leaving the IDE, supporting both generic servers and Alibaba Cloud services.

Step 1: Configure Server Information

In Tools → Deployment set the remote host address, authentication, and map local project paths to remote directories.

Step 2: Add Maven Packaging Plugin

<build>
  <plugins>
    <plugin>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-maven-plugin</artifactId>
    </plugin>
  </plugins>
</build>

Step 3: Build the Fat JAR

@SpringBootApplication
@RestController
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
    @RequestMapping("/hello")
    public String hello() {
        return "hello world";
    }
}

Running mvn install produces a runnable JAR that can be uploaded.

Step 4: Deploy the JAR

After mapping, right‑click the JAR and choose Upload to transfer it to the remote server.

IDE Built‑in Deployment vs. Cloud Toolkit

IDEA’s native deployment requires manual packaging and remote login, while Cloud Toolkit automates Maven packaging, script execution, and provides a one‑click Deploy to Host action.

Core Cloud Toolkit Capabilities

Deploy to Host : Deploy to any server via SFTP.

Deploy to ECS : Direct integration with Alibaba Cloud ECS instances.

Deploy to EDAS & EDAS Serverless : Deploy to Alibaba Cloud’s service‑governance platforms.

Deploy to CS K8s : Container‑oriented deployment.

Additional Features

File Upload : Upload local files and optionally run a command.

Remote Terminal : Open an SSH session to the selected host from within IDEA.

Built‑in Diagnostic (Arthas) : Run Java diagnostics (e.g., trace) on the remote process without installing separate tools.

Evaluation of Deploy to Host

The workflow is simplified: no manual packaging, no separate SSH login, and changes are deployed instantly after code modification.

Observed Limitations

Occasional remote‑connection failures after long runtimes, requiring IDE restart.

File browser does not show hidden directories (e.g., .ssh) on macOS.

Lacks a visual remote‑host file manager; only basic SFTP is supported.

Conclusion

Cloud Toolkit significantly streamlines deployment and debugging for Java developers, offering both cloud‑agnostic and Alibaba‑specific capabilities, though some UI and reliability issues remain.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

DeploymentDevOpsSpringBootArthasIDE plugincloud toolkit
Programmer DD
Written by

Programmer DD

A tinkering programmer and author of "Spring Cloud Microservices in Action"

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.