Maven Repository as JBoss Modules

Resolve JBoss Modules from the Maven repository. Automatically download dependencies.

License

License

Categories

Categories

JBoss Container Application Servers Maven Build Tools
GroupId

GroupId

pw.krejci
ArtifactId

ArtifactId

maven-repo-jboss-modules
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

Maven Repository as JBoss Modules
Resolve JBoss Modules from the Maven repository. Automatically download dependencies.
Project URL

Project URL

https://github.com/metlos/maven-repo-jboss-modules
Project Organization

Project Organization

Lukas Krejci
Source Code Management

Source Code Management

https://github.com/metlos/maven-repo-jboss-modules

Download maven-repo-jboss-modules

How to add to project

<!-- https://jarcasting.com/artifacts/pw.krejci/maven-repo-jboss-modules/ -->
<dependency>
    <groupId>pw.krejci</groupId>
    <artifactId>maven-repo-jboss-modules</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/pw.krejci/maven-repo-jboss-modules/
implementation 'pw.krejci:maven-repo-jboss-modules:0.2.0'
// https://jarcasting.com/artifacts/pw.krejci/maven-repo-jboss-modules/
implementation ("pw.krejci:maven-repo-jboss-modules:0.2.0")
'pw.krejci:maven-repo-jboss-modules:jar:0.2.0'
<dependency org="pw.krejci" name="maven-repo-jboss-modules" rev="0.2.0">
  <artifact name="maven-repo-jboss-modules" type="jar" />
</dependency>
@Grapes(
@Grab(group='pw.krejci', module='maven-repo-jboss-modules', version='0.2.0')
)
libraryDependencies += "pw.krejci" % "maven-repo-jboss-modules" % "0.2.0"
[pw.krejci/maven-repo-jboss-modules "0.2.0"]

Dependencies

compile (5)

Group / Artifact Type Version
org.jboss.modules : jboss-modules jar 1.6.1.Final
org.apache.maven : maven-resolver-provider jar 3.6.2
org.apache.maven.resolver : maven-resolver-transport-file jar 1.4.1
org.apache.maven.resolver : maven-resolver-transport-http jar 1.4.1
org.apache.maven.resolver : maven-resolver-connector-basic jar 1.4.1

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Maven Repo JBoss Modules

Uses Maven artifact resolution for defining modules for JBoss Modules. This is simplistic and doesn’t support a ton of JBoss Modules features but gets the job done if you want to just have modular classloading and artifacts downloaded from Maven repositories.

Usage

Module project = ProjectModule.build()
        .localRepository("~/custom/local/maven/repository")
        .addRemoteRepository("jboss", URI.create("https://repository.jboss.org/nexus/content/repositories/public/")
        .addDependency("com.acme:artifact:14.3")
        .addDependency("foo.bar:baz:0.10")
        .create();

        Class<?> acme = project.getClassLoader().loadClass("com.acme.artifact.Acme");
        ...

If you don’t specify the location of the local repository using the localRepository() builder method, the default ~/.m2/repository will be used. Maven Central repository is always present as a remote repository and you can add more using the addRemoteRepository() builder method.

You then merely define the dependencies of your "project" module and the artifacts will be resolved and available as modules with all the classloader isolation goodness JBoss Modules provides.

Versions

Version
0.2.0
0.1.1
0.1.0