Невозможно развернуть приложение mule 4 в локальной среде с помощью конвейера Jenkins

введите здесь описание изображения Я пытаюсь развернуть приложение mule 4 с помощью конвейера jenkin, но в процессе развертывания получаю указанную ниже ошибку:

[ОШИБКА] Не удалось выполнить цель org.mule.tools.maven: mule-maven-plugin: 3.3.5: развертывание (развертывание по умолчанию) в проекте helloworld: выполнение развертывания по умолчанию для цели org.mule.tools.maven: mule -maven-plugin: 3.3.5: ошибка развертывания: время выполнения Mule не запущено!

Добавление моего pom.xml.

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <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>com.mycompany</groupId>
<artifactId>helloworld</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>mule-application</packaging>
<name>helloworld</name>
<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

    <app.runtime>4.2.2</app.runtime>
    <mule.maven.plugin.version>3.3.5</mule.maven.plugin.version>
    <proejct.site.deploy.url>E:\IDFC\mule-enterprise-standalone-4.2.2\apps</proejct.site.deploy.url>

</properties>
<build>
    <plugins>
        <plugin>
            <groupId>org.mule.tools.maven</groupId>
            <artifactId>mule-maven-plugin</artifactId>
            <version>${mule.maven.plugin.version}</version>
            <extensions>true</extensions>
            <configuration>
             <standaloneDeployment>
                <muleHome>E:\IDFC\mule-enterprise-standalone-4.2.2</muleHome>
                <muleVersion>4.2.2</muleVersion>
             </standaloneDeployment>
           </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <executions>
            <execution>
             <id>default-deploy</id>
             <phase>deploy</phase>
             <goals>
              <goal>deploy</goal>
             </goals>
            </execution>
          </executions>  
        </plugin>
    </plugins>
</build>


<dependencies>
    <dependency>
        <groupId>org.mule.connectors</groupId>
        <artifactId>mule-http-connector</artifactId>
        <version>1.5.11</version>
        <classifier>mule-plugin</classifier>
    </dependency>
    <dependency>
        <groupId>org.mule.connectors</groupId>
        <artifactId>mule-sockets-connector</artifactId>
        <version>1.1.5</version>
        <classifier>mule-plugin</classifier>
    </dependency>
    <dependency>
        <groupId>org.mule.connectors</groupId>
        <artifactId>mule-db-connector</artifactId>
        <version>1.5.5</version>
        <classifier>mule-plugin</classifier>
    </dependency>
</dependencies>

<repositories>
      <repository>
        <id>anypoint-exchange-v2</id>
        <name>Anypoint Exchange</name>
        <url>https://maven.anypoint.mulesoft.com/api/v2/maven</url>
        <layout>default</layout>
    </repository>
    <repository>
        <id>mulesoft-releases</id>
        <name>MuleSoft Releases Repository</name>
        <url>https://repository.mulesoft.org/releases/</url>
        <layout>default</layout>
    </repository>
</repositories>
<pluginRepositories>
    <pluginRepository>
        <id>mulesoft-releases</id>
        <name>mulesoft release repository</name>
        <layout>default</layout>
        <url>https://repository.mulesoft.org/releases/</url>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </pluginRepository>
</pluginRepositories>

in Jenkins till build it's working but while deploying i'm getting error. For the deploy process Using custom workspace Directory and executing the custom batch command mvn package deploy -DmuleDeploy. Here it's failing with the below added error. This is my standalone server where i have to deploy: C:\AnypointStudio\mule-enterprise-standalone-4.2.2\apps

Не могли бы вы проверить мой pom.xml, что мне еще нужно добавить? дайте мне знать, где я делаю ошибку при развертывании на автономном сервере?


person Devendra    schedule 29.01.2020    source источник


Ответы (1)


Плагин Mule Maven жалуется, что целевая автономная среда выполнения Mule в C: \ AnypointStudio \ mule-enterprise-standalone-4.2.2 \ не работает. Об этом говорит ошибка журнала: Mule Runtime is not running!. Документация для конфигурации автономного развертывания, похоже, подразумевает, что он должен выполняться.

Вам необходимо убедиться, что он запущен и работает, прежде чем пытаться развернуть его.

Обратите внимание, что установка автономной среды выполнения Mule в каталог под названием AnypointStudio немного сбивает с толку. Автономная среда выполнения не является частью Anypoint Studio и никак не взаимодействует со Studio.

person aled    schedule 29.01.2020
comment
Hi @aled изменил автономную среду выполнения Mule на E: \ IDFC \ mule-enterprise-standalone-4.2.2 и запустил файл mule.bat. но по-прежнему возникает та же ошибка при запуске mvn clean package deploy -DmuleDeploy в папке проекта. Не могли бы вы проверить, что еще требуется на pom.xml? - person Devendra; 29.01.2020