All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.commsen.em.maven.util.MavenConfig Maven / Gradle / Ivy

package com.commsen.em.maven.util;

import java.io.StringReader;

import org.apache.maven.MavenExecutionException;
import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.util.xml.Xpp3Dom;
import org.codehaus.plexus.util.xml.Xpp3DomBuilder;

@Component(role = MavenConfig.class)
public class MavenConfig {

	public Xpp3Dom asXpp3Dom(String config) throws MavenExecutionException {
		try {
			return Xpp3DomBuilder.build(new StringReader(config));
		} catch (Exception e) {
			throw new MavenExecutionException("Error parsing config", e);
		}
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy