static String releaseVersion(String mavenVersion) {
        if (mavenVersion.endsWith("-SNAPSHOT")) {
            return mavenVersion;
        } else {
            String[] parts = mavenVersion.split(Pattern.quote("."));
            if (parts.length <= 3) {
                return mavenVersion;
            } else {
                return stringJoin(List.of(parts).subList(0, 3), ".");
            }
        }
    }
Calls the generate-sources phase in the container lifecycle defined in lifecycle.xml.

@author Tony Vaagenes
bundle-plugin/src/main/java/com/yahoo/container/plugin/mojo/GenerateSourcesMojo.java