Add Maven CLI Options on Anypoint Studio, such as mvn -X
This applies to Anypoint Studio 7.x , 6.x
A complete listing of available Command line options for Maven can be found here: https://maven.apache.org/ref/3.6.3/maven-embedder/cli.html
When providing information to MuleSoft Support related to Maven issues we would generally require the usage of at least the -X (Produce execution debug output) and -e (Produce execution error messages) options.
In order to add Maven Command-Line Interface (CLI) Options or Arguments on Anypoint Studio such as mvn -X, please follow the next steps:
[INFO] Scanning for projects... [INFO] [INFO] ----------------< xxx >----------------- [INFO] Building Mule xxx
The Console log AFTER adding -X
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-25T04:41:47+10:00) Maven home: /usr/local/opt/apache-maven-3.6.0 Java version: 1.8.0_201, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/jre ... [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10.0 for ~/.m2/repository [INFO] Scanning for projects... [DEBUG] Dependency collection stats: {ConflictMarker.analyzeTime=1570877, ... [DEBUG] org.mule.tools.maven:mule-app-maven-plugin:jar:1.2: ... [DEBUG] === REACTOR BUILD PLAN ================================================ [DEBUG] Project: xxx ... [INFO] [INFO] ----------------< xxx >----------------- [INFO] Building Mule xxx
001117038

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.