New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide new addProjectClasspath parm to exclude project target & deps from goal classpath for fine-grained control #7
Conversation
project build dir and dependencies from classpath Signed-off-by: Scott Kurz <skurz@us.ibm.com>
6533d5f
to
9a88f6b
Compare
I didn't want to get stuck on naming the new parameter. Not sure I really like my choice: |
Looks good to me! I'm pretty sure that I know the answer to my question I asked but just wanted to confirm. |
Would the same use-case be addressed by creating a new While the |
I appreciate your point and can't think of other examples. To restate the use case: say I'm starting with a pre-Maven (e.g. Ant) type of execution and I want to bridge or migrate from this Ant env to the Maven plugin. The fact that I can't just point to the same classpath I was using before but now have to build an equivalent through transitive Maven dependencies (which aren't trivially simple, being different per scope) is an inconvenience. This requires just a bit deeper Maven experience.
But yes, adding a new module would certainly work. |
Good to know a solution exists. I believe the core concept of Maven is its dependency management and the way it constructs classpath. I'd like stick with it rather than inventing alternative classpath management. As such please use the empty Should such need really appear, I am ready to accept |
Well, it's your project and that sounds fair enough. Thanks for giving it some thought. |
Signed-off-by: Scott Kurz skurz@us.ibm.com
I think it could be desirable to give more fine-grained control of the classpath and exclude project dependencies and the default target location, and use only the plugin config, e.g.
Added as
So you can set as:
or -Dsigtest.addProjectClassPath=false
The default of
true
matches the existing behavior.