Interface ProjectScopeProvider
- All Superinterfaces:
ExtensibleEnumProvider<ProjectScope>
,SpiService
@Experimental
@Consumer
@Named
public interface ProjectScopeProvider
extends ExtensibleEnumProvider<ProjectScope>
Service provider interface for registering custom
ProjectScope
implementations.
This interface allows plugins and extensions to define and register additional project scopes
beyond the standard ProjectScope.MAIN
and ProjectScope.TEST
scopes.
Implementations of this interface will be discovered through the Java ServiceLoader mechanism
and their provided project scopes will be available throughout the Maven build process.
Example usage:
public class CustomProjectScopeProvider implements ProjectScopeProvider { public Collection<ProjectScope> provides() { return Collections.singleton(projectScope("integration-test")); } }
- Since:
- 4.0.0
- See Also:
-
Method Summary
Methods inherited from interface org.apache.maven.api.spi.ExtensibleEnumProvider
provides