Repository navigation
feat(maven): 声明 Maven 运行配置类型、启动前任务与设置搜索关键词 - #35
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 类型
改动功能点明细
io.github.lithe-idea.maven-build/plugin.json:requires中新增声明"runConfigurationTypes": 0与"beforeLaunchTasks": 0。buildSystems[0].runConfigurationTypes中新增声明式任务运行配置类型maven(displayName: "Maven"、icon: icons/maven.svg、execution: "task"),包含goals(命令行参数)、profiles(-P)、skipTests(-DskipTests)、offline(-o)四个表单字段。buildSystems[0].beforeLaunchTasks中新增启动前任务goal(displayName: "Run Maven Goal"、icon: icons/maven.svg),包含goals参数字段。settingRegions声明:build(page.buildSystemID = "maven"):mvn、mvnw、Maven Wrapper、MAVEN_HOME、pom.xml、settings.xml、localRepository、.m2、profiles、dependencies。compiler(page.compilerID = "maven"):maven-compiler-plugin、javac、release、source、target、encoding。io.github.lithe-idea.maven-build/l10n/zh-Hans.json:$schema声明。settings.mavenExecutable(“Maven 程序”)与sections.Maven中文翻译。settingRegions.build.keywords、settingRegions.compiler.keywords中文搜索关键词,以及runConfigurationTypes.maven.maven(Maven)和beforeLaunchTasks.maven.goal(运行 Maven 目标)全套字段翻译。scripts/test.mjs:the manifest declares Maven task run configurations, before-launch tasks and setting regions,校验新增能力声明、表单字段、设置区域与中文翻译词条。docs/feature-matrix.md:java-maven-project-settings并新增maven-task-run-configurations条目与验证证据。申请能力、权限与日志说明
requires.runConfigurationTypes: 0、requires.beforeLaunchTasks: 0;未申请新权限。Lithe-IDEA/Lithe-core-rust提交9dea6aa6eaaf830c3568b647aa7daae5018b9727校验;所有功能矩阵(docs/feature-matrix.md)、翻译(io.github.lithe-idea.maven-build/l10n/zh-Hans.json)和测试(scripts/test.mjs)均在本插件仓库内维护,对 Lithe 宿主零依赖。本机已运行的验证(macOS arm64)
node scripts/test-process.mjs:9/9 通过node scripts/package.mjs:通过(生成dist/maven-build-1.0.1-{darwin,linux,windows}.zip)node --test --test-timeout=60000 scripts/package/*.test.mjs:3/3 通过node scripts/test.mjs(使用临时空白<settings/>通过MAVEN_ARGS隔离本机个人~/.m2/settings.xml全局ali/nexusprofile 后运行真实 Maven 3.9.14 集成测试):全部通过(含本次新增清单与中文翻译检查)~/.m2/settings.xml时,原profiles become choices of the Profiles option用例会读到本机用户的ali/nexusprofile,属于本机环境差异。plugin-manifest.schema.json、plugin-l10n.schema.json)、Core 语义校验(plugins.settings.catalog、plugins.declarative.settingsState、runConfig.configurationTypes、runConfig.editorForm)与 Viva 无头运行配置/设置界面预览均通过。