What does "mvn --version" show ?

On Fri, Sep 18, 2015 at 12:33 PM, Abhishek Taula <[email protected]> wrote:

> Hey Guys, when i try to run the command as given in the 10 minutes
> tutorial,This is how it goes:
>
> [INFO] Scanning for projects...
> [INFO] Inspecting build with total of 1 modules...
> [INFO] Installing Nexus Staging features:
> [INFO]   ... total of 1 executions of maven-deploy-plugin replaced with
> nexus-staging-maven-plugin
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache Shiro :: Samples :: Quick Start 1.2.4
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-toolchains-plugin:1.1:toolchain (default) @
> samples-quickstart ---
> [INFO] Required toolchain: jdk [ vendor='sun' version='1.6' ]
> [ERROR] No toolchain found for type jdk
> [ERROR] Cannot find matching toolchain definitions for the following
> toolchain types:
> jdk [ vendor='sun' version='1.6' ]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4.357 s
> [INFO] Finished at: 2015-09-18T22:01:06+05:30
> [INFO] Final Memory: 13M/109M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-toolchains-plugin:1.1:toolchain (default) on
> project samples-quickstart: Cannot find matching toolchain definitions for
> the following toolchain types:
> [ERROR] jdk [ vendor='sun' version='1.6' ]
> [ERROR] Please make sure you define the required toolchains in your
> ~/.m2/toolchains.xml file.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
> I get build failure and errors.
> What to do?
>

Reply via email to