You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Elliotte Rusty Harold <el...@ibiblio.org> on 2020/04/11 11:09:07 UTC

Plugin classpaths

When executing a Maven build are the various plugins--compiler plugin,
release plugin, shade plugin, etc.--separated from each other in any
way? That is,

1. Do they execute in separate processes?
2. Do they use separate class loaders?

or do they all run together in the same process with the same classpath?

-- 
Elliotte Rusty Harold
elharo@ibiblio.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Plugin classpaths

Posted by Hervé BOUTEMY <he...@free.fr>.
there is also a documentation for that
https://maven.apache.org/guides/mini/guide-maven-classloading.html

Regards,

Hervé

Le samedi 11 avril 2020, 14:49:06 CEST Robert Scholte a écrit :
> It is a classpath per plugin. The class you're looking for is
> the DefaultBuildPluginManager[1]
> 
> Robert
> 
> 
> [1] https://github.com/apache/maven/blob/master/maven-core/src/main/java/org
> /apache/maven/plugin/DefaultBuildPluginManager.java On 11-4-2020 13:09:53,
> Elliotte Rusty Harold <el...@ibiblio.org> wrote: When executing a Maven
> build are the various plugins--compiler plugin, release plugin, shade
> plugin, etc.--separated from each other in any way? That is,
> 
> 1. Do they execute in separate processes?
> 2. Do they use separate class loaders?
> 
> or do they all run together in the same process with the same classpath?
> 
> --
> Elliotte Rusty Harold
> elharo@ibiblio.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Plugin classpaths

Posted by Robert Scholte <rf...@apache.org>.
It is a classpath per plugin. The class you're looking for is the DefaultBuildPluginManager[1]

Robert


[1] https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java
On 11-4-2020 13:09:53, Elliotte Rusty Harold <el...@ibiblio.org> wrote:
When executing a Maven build are the various plugins--compiler plugin,
release plugin, shade plugin, etc.--separated from each other in any
way? That is,

1. Do they execute in separate processes?
2. Do they use separate class loaders?

or do they all run together in the same process with the same classpath?

--
Elliotte Rusty Harold
elharo@ibiblio.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org