puppet-wildfly icon indicating copy to clipboard operation
puppet-wildfly copied to clipboard

Need a way to install module with multiple jar files as source

Open nddipiazza opened this issue 3 years ago • 1 comments

All your examples look like this

wildfly::config::module {​ 'org.apache.ignite':
  source       => 'http://my.source.com/source-file.jar',
  dependencies => ['javax.api', 'javax.transaction.api']
}​

what about when there are multiple jar files as part of a module?

such as

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.apache.ignite">
<resources>
    <resource-root path="ignite-core-2.8.1.jar"/>
    <resource-root path="ignite-indexing-2.8.1.jar"/>
	<resource-root path="ignite-shmem-1.0.0.jar"/>
	<resource-root path="cache-api-1.0.0.jar"/>
</resources>
<dependencies>
    <module name="javax.api"/>
	<module name="sun.jdk" />
	<module name="com.h2database.h2" />
</dependencies>
</module>

nddipiazza avatar Nov 02 '20 19:11 nddipiazza

Hi,

The rationale behind not direct supporting tarball/archive as a source for a module was to avoid dependencies of other modules to extract it.

Basically you have two options for the scenario you described:

  1. Install the files as dependencies and require then in your module.

  2. Download/copy other JARs manually using file module.

jairojunior avatar Nov 04 '20 02:11 jairojunior