You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "hsynkrtl (via GitHub)" <gi...@apache.org> on 2026/05/27 13:24:25 UTC
[PR] Enhanced script context by MojoExecution [maven-scripting-plugin]
hsynkrtl opened a new pull request, #74:
URL: https://github.com/apache/maven-scripting-plugin/pull/74
[71](https://github.com/apache/maven-scripting-plugin/issues/71)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enhanced script context by MojoExecution [maven-scripting-plugin]
Posted by "hsynkrtl (via GitHub)" <gi...@apache.org>.
hsynkrtl commented on code in PR #74:
URL: https://github.com/apache/maven-scripting-plugin/pull/74#discussion_r4417234301
##########
src/main/java/org/apache/maven/plugins/scripting/EvalMojo.java:
##########
@@ -64,6 +65,9 @@ public class EvalMojo extends AbstractMojo {
@Parameter(defaultValue = "${project}", readonly = true)
private MavenProject project;
+ @Parameter(defaultValue = "${mojoExecution}", readonly = true)
+ MojoExecution mojoExecution;
Review Comment:
made private
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enhanced script context by MojoExecution [maven-scripting-plugin]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #74:
URL: https://github.com/apache/maven-scripting-plugin/pull/74#issuecomment-6508125552
<!-- license-declaration-check -->
### ⚠️ License declaration missing
The pull request description must contain at least one of the following lines with a **checked** box (`[x]`):
```markdown
- [ ] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
- [ ] I hereby declare that I have filed an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
```
This comment will be hidden automatically once the description is fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enhanced script context by MojoExecution [maven-scripting-plugin]
Posted by "hsynkrtl (via GitHub) via issues" <is...@maven.apache.org>.
hsynkrtl commented on PR #74:
URL: https://github.com/apache/maven-scripting-plugin/pull/74#issuecomment-6837952353
> Needs tests
Added test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enhanced script context by MojoExecution [maven-scripting-plugin]
Posted by "hsynkrtl (via GitHub) via issues" <is...@maven.apache.org>.
hsynkrtl closed pull request #74: Enhanced script context by MojoExecution
URL: https://github.com/apache/maven-scripting-plugin/pull/74
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enhanced script context by MojoExecution [maven-scripting-plugin]
Posted by "hsynkrtl (via GitHub) via issues" <is...@maven.apache.org>.
hsynkrtl commented on PR #74:
URL: https://github.com/apache/maven-scripting-plugin/pull/74#issuecomment-6830245414
> I don't understand the point of this.
The intention is to make the current Maven lifecycle context accessible from within the script.
By exposing `MojoExecution` in the script context, scripts can inspect execution-specific information, such as the lifecycle phase, execution ID, and goal.
This allows scripts to adapt their behavior based on the current Maven execution without requiring additional configuration or manually passing this information as script properties.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enhanced script context by MojoExecution [maven-scripting-plugin]
Posted by "hsynkrtl (via GitHub) via issues" <is...@maven.apache.org>.
hsynkrtl commented on PR #74:
URL: https://github.com/apache/maven-scripting-plugin/pull/74#issuecomment-6829805905
> ### ⚠️ License declaration missing
> The pull request description must contain at least one of the following lines with a **checked** box (`[x]`):
>
> - [ ] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
> - [ ] I hereby declare that I have filed an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
> This comment will be hidden automatically once the description is fixed.
Ho can i get rid of this step
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Enhanced script context by MojoExecution [maven-scripting-plugin]
Posted by "elharo (via GitHub)" <gi...@apache.org>.
elharo commented on code in PR #74:
URL: https://github.com/apache/maven-scripting-plugin/pull/74#discussion_r4166275112
##########
src/main/java/org/apache/maven/plugins/scripting/EvalMojo.java:
##########
@@ -64,6 +65,9 @@ public class EvalMojo extends AbstractMojo {
@Parameter(defaultValue = "${project}", readonly = true)
private MavenProject project;
+ @Parameter(defaultValue = "${mojoExecution}", readonly = true)
+ MojoExecution mojoExecution;
Review Comment:
private?
##########
src/site/markdown/script-context.md:
##########
@@ -21,4 +21,5 @@ under the License.
The following variables are available in the script context
* `org.apache.maven.project.MavenProject project`
- * `org.apache.maven.plugin.logging.Log log`
\ No newline at end of file
+ * `org.apache.maven.plugin.logging.Log log`
Review Comment:
separate change
##########
pom.xml:
##########
Review Comment:
this should be a separate change
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org