An open API service indexing awesome lists of open source software.

https://github.com/silencehvk/idea-maven-plugin

idea maven 打包插件
https://github.com/silencehvk/idea-maven-plugin

idea idea-plugin maven-plugin testing

Last synced: 6 months ago
JSON representation

idea maven 打包插件

Awesome Lists containing this project

README

          

# idea-maven-plugin

> 该项目为 `IDEA` 插件开发练手项目,主要包含:

- [x] 调用 `IDEA` 集成插件 `Maven` 打包方法
- [x] `IDEA Settings` 界面
- [x] `Settings` 界面持久化存储
- [x] `FTP` 连接测试
- [x] `swing` 组件开发

调用 IDEA 提供的 Maven 插件方法,需将 `lib/maven.jar` 加入 `IDEA SDK` 集成

IDEA-SDK

Maven 打包代码

```java
MavenRunner runner = MavenRunner.getInstance(project);
MavenRunnerSettings settings = runner.getState().clone();
settings.getMavenProperties().put("interactiveMode", "false");
settings.setSkipTests(true);
MavenRunnerParameters params = new MavenRunnerParameters();
params.setWorkingDirPath(project.getBasePath());
params.setGoals(Collections.singletonList("package"));
```

Settings

FTP-Connection

MVN-Package

Package-Result