Thanks, it solved the problem, setting the toolchain path of jdk 1.6 to the absolute path of jdk 1.7 I had installed. On 21-Sep-2015 11:47 pm, "Brian Demers" <[email protected]> wrote:
> > OK, this is an actual problem (with a simple work around) > > The root cause of the issue is this commit: > https://github.com/apache/shiro/commit/f151154e4073414f5650abf40e7c6a5b4074d7ba > which was added to work around CI/release issues. > > I'll move this into a maven profile, or something so it doesn't cause this > type of confusion in the future. > > The simple work around: > Create a file "~/.m2/toolchains.xml" (or the equivalent on windows) > Which contains something like: > > <toolchains> > <toolchain> > <type>jdk</type> > <provides> > <version>1.6</version> > <vendor>sun</vendor> > </provides> > <configuration> > <!-- this can be anything 1.6+, I tested with java 1.8 on a mac --> > <jdkHome>/absolute/path/to/java/home</jdkHome> > </configuration> > </toolchain> > </toolchains> > > > I opened: https://issues.apache.org/jira/browse/SHIRO-543 to track this > issue. > > > On Sat, Sep 19, 2015 at 7:23 AM, Abhishek Taula <[email protected]> > wrote: > >> My current jdk version is 1.7.0_45, do i have to install 1.6 in order to >> use Shiro? >> >> On Sat, Sep 19, 2015 at 4:30 PM, Dishant Anand < >> [email protected]> wrote: >> >>> 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]> >>> wrote: >>> >>>> What does "mvn --version" show ? >>>> >>>> On Fri, Sep 18, 2015 at 12:33 PM, Abhishek Taula < <[email protected]> >>>> [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 >>> [image: TBS Website] <http://www.techbluesoftware.co.in> Techblue >>> Software Pvt. Ltd >>> The Palms, Plot No 73, Sector 5, IMT Manesar, >>> Gurgaon- 122050 (Hr.) >>> >>> <http://www.techbluesoftware.co.in>www.techbluesoftware.co.in >>> >>> [image: TBS Facebook] >>> <https://www.facebook.com/pages/Techblue-Software-Limited/441777369284888> >>> [image: >>> TBS Twitter] <https://twitter.com/TechbluSoftware> [image: TBS Google+] >>> <https://plus.google.com/+TechblueSoftwareCoIn> [image: TBS Linked In] >>> <https://www.linkedin.com/company/techblue-softwares-pvt-ltd> [image: >>> 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. >>> >> >> >
