{"id":16652132,"url":"https://github.com/jdcasey/expression-maven-plugin","last_synced_at":"2026-04-25T10:35:38.305Z","repository":{"id":137441905,"uuid":"2981847","full_name":"jdcasey/expression-maven-plugin","owner":"jdcasey","description":"Resolve expressions for plugin parameters, etc.","archived":false,"fork":false,"pushed_at":"2011-12-14T20:50:40.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-11T22:59:06.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdcasey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-2.0.html","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-14T18:00:41.000Z","updated_at":"2016-09-21T20:10:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"fcf0fecc-03f9-4dda-a9ea-d9e3f555a664","html_url":"https://github.com/jdcasey/expression-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jdcasey/expression-maven-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fexpression-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fexpression-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fexpression-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fexpression-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdcasey","download_url":"https://codeload.github.com/jdcasey/expression-maven-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdcasey%2Fexpression-maven-plugin/sbom","scorecard":{"id":512293,"data":{"date":"2025-08-11","repo":{"name":"github.com/jdcasey/expression-maven-plugin","commit":"80be743a339f95948b0feccfb19a388c60c34425"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE-2.0.html:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-2f88-5hg8-9x2x","Warn: Project is vulnerable to: GHSA-8vhq-qq4p-grq3","Warn: Project is vulnerable to: GHSA-g6ph-x5wf-g337","Warn: Project is vulnerable to: GHSA-jcwr-x25h-x5fh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T00:52:38.806Z","repository_id":137441905,"created_at":"2025-08-20T00:52:38.806Z","updated_at":"2025-08-20T00:52:38.806Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32259472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T09:27:43.540Z","updated_at":"2026-04-25T10:35:38.285Z","avatar_url":"https://github.com/jdcasey.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Maven Expression Plugin\n=======================\n\nOverview\n--------\n\nThe Maven Expression Plugin is intended to be a development aid for plugin developers and build engineers. Its main purpose is to allow users to resolve expressions interactively, as if they were being resolved for injection as a plugin parameter, or interpolated into a `pom.xml` file. Each goal works in two ways: single-execution, and fully interactive. The single-execution mode takes a parameter on the Maven command line (`-Dexpr=foo`), resolves it, reports the result, and quits. On the other hand, the fully interactive mode kicks in if you *don't* use the `expr` command-line parameter, and will continue to prompt you for input (and report the resolution result) until you hit CTL-C. This allows you to explore multiple parameter expressions without having to constantly edit and re-run a complex command line.\n\nThere are currently two goals: `expression:plugin` and `expression:pom`. See below for an explanation of each.\n\n\nUsing\n-----\n\nTo use the expression plugin via the `expression:` goal prefix, you'll need to add the `org.commonjava.maven.plugins` groupId to your settings.xml:\n\n    \u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n    \u003csettings\u003e\n      [...]\n      \u003cpluginGroups\u003e\n        \u003cpluginGroup\u003eorg.commonjava.maven.plugins\u003c/pluginGroups\u003e\n      \u003c/pluginGroups\u003e\n      [...]\n    \u003c/settings\u003e\n\nNote that the standard plugin groups (`org.apache.maven.plugins` and `org.codehaus.mojo`) will be implied, even with the above `\u003cpluginGroups/\u003e` configuration.\n\n`expression:plugin`\n-------------------\n\nThe `plugin` goal is used to resolve an expression as if it were going to be injected as a plugin parameter. It will use the projects in the current session, if there are any, and will expose access to the `MojoExecution` instance used to execute it if an expression references `${mojoExecution}`.\n\nThe following example uses the `plugin` goal in single-execution mode to resolve the `${session.executionRootDirectory}` expression:\n\n    $ mvn expression:plugin -Dexpr=session.executionRootDirectory\n    [INFO] Scanning for projects...\n    [INFO]                                                                         \n    [INFO] ------------------------------------------------------------------------\n    [INFO] Building Maven Expressions Plugin 0.1-SNAPSHOT\n    [INFO] ------------------------------------------------------------------------\n    [INFO] \n    [INFO] --- maven-expression-plugin:1.0-SNAPSHOT:plugin (default-cli) @ expression-maven-plugin ---\n    [INFO] \n    \n    Expression: '${session.executionRootDirectory}'\n    Resolves to: '/Users/jdcasey/workspace/maven-expression-plugin'\n    (Resulting class: java.lang.String)\n    \n    \n    [INFO] ------------------------------------------------------------------------\n    [INFO] BUILD SUCCESS\n    [INFO] ------------------------------------------------------------------------\n    [INFO] Total time: 0.503s\n    [INFO] Finished at: Wed Dec 14 15:26:11 EST 2011\n    [INFO] Final Memory: 3M/81M\n    [INFO] ------------------------------------------------------------------------\n\nAnd this is the same example, run in fully interactive mode:\n\n    $ mvn expression:plugin\n    [INFO] Scanning for projects...\n    [INFO]                                                                         \n    [INFO] ------------------------------------------------------------------------\n    [INFO] Building Maven Expressions Plugin 0.1-SNAPSHOT\n    [INFO] ------------------------------------------------------------------------\n    [INFO] \n    [INFO] --- expression-maven-plugin:0.1-SNAPSHOT:plugin (default-cli) @ expression-maven-plugin ---\n    Enter an expression (CTL-C to end): session.executionRootDirectory\n    [INFO] \n    \n    Expression: '${session.executionRootDirectory}'\n    Resolves to: '/Users/jdcasey/workspace/redhat/maven-expression-plugin'\n    (Resulting class: java.lang.String)\n    \n    \n    Enter an expression (CTL-C to end): project.build.directory\n    [INFO] \n    \n    Expression: '${project.build.directory}'\n    Resolves to: '/Users/jdcasey/workspace/redhat/maven-expression-plugin/target'\n    (Resulting class: java.lang.String)\n    \n    \n    Enter an expression (CTL-C to end): ^C\n    $\n\nAs you can see, using the fully interactive mode allows us to resolve more than one expression without restarting.\n\nAdditionally, it's possible to use command-line parameters in your expressions:\n\n    $ mvn expression:plugin -Dfoo=bar\n    [INFO] Scanning for projects...\n    [INFO]                                                                         \n    [INFO] ------------------------------------------------------------------------\n    [INFO] Building Maven Expressions Plugin 0.1-SNAPSHOT\n    [INFO] ------------------------------------------------------------------------\n    [INFO] \n    [INFO] --- expression-maven-plugin:0.1-SNAPSHOT:plugin (default-cli) @ expression-maven-plugin ---\n    Enter an expression (CTL-C to end): ${project.build.directory}/${foo}\n    [INFO] \n    \n    Expression: '${project.build.directory}/${foo}'\n    Resolves to: '/Users/jdcasey/workspace/redhat/maven-expression-plugin/target/bar'\n    (Resulting class: java.lang.String)\n\n\n`expression:pom`\n----------------\n\nThe `pom` goal operates in exactly the same way as the `plugin` goal, with one critical difference: Rather than resolving expressions as if they were being injected as plugin parameters, the `pom` goal resolves expressions as if they were being interpolated into a `pom.xml` file. This is the method used to interpolate expressions in resources, dependencies, basically anything outside of a plugin `\u003cconfiguration/\u003e` section. This means that some of the dynamic build state available to the plugin-parameter expression resolver will _not_ be available here.\n\nFor example, the `project.build.directory` path resolves in both places (compare with the `plugin` goal, above):\n\n    $ mvn expression:pom\n    [INFO] Scanning for projects...\n    [INFO]                                                                         \n    [INFO] ------------------------------------------------------------------------\n    [INFO] Building Maven Expressions Plugin 0.1-SNAPSHOT\n    [INFO] ------------------------------------------------------------------------\n    [INFO] \n    [INFO] --- expression-maven-plugin:0.1-SNAPSHOT:pom (default-cli) @ expression-maven-plugin ---\n    Enter an expression (CTL-C to end): project.build.directory\n    [INFO] \n    \n    Expression: '${project.build.directory}'\n    Resolves to: '/Users/jdcasey/workspace/redhat/maven-expression-plugin/target'\n\nHowever, expressions based on session information (which is dynamic) doesn't resolve with the `pom` goal:\n\n    $ mvn expression:pom\n    [INFO] Scanning for projects...\n    [INFO]                                                                         \n    [INFO] ------------------------------------------------------------------------\n    [INFO] Building Maven Expressions Plugin 0.1-SNAPSHOT\n    [INFO] ------------------------------------------------------------------------\n    [INFO] \n    [INFO] --- expression-maven-plugin:0.1-SNAPSHOT:pom (default-cli) @ expression-maven-plugin ---\n    Enter an expression (CTL-C to end): session.executionRootDirectory\n    [INFO] \n    \n    Expression: '${session.executionRootDirectory}'\n    Resolves to: '${session.executionRootDirectory}'\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdcasey%2Fexpression-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdcasey%2Fexpression-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdcasey%2Fexpression-maven-plugin/lists"}