Re: JDeprscan plugin 3.0.0 ?

2021-02-26 Thread Benjamin Marwell
Sure, I can do that (again) :) If you don’t mind, I would like to remove some deep nesting in a few methods and extract some methods in other places as well, because I might re-use some functionality in a later feature (for scanning dependencies). GH Actions would be a nice addition, too. Maybe a

Maven dry runs

2021-02-26 Thread Elliotte Rusty Harold
Aside from the release plugin, is there any current way to do a dry run of a build? In particular, I'd like to see what artifacts will be built by a `mvn install` without actually building them. Thanks. -- Elliotte Rusty Harold elh...@ibiblio.org -

Re: Maven 4: -pl !... is not recursive

2021-02-26 Thread Romain Manni-Bucau
Le ven. 26 févr. 2021 à 14:30, Robert Scholte a écrit : > This discussion is about aggregators, and not about parent. > Quite often an aggregator is also the parent of its modules, but that is > not required. > Ack > > Calling -pl with Maven3 behaves unnatural: if you want to > call a specifi

Re: [VOTE] Release Apache Maven Scripting Plugin version 3.0.0

2021-02-26 Thread Robert Scholte
+1 On 24-2-2021 21:02:07, Robert Scholte wrote: Hi, We solved 2 issues: https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12322823&version=12349673&styleName=Text There are zero issues left in JIRA: https://issues.apache.org/jira/issues/?jql=project%20%3D%2012322823%20AND%20resolu

Re: Maven 4: -pl !... is not recursive

2021-02-26 Thread Robert Scholte
This discussion is about aggregators, and not about parent. Quite often an aggregator is also the parent of its modules, but that is not required. Calling -pl with Maven3 behaves unnatural: if you want to call a specific aggregator, you want its modules to be built. Hence I still support the c

Re: Maven 4: -pl !... is not recursive

2021-02-26 Thread Romain Manni-Bucau
I still think it is wrong to have such a global toggle + break backward compatibility (-pl + -N is *already* used for what it is today which is not the proposal but -pl parent without -N is also already used and works well). You can also take into consideration that -pl -module -N meaning is comple

Re: Maven 4: -pl !... is not recursive

2021-02-26 Thread Martin Kanters
I've had a talk this morning with Robert Scholte and Maarten Mulders about this, since I had the feeling we were not getting further in this mail thread. First of all, we all agreed that we definitely needed functionality for both recursive and non-recursive project selection. What Robert prefers

Re: Future of maven scripting plugin, java?

2021-02-26 Thread Romain Manni-Bucau
Le ven. 26 févr. 2021 à 12:42, Robert Scholte a écrit : > I remember the same discussion with Christian Stein. > The problem is that a Java + main(String[]) is not equivalent to JSR223, > because it is not context aware. > Yes but nothing prevents you to support MyClass(Bindings b) instantiation

Re: Future of maven scripting plugin, java?

2021-02-26 Thread Christian Stein
On Fri, Feb 26, 2021 at 12:42 PM Robert Scholte wrote: > I remember the same discussion with Christian Stein. > Yeah, me too. Came up with a JSR223 wrapper POC implementation around that time: https://github.com/sormuras/java-compiler-script-engine Maybe it's of help here - if not, then not. (-

Re: Future of maven scripting plugin, java?

2021-02-26 Thread Robert Scholte
I remember the same discussion with Christian Stein. The problem is that a Java + main(String[]) is not equivalent to JSR223, because it is not context aware. I don't want to extend the eval-goal with toolchain, etc to make it possible to execute Java. If we would create a new goal, it would like

Re: Future of maven scripting plugin, java?

2021-02-26 Thread Romain Manni-Bucau
Le ven. 26 févr. 2021 à 11:47, Hervé BOUTEMY a écrit : > I don't fully get the logic > > but on dependencies injection to the running script, I was just talking > about: > > org.apache.maven.plugins > maven-scripting-plugin > @project.version@ > >

Re: Future of maven scripting plugin, java?

2021-02-26 Thread Hervé BOUTEMY
I don't fully get the logic but on dependencies injection to the running script, I was just talking about: org.apache.maven.plugins maven-scripting-plugin @project.version@ org.codehaus.groovy groovy-jsr223

Re: [VOTE] Release Apache Maven Scripting Plugin version 3.0.0

2021-02-26 Thread Romain Manni-Bucau
+1 (non binding) tested with groovy and javascript on java 11 Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn

Re: Future of maven scripting plugin, java?

2021-02-26 Thread Romain Manni-Bucau
here is a draft https://github.com/apache/maven-scripting-plugin/tree/rmannibucau/java-scripting-draft, still require some more love for dependency management (for now it will use project dependencies) but shows the overall idea I guess Romain Manni-Bucau @rmannibucau

Re: Future of maven scripting plugin, java?

2021-02-26 Thread Romain Manni-Bucau
Hi Hervé, Do you mean project binding and from there use plexus container to lookup anything? This can work but then the question is what is the value of this plugin? To detail that let me review the usage you can get today: 1. groovy -> you will likely use gplus plugin which is more centered on