JBang Maven Plugin

Provides, via submodules, a base configuration for JBoss project builds, as well as a derived configuration supporting multi-release JARs

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка
Группа

Группа

dev.jbang
Идентификатор

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

jbang-maven-plugin
Последняя версия

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

0.0.7
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

JBang Maven Plugin
Provides, via submodules, a base configuration for JBoss project builds, as well as a derived configuration supporting multi-release JARs
Ссылка на сайт

Ссылка на сайт

https://jbang.dev
Организация-разработчик

Организация-разработчик

JBoss by Red Hat
Система контроля версий

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

https://github.com/jbangdev/jbang-maven-plugin

Скачать jbang-maven-plugin

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

<plugin>
    <groupId>dev.jbang</groupId>
    <artifactId>jbang-maven-plugin</artifactId>
    <version>0.0.7</version>
</plugin>

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.zeroturnaround : zt-exec jar 1.12
org.twdata.maven : mojo-executor jar 2.3.1

provided (3)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-plugin-api jar 3.6.0
org.apache.maven : maven-core jar 3.6.0
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0

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

Данный проект не имеет модулей.

JBang Maven Plugin

GitHub Workflow Status Maven Central

The JBang Maven plugin allows JBang scripts to be executed during a Maven build.

The plugin attempts to use an existing JBang installation. If no JBang installation is found, the plugin will install JBang by downloading and caching the latest version binaries (in your local maven repository) for subsequent runs.

Arguments

  • script: The script to be executed by JBang

Example

      <plugin>
        <groupId>dev.jbang</groupId>
        <artifactId>jbang-maven-plugin</artifactId>
        <version>0.0.7</version>
        <executions>
          <execution>
            <id>run</id>
            <phase>process-resources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
                <script>hello.java</script>
            </configuration>
          </execution>
        </executions>
      </plugin>
  • args : The arguments to be used in the JBang script (if any)

Example

      <plugin>
        <groupId>dev.jbang</groupId>
        <artifactId>jbang-maven-plugin</artifactId>
        <version>0.0.7</version>
        <executions>
          <execution>
            <id>run</id>
            <phase>process-resources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
                <script>hello.java</script>
                <args>
                  <arg>--option1=foo</arg>
                </args>
            </configuration>
          </execution>
        </executions>
      </plugin>
  • trusts: If the script resides in a remote location, this parameter specifies what URLs should be trusted. See URLs from Trusted Sources for more information

Example

      <plugin>
        <groupId>dev.jbang</groupId>
        <artifactId>jbang-maven-plugin</artifactId>
        <version>0.0.7</version>
        <executions>
          <execution>
            <id>run</id>
            <phase>process-resources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
                <script>https://github.com/jbangdev/jbang-examples/blob/master/examples/lang.java</script>
                <trusts>
                  <trust>https://github.com</trust>
                </trusts>
            </configuration>
          </execution>
        </executions>
      </plugin>
  • jbangargs: Arguments for jbang (not the script)

Example

      <plugin>
        <groupId>dev.jbang</groupId>
        <artifactId>jbang-maven-plugin</artifactId>
        <version>0.0.7</version>
        <executions>
          <execution>
            <id>run</id>
            <phase>process-resources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
                <jbangargs>
                     <jbangarg>--quiet</jbangarg>
                </jbangargs>
                <script>hello.java</script>
            </configuration>
          </execution>
        </executions>
      </plugin>
  • jbangVersion: If your envronment lacks the JBang binaries in the PATH, you can specify the JBang version to be installed. The default value will be the plugin's version

Example

      <plugin>
        <groupId>dev.jbang</groupId>
        <artifactId>jbang-maven-plugin</artifactId>
        <version>0.0.7</version>
        <executions>
          <execution>
            <id>run</id>
            <phase>process-resources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
                <script>hello.java</script>
                <jbangVersion>0.47.1</jbangVersion>
            </configuration>
          </execution>
        </executions>
      </plugin>

Reporting bugs/issues/features

Please use https://github.com/jbangdev/jbang for reporting bugs/issues/features.

dev.jbang

jbang - unleash the power of Java

run, build and package scripts and applications

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

Версия
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.1