Mule Extensions Archetype Maven Plugin

Maven Archetype to create new Mule Extension projects.

Лицензия

Лицензия

Группа

Группа

org.mule.extensions
Идентификатор

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

mule-extensions-archetype-parent
Последняя версия

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

1.2.0
Дата

Дата

Тип

Тип

pom
Описание

Описание

Mule Extensions Archetype Maven Plugin
Maven Archetype to create new Mule Extension projects.
Ссылка на сайт

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

https://github.com/mulesoft/mule-extensions-archetype
Организация-разработчик

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

MuleSoft, Inc.
Система контроля версий

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

https://github.com/mulesoft/mule-extensions-archetype

Скачать mule-extensions-archetype-parent

Имя Файла Размер
mule-extensions-archetype-parent-1.2.0.pom 15 KB
Обзор

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

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

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
io.qameta.allure : allure-junit4 jar 2.8.1

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

  • mule-extensions-archetype
  • mule-extension-archetype-maven-plugin
  • mule-extensions-archetype-it
  • mule-extensions-xml-archetype

Mule Extensions Archetype

An archetype is defined as an original pattern or model from which all other things of the same kind are made.

This particular Archetype defines the structure of a Mule Basic Extension trying to provide a system that provides a consistent means of generating Extension projects.

Generate Project

There is a maven plugin with steps and descriptions for the required fields in order to create a new Extension Project

By running the following command you will get prompt for values.

mvn mule-extensions-archetype:generate

Old School Archetype

You can also create a new Extension project by invoking the archetype directly with the following properties.

mvn archetype:generate -DarchetypeGroupId=org.mule.extensions
                       -DarchetypeArtifactId=mule-extensions-archetype
                       -DarchetypeVersion=1.0.0-SNAPSHOT
                       -DgroupId=org.mule.extension.basic
                       -DartifactId=basic-extension
                       -DextensionName=Basic

This is more tedious and we worked to make your life easier :), use the maven plugin.

Smart Connector Archetype

Similarly to the previous example, a smart connector can be done by using the following archetype

mvn archetype:generate                               \
  -DarchetypeGroupId=org.mule.extensions             \
  -DarchetypeArtifactId=mule-extensions-xml-archetype

If you want to disable the interactive mode, just use the following

mvn archetype:generate                                  \
  -DarchetypeGroupId=org.mule.extensions                \
  -DarchetypeArtifactId=mule-extensions-xml-archetype   \
  -DarchetypeVersion=1.2.0-SNAPSHOT                     \
  -DgroupId=org.mule.smart.connector.example            \
  -DartifactId=example-smart-connector                  \
  -Dpackage=org.mule.smart.connector.example            \
  -Dversion=1.0.0-SNAPSHOT                              \
  -DmuleConnectorName=Example

The generated structure after the previous sample will be:

example-smart-connector
├── pom.xml
└── src
    ├── main
    │   └── resources
    │       └── org
    │           └── mule
    │               └── smart
    │                   └── connector
    │                       └── example
    │                           └── module-Hello.xml
    └── test
        └── munit
            └── assertion-munit-test.xml

Where module-Hello.xml will contain the XML of the Smart Connector and assertion-munit-test.xml will contain the assertions to validate the operations of the Smart Connector

org.mule.extensions

Mulesoft

Building awesome software that's connecting the world's applications, data, and devices.

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

Версия
1.2.0
1.1.2
1.1.1