Maven Shared Components

Add support of stopping at the end of line to prevent issue with endToken not found