org.commonjava.emb:emb

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Лицензия

Лицензия

Группа

Группа

org.commonjava.emb
Идентификатор

Идентификатор

emb
Последняя версия

Последняя версия

0.6
Дата

Дата

Тип

Тип

pom
Описание

Описание

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Система контроля версий

Система контроля версий

http://github.com/jdcasey/EMB

Скачать emb

Имя Файла Размер
emb-0.6.pom 3 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.commonjava.emb/emb/ -->
<dependency>
    <groupId>org.commonjava.emb</groupId>
    <artifactId>emb</artifactId>
    <version>0.6</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.commonjava.emb/emb/
implementation 'org.commonjava.emb:emb:0.6'
// https://jarcasting.com/artifacts/org.commonjava.emb/emb/
implementation ("org.commonjava.emb:emb:0.6")
'org.commonjava.emb:emb:pom:0.6'
<dependency org="org.commonjava.emb" name="emb" rev="0.6">
  <artifact name="emb" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.commonjava.emb', module='emb', version='0.6')
)
libraryDependencies += "org.commonjava.emb" % "emb" % "0.6"
[org.commonjava.emb/emb "0.6"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.commonjava.atservice : atservice-annotation jar 0.1
org.commonjava.atservice : atservice-processor jar 0.1

Модули Проекта

  • components
  • events

EMB - Extensible, Modular Builds

EMB is a build tool that wraps and extends Apache Maven. Its goal is to provide a mechanism for changing the core functionality of Maven using sets of add-on libraries.

Getting Started

The simplest way to use EMB is via the emb-booter. To do this, first add a dependency in your POM to emb-booter:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.commonjava.emb.example</groupId>
  <artifactId>example</artifactId>
  <version>1.0-SNAPSHOT</version>
  <properties>
    <mavenVersion>3.0-beta-2</mavenVersion>
    <embVersion>0.3-SNAPSHOT</embVersion>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.commonjava.emb</groupId>
      <artifactId>emb-booter</artifactId>
      <version>${embVersion}</version>
    </dependency>
  </dependencies>
</project>

Then, create a new EMBEmbedder instance, and use it to build a project:

List<String> goals = new ArrayList<String>();
goals.add( "clean" );
goals.add( "install" );

new EMBEmbedderBuilder().build().execute( new EMBExecutionRequest().setGoals( goals ) );

Using Services

You can use allowed Maven components via the ServiceManager. For instance, to resolve an artifact:

EMBEmbeder emb = new EMBEmbedderBuilder().build();
emb.serviceManager().repositorySystem().resolve( artifact );

Or, to build a set of MavenProject instances from POM files:

EMBEmbeder emb = new EMBEmbedderBuilder().build();

ProjectBuildingRequest req = new DefaultProjectBuildingRequest()
                                  .setSystemProperties( System.getProperties() )
                                  .setValidationLevel( ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL )
                                  .setForceUpdate( true )
                                  .setProcessPlugins( false )
                                  .setRepositoryCache( new InternalRepositoryCache() )
                                  .setLocalRepository( emb.serviceManager()
                                                          .repositorySystem()
                                                          .createLocalRepository( new File( workDir, "local-repository" ) ) );
                         
List<ProjectBuildingResult> results = emb.serviceManager().projectBuilder().build( pomFiles, useReactor, req );

List<MavenProject> projects = new ArrayList<MavenProject>( pomFiles.size() );
for ( final ProjectBuildingResult result : results )
{
    projects.add( result.getProject() );
}

Версии библиотеки

Версия
0.6
0.5