Interface PathScopeProvider

All Superinterfaces:
ExtensibleEnumProvider<PathScope>, SpiService

@Experimental @Consumer @Named public interface PathScopeProvider extends ExtensibleEnumProvider<PathScope>
Service provider interface for registering custom PathScope implementations.

This interface allows plugins and extensions to define and register additional path scopes beyond the standard ones provided by Maven. Path scopes define how dependencies are used in different contexts, such as compilation, testing, or runtime.

Implementations of this interface will be discovered through the Java ServiceLoader mechanism and their provided path scopes will be available throughout the Maven build process.

Example usage:

 public class CustomPathScopeProvider implements PathScopeProvider {
     public Collection<PathScope> provides() {
         return Collections.singleton(pathScope("integration-test",
                 ProjectScope.TEST, DependencyScope.TEST));
     }
 }
 
Since:
4.0.0
See Also: