tooling/hawtio-maven-plugin/src/main/java/io/hawt/maven/SpringBootMojo.java [66:83]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected Artifact getSpringCoreArtifact(Set<Artifact> artifacts) throws MojoExecutionException {
        for (Artifact artifact : artifacts) {
            if (artifact.getGroupId().equals("org.springframework") && artifact.getArtifactId().equals("spring-core")) {
                return artifact;
            }
        }
        return null;
    }

    @Override
    protected void resolvedArtifacts(Set<Artifact> artifacts) throws Exception {
        // make sure we have spring-core
        springCoreArtifact = getSpringCoreArtifact(artifacts);
        if (springCoreArtifact == null) {
            throw new IllegalAccessError("Cannot resolve camel-core dependency from the Maven pom.xml file");
        }

        super.resolvedArtifacts(artifacts);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tooling/hawtio-maven-plugin/src/main/java/io/hawt/maven/SpringMojo.java [45:62]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected Artifact getSpringCoreArtifact(Set<Artifact> artifacts) throws MojoExecutionException {
        for (Artifact artifact : artifacts) {
            if (artifact.getGroupId().equals("org.springframework") && artifact.getArtifactId().equals("spring-core")) {
                return artifact;
            }
        }
        return null;
    }

    @Override
    protected void resolvedArtifacts(Set<Artifact> artifacts) throws Exception {
        // make sure we have spring-core
        springCoreArtifact = getSpringCoreArtifact(artifacts);
        if (springCoreArtifact == null) {
            throw new IllegalAccessError("Cannot resolve camel-core dependency from the Maven pom.xml file");
        }

        super.resolvedArtifacts(artifacts);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



