Maven 3.3.3 requires Java 7 , Can you check what is the compiler version specified inside your project pom, might be the compiler version specified to 1.6 , or check if your compiler is set to 1.6 .Also check javac -version on windows.
On 19/09/2015 08:46, Abhishek Taula wrote:
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T17:27:37+05:30)
Maven home: C:\Apache Maven\apache-maven-3.3.3\bin\..
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_45\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows"

On Sat, Sep 19, 2015 at 9:44 AM, Brian Demers <[email protected] <mailto:[email protected]>> wrote:

    What does "mvn --version" show ?

    On Fri, Sep 18, 2015 at 12:33 PM, Abhishek Taula
    <[email protected] <mailto:[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?




--
        Dishant Anand

Software Engineer

        Tel: +91 124 4548383 Ext- 1005
UK: +44 845 0047 142 Ext- 5115

        TBS Website <http://www.techbluesoftware.co.in>
        Techblue Software Pvt. Ltd
The Palms, Plot No 73, Sector 5, IMT Manesar,
Gurgaon- 122050 (Hr.)

www.techbluesoftware.co.in <http://www.techbluesoftware.co.in>

        
TBS Facebook <https://www.facebook.com/pages/Techblue-Software-Limited/441777369284888> TBS Twitter <https://twitter.com/TechbluSoftware> TBS Google+ <https://plus.google.com/+TechblueSoftwareCoIn> TBS Linked In <https://www.linkedin.com/company/techblue-softwares-pvt-ltd>

TBS Branding <http://www.techbluesoftware.co.in>


           Confidentiality Notice: This e-mail is intended solely for
           the use of the individual to whom it is addressed and may
           contain information that is privileged, confidential or
           otherwise exempt from disclosure. If the reader of this
           e-mail is not the intended recipient or the employee or
           agent responsible for delivering the message to the intended
           recipient, you are hereby notified that any dissemination,
           distribution, or copying of this communication is strictly
           prohibited. If you have received this communication in
           error, please immediately notify us by replying to the
           original message at the listed email address. Thank You.

Reply via email to