Is the maximum current of a wire related with its length?
If the wire is very short, then the heat-sinking effect of how it is mounted must be taken into account. Good heat-sinking will increase the amount of heat, that is the current flowing, to obtain any given temperature rise.

For a long wire, long enough that no appreciable heat flows along its length to the mounting points, the length is irrelevant.