Indentation responses of crystalline materials have been found to be radically different at micrometer and nanometer scales. The latter is usually thought to be controlled by the nucleation of dislocations. To explore this physical process, a dislocation mechanics study is performed to determine the conditions for the nucleation of a finite number of dislocations under a two-dimensional wedge indenter, using the Rice-Thomson nucleation criterion. The configurational force on the dislocation consists of the applied force, the image force, and the interaction force between dislocations. Dislocations reach equilibrium positions when the total driving force equals the effective Peierls stress, giving a set of nonlinear equations that can be solved using the Newton-Raphson method. When the apex angle of the wedge indenter increases, the critical contact size for dislocation nucleation increases rapidly, indicating that dislocation multiplication near a blunt wedge tip is extremely difficult. This geometric dependence agrees well with experimental findings.