在Eclipse中创建一个Mule项目 [英] Creating a Mule project in Eclipse

查看:1941
本文介绍了在Eclipse中创建一个Mule项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始与Mule合作了。我正在和骡子工作室工作。这看起来不错
但是当我想在Eclipse中创建一个Mule项目时,我感到非常震惊。
请建议我如何在Eclipse中创建一个Mule项目。

解决方案

选项1:使用Mule IDE插件进行Eclipse。



您可以使用Eclipse中的Mule IDE插件。这有助于在eclipse中创建骡子项目。



要添加插件,请启动eclipse并导航帮助 - >安装新软件 - >添加站点并选择提供的工件



添加muleide(mule plugin) - http://dist.muleforge.org/mule-ide/updates/3.4/



然后在插件安装后重新启动Eclipse,您可以创建一个新项目选项下的Mule项目。



***选项2:
没有Mule IDE。使用Maven和Eclipse。



打开命令提示符。
运行以下Maven命令创建Mule项目。

  mvn org.mule.tools:mule-project-原型:3.3.0:创建-DartifactId = MySampleMuleProj -DmuleVersion = 3.3.0 

然后运行follwoing命令。

  mvn clean compile 
mvn eclipse:clean eclipse:eclipse

此后打开Eclipse IDE
将此项目导入到eclipse工作区。
注意:使用导入现有Maven项目选项导入此项目。



要在eclipse中运行Mule项目,请执行以下步骤。

  1。 Goto Run  - >在eclipse中运行配置并选择Java应用程序。 
2.单击新建启动配置并输入配置的名称(例如MyMuleProj)。
3.选择MyMuleProj作为项目和Main类org.mule.MuleServer。
4.单击参数选项卡,并输入程序参数-config src / main / app / mule-config.xml。

您可以看到Mule项目启动并运行。



:)快乐学习。


I have started working with Mule. I am working with Mule Studio. This looks good. But when I want to create a Mule project in Eclipse I am struck. Please suggest me how I can create a Mule project in Eclipse.

解决方案

Option 1: With Mule IDE Plugin for Eclipse.

You can use the Mule IDE plugin from eclipse. This helps in creating the mule project in eclipse.

To add plugins please start eclipse and navigate to help->install new software -> Add site and select the artifacts presented

Add muleide (mule plugin) - http://dist.muleforge.org/mule-ide/updates/3.4/

Then restart Eclipse after the plugin installation and You can create a Mule Project under the New Project option.

*** Option 2: Without Mule IDE. With Maven and Eclipse.

Open Command prompt. Run the following Maven command to create a Mule project.

mvn org.mule.tools:mule-project-archetype:3.3.0:create -DartifactId=MySampleMuleProj -DmuleVersion=3.3.0

Then run the follwoing commands.

mvn clean compile
mvn eclipse:clean eclipse:eclipse

After this open Eclipse IDE Import this project into the eclipse workspace. Note: Use Import "Existing Maven Project" option for importing this project.

To run the Mule project in eclipse forllow the below steps.

1. Goto Run -> Run Configurations in eclipse and select Java Application.
2. Click on New launch configuration and enter name of the configuration(for ex. MyMuleProj).
3. Select MyMuleProj as a project and Main class "org.mule.MuleServer".
4. Click on Arguments tab and enter Program arguments "-config src/main/app/mule-config.xml".

You can see the Mule project up and Running.

:) Happy Learning.

这篇关于在Eclipse中创建一个Mule项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆