Skip to content

Instantly share code, notes, and snippets.

View jvanzyl's full-sized avatar

Jason van Zyl jvanzyl

  • Guelph, Ontario, Canada
View GitHub Profile
package org.sonatype.idiom.site;
import java.io.IOException;
import javax.inject.Named;
import javax.inject.Singleton;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.HttpStatus;
package org.sonatype.idiom.site;
import java.util.logging.Logger;
import javax.inject.Inject;
import org.sonatype.idiom.site.form.Form;
import org.sonatype.idiom.site.processor.Processor;
import com.google.inject.name.Named;
Maven NG: Sisu, Aether, Polyglot Maven, Maven Shell, Proviso & Benson
On October 1st Maven 3.0 will be released. Many infrastructure level technologies and tools have been created to enable the release of Maven 3.0 and this talk will give an overview of what these technologies are how they will take shape in the future. Sisu is the IoC system Sonatype has built on top of Guice, and is the base platform upon which all our tools are now built, including Maven 3.0. Aether is the new Repository API that has been generalized and decoupled from Maven which can be used as a stand-alone library to give any Java application some Maven repository-fu. Maven Shell what we see becoming the de facto way to use Maven 3.0. A long lived process with Maven super powers. Polyglot Maven is evolving into a family of DSLs to provide novel ways to use the Maven 3.0 core. Proviso is the production runtime provisioning system Sonatype is using internally for continuous delivery and is based on the powerful Eclipse p2 provisioning p
package org.sonatype.idiom.site;
import java.net.URLClassLoader;
import org.sonatype.guice.bean.binders.SpaceModule;
import org.sonatype.guice.bean.binders.WireModule;
import org.sonatype.guice.bean.reflect.ClassSpace;
import org.sonatype.guice.bean.reflect.URLClassSpace;
import com.google.inject.Guice;
bash-3.2$ mvn clean package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Idiom Dist
[INFO] Idiom Dist :: Configuration
[INFO] Idiom Dist :: Advice
[INFO] Idiom Dist :: Assembly
[INFO]
Number of foreign imports: 0
-----------------------------------------------------
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:412)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:94)
... 20 more
Caused by: java.lang.NoClassDefFoundError: org/apache/maven/project/DependencyResolutionException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
package org.sonatype.idiom.site;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.URLClassLoader;
import java.util.HashMap;
import java.util.Map;
package org.sonatype.idiom.site;
import java.util.logging.Logger;
import javax.inject.Inject;
import org.sonatype.idiom.site.datastore.SkuDataStore;
import org.sonatype.idiom.site.form.Form;
import org.sonatype.idiom.site.form.Sku;
import org.sonatype.idiom.site.processor.Processor;
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Sonatype Runtime :: Recipe :: P2 Agent 3.6-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.2:clean (default-clean) @ p2-agent ---
[INFO]
[INFO] --- maven-p2-publisher-plugin:0.1.0-SNAPSHOT:assemble (default) @ p2-agent ---
[INFO] Installing org.sonatype.runtime.recipes:p2-agent:pom:root 3.6.0.SNAPSHOT.
[INFO] Installation failed.
bash-3.2$ ./mvnRuntime update 3.0-beta-1-SNAPSHOT
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building maven.updater 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.170s