The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

mado64 (6) [Avatar] Offline
#1
Regarding section 1.4.1 to create a mule project with maven, I would like to bring something to your notice about generating a mule project with maven that can be opened in MuleStudio.
After maven project is generated using the usual mvn mule-project-archetype:create, and making sure that settings.xml used by maven has the plugin group org.mule.tools, you can also add the profile def to settings.xml:
<profiles>
<profile>
<id>default</id>
<pluginRepositories>
<pluginRepository>
<id>mulesoft-release</id>
<name>mulesoft release repository</name>
<layout>default</layout>
<url>https://repository.mulesoft.org/releases/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
</profiles>
This way after the maven project is created with the archetype above, you can simply do mvn studio:studio so that the project can be imported to MuleStudio. If you dont run mvn studio:studio, you can't import that maven project to MuleStudio correctly (for example you cant open flow definition file in mulestudio) since the maven archetype doesnt create all the files needed for MuleStudio to use the project.

I used MuleStudio v1.3.1 and used maven commandlines as below:
mvn mule-project-archetype:create -DartifactId=xyz -DmuleVersion=3.3.0
cd xyz
mule studio:studio

Message was edited by:
mado64