1 package org.apache.maven.artifact.resolver; 2 3 import org.apache.maven.artifact.Artifact; 4 import org.apache.maven.artifact.versioning.VersionRange; 5 6 21 22 28 public interface ResolutionListener 29 { 30 String ROLE = ResolutionListener.class.getName(); 31 32 int TEST_ARTIFACT = 1; 33 34 int PROCESS_CHILDREN = 2; 35 36 int FINISH_PROCESSING_CHILDREN = 3; 37 38 int INCLUDE_ARTIFACT = 4; 39 40 int OMIT_FOR_NEARER = 5; 41 42 int UPDATE_SCOPE = 6; 43 44 int MANAGE_ARTIFACT = 7; 45 46 int OMIT_FOR_CYCLE = 8; 47 48 int UPDATE_SCOPE_CURRENT_POM = 9; 49 50 int SELECT_VERSION_FROM_RANGE = 10; 51 52 int RESTRICT_RANGE = 11; 53 54 void testArtifact( Artifact node ); 55 56 void startProcessChildren( Artifact artifact ); 57 58 void endProcessChildren( Artifact artifact ); 59 60 void includeArtifact( Artifact artifact ); 61 62 void omitForNearer( Artifact omitted, Artifact kept ); 63 64 void updateScope( Artifact artifact, String scope ); 65 66 void manageArtifact( Artifact artifact, Artifact replacement ); 67 68 void omitForCycle( Artifact artifact ); 69 70 void updateScopeCurrentPom( Artifact artifact, String scope ); 71 72 void selectVersionFromRange( Artifact artifact ); 73 74 void restrictRange( Artifact artifact, Artifact replacement, VersionRange newRange ); 75 } 76 | Popular Tags |