package ws.gazebo.brontes.runner.test;

import java.io.File;

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

public class TestApp {

	public static void main(String[] args) {
		System.out.println("Hello World");
		System.err.println("Args were: ");
		for (String a : args) {
			System.out.println('\t' + a);
		}

		// FIXME: provide POM as an arg
		MavenResolverSystem rs = Maven.resolver();
		// rs.loadPomFromFile("application-test.xml");

		// This fails consistenly when used in the same classpath with
		// maven-embedder,
		// without sufficient dep. exclusions onto maven-embedder.
		// With sufficient dep. exclsions, TestApp runs successfully in itself,
		// but maven-embedder cannot successfully create and run a MavenCli
		// then. It seems to be a matter of weirdness in the dependency
		// injection framework.
		//
		// So: Consider OSGI, alternately, as a runtime container, rather than
		// Jena. Continue using Shrinkwrap for dependency resolution
		File it = rs.resolve("junit:junit:4.10").withoutTransitivity()
				.asSingle(File.class);

		// for (File f : libs) {
		System.out.println("Resolved: " + it);
		// }

	}

}

@@ -463,19 +463,16 @@
 er();%0A%09%09
-// 
 rs.loadP

Use POM reader