/*
 * Copyright 2016 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

package org.jbpm.test.container.tools;

import java.io.File;

import org.jboss.shrinkwrap.resolver.api.maven.Maven;
import org.jboss.shrinkwrap.resolver.api.maven.MavenResolverSystem;
import org.jboss.shrinkwrap.resolver.api.maven.PomEquippedResolveStage;

public class IntegrationMavenResolver {

    public static PomEquippedResolveStage get(String... profiles) {
        String localRepositoryPath = System.getProperty("settings.localRepository");
        String version = System.getProperty("project.version");
        File pom = new File(localRepositoryPath, "org/jbpm/shrinkwrap-war-profiles/" + version
                + "/shrinkwrap-war-profiles-" + version + ".pom");

        final MavenResolverSystem resolver = Boolean.getBoolean(System.getProperty("MAVEN_USE_LOCAL_REPO", "false"))
                ? Maven.configureResolver().fromFile("settings.xml") : Maven.resolver();

        return resolver.loadPomFromFile(pom, profiles);
    }

}

@@ -1261,187 +1261,133 @@
     
-final MavenResolverSystem resolver = Boolean.getBoolean(System.getProperty(%22MAVEN_USE_LOCAL_REPO%22, %22false%22))%0A                ? Maven.configureResolver().fromFile(%22settings.xml%22) :
+// Custom settings.xml can be passed via org.apache.maven.user-settings property%0A        final MavenResolverSystem resolver =
  Mav

Remove unused property for Maven resolver (#635)