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

xapi.mvn.service.MvnService Maven / Gradle / Ivy

Go to download

Everything needed to run a comprehensive dev environment. Just type X_ and pick a service from autocomplete; new dev modules will be added as they are built. The only dev service not included in the uber jar is xapi-dev-maven, as it includes all runtime dependencies of maven, adding ~4 seconds to build time, and 6 megabytes to the final output jar size (without xapi-dev-maven, it's ~1MB).

The newest version!
package xapi.mvn.service;

import java.io.IOException;
import java.util.List;

import org.apache.maven.model.Model;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
import org.eclipse.aether.RepositorySystemSession;
import org.eclipse.aether.repository.LocalArtifactResult;
import org.eclipse.aether.repository.RemoteRepository;
import org.eclipse.aether.resolution.ArtifactResult;

import xapi.log.api.LogLevel;

public interface MvnService {

	String mvnHome();

	String localRepo();

	List remoteRepos();

	Iterable findPoms(ClassLoader loader);

	ArtifactResult loadArtifact(String groupId, String artifactId,
			String classifier, String extension, String version);

	Model loadPomString(String pomString)
			throws IOException, XmlPullParserException;

	Model loadPomFile(String pomFile)
			throws IOException, XmlPullParserException;

  RepositorySystemSession getRepoSession();

  void setLogLevel(LogLevel logLevel);

  ArtifactResult loadArtifact(String groupId, String artifactId, String version);

  LocalArtifactResult loadLocalArtifact(String groupId, String artifactId, String version);

  LocalArtifactResult loadLocalArtifact(String groupId, String artifactId, String classifier, String extension,
      String version);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy