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 打包插件
- Host: GitHub
- URL: https://github.com/silencehvk/idea-maven-plugin
- Owner: SilenceHVK
- Created: 2019-03-14T01:51:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-14T02:50:45.000Z (over 6 years ago)
- Last Synced: 2025-04-18T23:59:40.572Z (6 months ago)
- Topics: idea, idea-plugin, maven-plugin, testing
- Language: Java
- Size: 2.06 MB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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` 集成
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"));
```