public void execute()

in core-it-support/core-it-plugins/maven-it-plugin-project-interpolation/src/main/java/org/apache/maven/plugin/coreit/PropertyInterpolationVerifierMojo.java [50:70]


    public void execute() throws MojoExecutionException, MojoFailureException {
        Model model = project.getModel();
        if (properties == null) {
            return;
        }

        Enumeration e = properties.propertyNames();
        while (e.hasMoreElements()) {
            String name = (String) e.nextElement();
            String value = properties.getProperty(name);
            if (!value.equals(model.getProperties().getProperty(name))) {
                throw new MojoExecutionException("Properties do not match: Name = " + name + ", Value = " + value);
            }

            if (value.contains("${")) {
                throw new MojoExecutionException("Unresolved value: Name = " + name + ", Value = " + value);
            }

            getLog().info("Property match: Name = " + name + ", Value = " + value);
        }
    }