Skip to content

Instantly share code, notes, and snippets.

@mariomartinezricston
Last active July 11, 2017 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariomartinezricston/d35325b4e1f95cb858020f9750f92d19 to your computer and use it in GitHub Desktop.
Save mariomartinezricston/d35325b4e1f95cb858020f9750f92d19 to your computer and use it in GitHub Desktop.
maven plugin requeter
<file:connector name="file-connector-config" autoDelete="false" streaming="true"
validateConnections="true" doc:name="File" />
<flow name="muleRequesterFlow">
...
<mulerequester:request  resource="file://src/main/resources/test/file.txt?connector=file-connector-config" 
doc:name="Retrieve File" returnClass="java.lang.String"/>
...
</flow>
<dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-requester</artifactId>
<version>1.5</version>
</dependency>
<plugin>
<groupId>org.mule.tools.maven</groupId>
<artifactId>mule-app-maven-plugin</artifactId>
<version>${mule.tools.version}</version>
<extensions>true</extensions>
<configuration>
<copyToAppsDirectory>true</copyToAppsDirectory>
<inclusions>
<inclusion>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-requester</artifactId>
</inclusion>
</inclusions>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment